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
I'd suggest to create the own types and implement the From trait under a feature flag if needed. This way we don't rely on external crates that don't even implement i256, or have a lot more than needed in this crate.
The text was updated successfully, but these errors were encountered:
ethnum may be one external_crate to use. It seems that it's a simple and direct implementation of u256 and i256 without any ethereum types or utils.
From their docs:
The implementation tries to follow as closely as possible to primitive integer types, and should implement all the common methods and traits as the primitive integer types.
I'm planning to create a PR for uint256 and int256 but I would like some guidance related to the types.
Rust doesn't implement native i256 neither u256. Should this crate follow the example of klickhouse and implement its own types?
Should we use an external crate like primitive_types?
I'd suggest to create the own types and implement the
From
trait under a feature flag if needed. This way we don't rely on external crates that don't even implementi256
, or have a lot more than needed in this crate.The text was updated successfully, but these errors were encountered: