atropinetears / ramp-primes Goto Github PK
View Code? Open in Web Editor NEWA Rust Crate For Generating Large Prime and Composite Integers From A CSPRNG
License: Apache License 2.0
A Rust Crate For Generating Large Prime and Composite Integers From A CSPRNG
License: Apache License 2.0
Hello!
Thanks for this crate! There's something bugging me about it though:
https://github.com/0xSilene/ramp-primes/blob/f0349f29a958769a25863bc0da14f7b4e0f6b4ce/src/lib.rs#L142
The input being Int
and not &Int
is causing unnecessary clones in my code. Any objection to changing it?
Hi and thanks for your crate!
I'm having trouble compiling its dependency RAMP. What I did so far:
ramp-primes = "0.4.0"
and ramp = "0.5"
to my Cargo.tomlrustup toolchain install nightly; rustup default nightly
When I call cargo run
, I get this error:
Compiling ramp v0.5.9
error[E0199]: implementing the trait `Step` is not unsafe
--> /home/mb/.cargo/registry/src/github.com-1ecc6299db9ec823/ramp-0.5.9/src/int.rs:3697:1
|
3697 | / unsafe impl std::iter::Step for Int {
3698 | | fn steps_between(start: &Int, end: &Int) -> Option<usize> {
3699 | | let diff = (start - end).abs();
3700 | |
... |
3715 | | }
3716 | | }
| |_^
For more information about this error, try `rustc --explain E0199`.
error: could not compile `ramp` due to previous error
cargo version
gives:
cargo 1.57.0-nightly (d56b42c54 2021-09-27)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.