You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rand = { workspace = true, features = ["getrandom"] }
Problem
I am working on a project, where strict no-std compatibility is required. After adding plonky2 with no default features, it came to my surprise that there was a compilation failure regarding getrandom being dependent on std.
Upon investigating, I discovered, that getrandom does not support my target and, as a result, an error was thrown causing linking to std.
In my specific case, I don't actually need sampling functionality.
Proposed Solution
I suggest adding a feature-flag, where default will remain as it was with OsRng, however, as an opt-in path for projects, as mine, that might not have a need or support for OsRng, seeded solution.
The text was updated successfully, but these errors were encountered:
Hello guys!
Prerequisite
I see in field/src/types.rs following usage:
For that, you add dependency as below:
Problem
I am working on a project, where strict no-std compatibility is required. After adding
plonky2
with no default features, it came to my surprise that there was a compilation failure regardinggetrandom
being dependent onstd
.Upon investigating, I discovered, that
getrandom
does not support my target and, as a result, an error was thrown causing linking to std.In my specific case, I don't actually need sampling functionality.
Proposed Solution
I suggest adding a feature-flag, where default will remain as it was with
OsRng
, however, as an opt-in path for projects, as mine, that might not have a need or support forOsRng
, seeded solution.The text was updated successfully, but these errors were encountered: