10 releases (stable)
Uses old Rust 2015
2.0.3 | Jul 11, 2017 |
---|---|
2.0.2 | Jun 16, 2017 |
2.0.0 | Mar 18, 2017 |
1.2.0 | Jan 12, 2017 |
0.2.2 | Jan 10, 2015 |
#12 in #primitives
401 downloads per month
Used in 2 crates
195KB
3.5K
SLoC
Literal macros for extprim
.
This crate provides a syntex extension (on stable) so that the extprim
types can be
constructed at compile-time using the i128!()
and u128!()
macros.
Setup
Simply add extprim_literals
to dependencies in Cargo.toml
:
[dependencies]
extprim_literals = "2.0"
Use the macros in src/consts.rs
:
#[macro_use] extern crate extprim_literals;
extern crate extprim;
use extprim::u128::u128;
const TEN: u128 = u128!(10);
# fn main() {}
Dependencies
~1.4–2MB
~44K SLoC