Skip to content

Commit 19514f3

Browse files
David Tolnayfacebook-github-bot
authored andcommitted
Simplify lazy_static dependency
Summary: 1. `lazy_static` has no default features so `default-features = false` has no effect. 2. The `spin_no_std` feature is not something that you would want in builds where a standard library synchronization primitive like `std::sync::Once` is available, only in the no-std universe, where it is already controlled by this: https://www.internalfb.com/code/fbsource/[5e45000999be0e3bb870baef8c9b7a1b5ddd0160]/third-party/rust/reindeer.toml?lines=435-438%2C440 The `spin_no_std` feature will sadly remain enabled for now due to a misguided use of it in the `num-bigint-dig` crate, which is a dependency of our default universe. https://www.internalfb.com/code/fbsource/[d00d16b2dbe75afdd99af7d8343e42258d4f73be]/third-party/rust/vendor/num-bigint-dig-0.8.2/Cargo.toml?lines=56-58 Reviewed By: cjlongoria Differential Revision: D77739243 fbshipit-source-id: 6d913e83ed0947be489b39dcf40738e4381b8783
1 parent 90dd1e2 commit 19514f3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

reverie-ptrace/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ close-err = "1.0.2"
1717
futures = { version = "0.3.30", features = ["async-await", "compat"] }
1818
goblin = { version = "0.8.2", features = ["elf32", "elf64", "endian_fd"] }
1919
iced-x86 = "1.17.0"
20-
lazy_static = { version = "1.5", features = ["spin_no_std"], default-features = false }
20+
lazy_static = "1.5"
2121
libc = "0.2.139"
2222
nix = { version = "0.29.0", features = ["dir", "event", "hostname", "inotify", "ioctl", "mman", "mount", "net", "poll", "ptrace", "reboot", "resource", "sched", "signal", "term", "time", "user", "zerocopy"] }
2323
num-traits = { version = "0.2.18", default-features = false }

reverie/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ anyhow = "1.0.98"
1414
async-trait = "0.1.86"
1515
bitflags = { version = "2.6", features = ["serde", "std"], default-features = false }
1616
byteorder = "1.3"
17-
lazy_static = { version = "1.5", features = ["spin_no_std"], default-features = false }
17+
lazy_static = "1.5"
1818
libc = "0.2.139"
1919
linked-hash-map = { version = "0.5", features = ["serde_impl"] }
2020
memmap2 = "0.9.5"

safeptrace/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "BSD-2-Clause"
1111
[dependencies]
1212
bitflags = { version = "2.6", features = ["serde", "std"], default-features = false }
1313
futures = { version = "0.3.30", features = ["async-await", "compat"] }
14-
lazy_static = { version = "1.5", features = ["spin_no_std"], default-features = false }
14+
lazy_static = "1.5"
1515
libc = "0.2.139"
1616
nix = { version = "0.29.0", features = ["dir", "event", "hostname", "inotify", "ioctl", "mman", "mount", "net", "poll", "ptrace", "reboot", "resource", "sched", "signal", "term", "time", "user", "zerocopy"] }
1717
parking_lot = { version = "0.12.1", features = ["send_guard"] }

0 commit comments

Comments
 (0)