Skip to content

Commit 35da25b

Browse files
committed
Add safety dependency to alloc and std crates
Just as previously done for core: this will enable future use of `safety::{ensures,requires}` in those crates.
1 parent bb44f4b commit 35da25b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/alloc/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ edition = "2021"
1111
[dependencies]
1212
core = { path = "../core" }
1313
compiler_builtins = { version = "0.1.123", features = ['rustc-dep-of-std'] }
14+
safety = { path = "../contracts/safety" }
1415

1516
[dev-dependencies]
1617
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }

library/std/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ hashbrown = { version = "0.14", default-features = false, features = [
2626
std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = [
2727
'rustc-dep-of-std',
2828
] }
29+
safety = { path = "../contracts/safety" }
2930

3031
# Dependencies of the `backtrace` crate
3132
rustc-demangle = { version = "0.1.24", features = ['rustc-dep-of-std'] }

0 commit comments

Comments
 (0)