Skip to content

Commit

Permalink
refactor: move os_rng as separate feature in plonky2 and starky
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Jan 28, 2025
1 parent 28fa57c commit 1b3061b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plonky2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ keywords.workspace = true
categories.workspace = true

[features]
default = ["gate_testing", "parallel", "rand_chacha", "std", "timing", "plonky2_field/os_rng"]
default = ["gate_testing", "parallel", "rand_chacha", "std", "timing", "os_rng"]
gate_testing = []
parallel = ["hashbrown/rayon", "plonky2_maybe_rayon/parallel"]
std = ["anyhow/std", "rand/std", "itertools/use_std"]
timing = ["std", "dep:web-time"]
os_rng = ["plonky2_field/os_rng"]

[dependencies]
ahash = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion starky/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ keywords.workspace = true
categories.workspace = true

[features]
default = ["parallel", "std", "timing"]
default = ["parallel", "std", "timing", "os_rng"]
parallel = ["plonky2/parallel", "plonky2_maybe_rayon/parallel"]
std = ["anyhow/std", "plonky2/std"]
timing = ["plonky2/timing"]
os_rng = ["plonky2/os_rng"]

[dependencies]
ahash = { workspace = true }
Expand Down

0 comments on commit 1b3061b

Please sign in to comment.