Cryptographically verifiable, distributed, dependency reviews.
Add Last reviewed version to [dependencies]:Cargo.toml:
num-traits = "0.2.11"
Filter reviews clicking on the numbers in the summary.
Legend of column names of the summary on first page and in tooltip hints.
num-traits provides traits for writing code generic over numeric types
and implementations for built-in numeric types. I exclusively reviewed
num-traits uses some instances of unsafe code. Each unsafe block has a
comment explaining why it is required and why it is sound. The blocks are
easy to understand and check locally.
With a prior parsing bug fixed and Rust soon stabilizing floating point to
integer conversion without UB the previous reservations no longer hold. It
looks stable as is and doesn't attempt anything far fetched.
Fixed panic when parsing floating point literals
Mostly just traits; unsafe can probably be removed, see https://github.com/rust-num/num-traits/issues/123
Not quite ready for untrusted input due to panics and not fuzzed. Minor
soundness concerns for floating point operations, rooted in Rust language
as operator not having fully specified behaviour (yet). All is well for the
integer part of the library.
Nothing but a re-export of num-traits 0.2