Skip to content

Commit 026aefc

Browse files
committed
add better explination why frozen-abi re-exports rand, rand_chacha and bincode
1 parent d15f518 commit 026aefc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frozen-abi/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ solana-frozen-abi-macro = { workspace = true }
3535
thiserror = { workspace = true }
3636

3737
[target.'cfg(not(target_os = "solana"))'.dependencies]
38+
# This dependency is used only to back `frozen-abi` StableAbi API
39+
bincode = "1.3.3"
3840
im = { workspace = true, features = ["rayon", "serde"] }
3941
memmap2 = { workspace = true }
40-
# these are re-exports for StableAbi
42+
# These dependencies are used only to back `frozen-abi` StableAbi API,
43+
# to avoid version skew and keep digest computation stable regardless of consumer dependencies.
4144
rand = "0.8.5"
4245
rand_chacha = "0.3.1"
43-
bincode = "1.3.3"
4446

4547
[target.'cfg(not(target_os = "solana"))'.dev-dependencies]
4648
bitflags = { workspace = true, features = ["serde"] }

0 commit comments

Comments
 (0)