u256-literal 0.1.0

Procedural macro for converting u256 literals to U256 at compile time.
Documentation

u256-literal

Usage

use primitive_types::U256;
use u256_literal::u256;

const Q96: U256 = u256!(0x1000000000000000000000000);

let x = u256!(0x1234ff);
let y = u256!(987654);

License

All crates licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.