Skip to content

Commit

Permalink
GEN-202: Deprecate error_stack::Result and error_stack::Context (#…
Browse files Browse the repository at this point in the history
…5533)

Co-authored-by: Bilal Mahmoud <[email protected]>
  • Loading branch information
TimDiekmann and indietyp authored Nov 2, 2024
1 parent 6bcdafd commit d23aaa6
Show file tree
Hide file tree
Showing 57 changed files with 330 additions and 315 deletions.
67 changes: 40 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type-system.path = "libs/@blockprotocol/type-system/rust"
validation.path = "libs/@local/hash-validation"

# Pinned workspace members
error-stack = { path = "./libs/error-stack", default-features = false }
error-stack = { git = "https://github.com/hashintel/hash", rev = "f6ecda1ec75f4aca1f738b2fbe413613a356069c", default-features = false }

# Public dependencies
ahash = { version = "=0.8.11", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion apps/hash-graph/bins/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/authorization": "0.0.0-private",
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/graph": "0.0.0-private",
"@rust/graph-api": "0.0.0-private",
"@rust/graph-types": "0.0.0-private",
Expand Down
1 change: 0 additions & 1 deletion apps/hash-graph/libs/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"dependencies": {
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/authorization": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/graph": "0.0.0-private",
"@rust/graph-type-defs": "0.0.0-private",
"@rust/graph-types": "0.0.0-private",
Expand Down
1 change: 0 additions & 1 deletion apps/hash-graph/libs/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/authorization": "0.0.0-private",
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/graph-types": "0.0.0-private",
"@rust/hash-graph-store": "0.0.0-private",
"@rust/hash-status": "0.0.0-private",
Expand Down
1 change: 0 additions & 1 deletion apps/hash-graph/libs/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dependencies": {
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/authorization": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/graph-types": "0.0.0-private",
"@rust/temporal-versioning": "0.0.0-private"
}
Expand Down
1 change: 0 additions & 1 deletion apps/hash-graph/libs/test-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dependencies": {
"@rust/authorization": "0.0.0-private",
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/graph": "0.0.0-private",
"@rust/graph-api": "0.0.0-private",
"@rust/graph-type-defs": "0.0.0-private",
Expand Down
3 changes: 1 addition & 2 deletions apps/hash-graph/libs/type-fetcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"start:test:healthcheck": "../../../../target/debug/hash-graph type-fetcher --healthcheck --wait --timeout 300 --logging-console-level=warn"
},
"dependencies": {
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/error-stack": "0.5.0"
"@blockprotocol/type-system-rs": "0.0.0-private"
}
}
3 changes: 1 addition & 2 deletions libs/@blockprotocol/type-system/rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"test:unit": "cargo hack nextest run --feature-powerset --all-targets && cargo test --all-features --doc"
},
"dependencies": {
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0"
"@rust/codec": "0.0.0-private"
},
"devDependencies": {
"@rust/graph-test-data": "0.0.0-private",
Expand Down
1 change: 0 additions & 1 deletion libs/@local/codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"lint:clippy": "just clippy"
},
"dependencies": {
"@rust/error-stack": "0.5.0",
"@rust/harpc-wire-protocol": "0.0.0-private"
}
}
1 change: 0 additions & 1 deletion libs/@local/harpc/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"license": "AGPL-3",
"dependencies": {
"@rust/error-stack": "0.5.0",
"@rust/harpc-codec": "0.0.0-private",
"@rust/harpc-net": "0.0.0-private",
"@rust/harpc-tower": "0.0.0-private"
Expand Down
1 change: 0 additions & 1 deletion libs/@local/harpc/codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"license": "AGPL-3",
"dependencies": {
"@rust/error-stack": "0.5.0",
"@rust/harpc-types": "0.0.0-private"
}
}
1 change: 0 additions & 1 deletion libs/@local/harpc/net/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/harpc-codec": "0.0.0-private",
"@rust/harpc-types": "0.0.0-private",
"@rust/harpc-wire-protocol": "0.0.0-private"
Expand Down
1 change: 0 additions & 1 deletion libs/@local/harpc/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"license": "AGPL-3",
"dependencies": {
"@rust/error-stack": "0.5.0",
"@rust/harpc-codec": "0.0.0-private",
"@rust/harpc-net": "0.0.0-private",
"@rust/harpc-service": "0.0.0-private",
Expand Down
1 change: 0 additions & 1 deletion libs/@local/harpc/tower/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"license": "AGPL-3",
"dependencies": {
"@rust/error-stack": "0.5.0",
"@rust/harpc-codec": "0.0.0-private",
"@rust/harpc-net": "0.0.0-private",
"@rust/harpc-types": "0.0.0-private"
Expand Down
1 change: 0 additions & 1 deletion libs/@local/harpc/wire-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"test:unit": "cargo hack nextest run --feature-powerset --all-targets && cargo test --all-features --doc"
},
"dependencies": {
"@rust/error-stack": "0.5.0",
"@rust/harpc-types": "0.0.0-private"
}
}
1 change: 0 additions & 1 deletion libs/@local/hash-authorization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dependencies": {
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/graph-types": "0.0.0-private"
}
}
1 change: 0 additions & 1 deletion libs/@local/hash-graph-types/rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"dependencies": {
"@blockprotocol/type-system-rs": "0.0.0-private",
"@rust/codec": "0.0.0-private",
"@rust/error-stack": "0.5.0",
"@rust/temporal-versioning": "0.0.0-private"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit d23aaa6

Please sign in to comment.