Rust Amplify Library
Amplifying Rust language capabilities: multiple generic trait implementations, type wrappers, derive macros.
Main features
Derive macros
- Display
- From
- Error
- Getters
- AsAny
A sample of what can be done with the macros:
See more in amplify_derive
crate README.
Macros
s!
for fast&str
->String
conversions- Collection-generating macros:
map!
&bmap!
for a rappidHashMap
andBTreeMap
creationset!
&bset!
for a rappidHashSet
andBTreeSet
creationlist!
forLinkedList
Generics
Library proposes generic implementation strategies, which allow multiple
generic trait implementations. See src/strategy.rs
mod for the details.
Wapper type
TODO: write description
Build
Important: for now this library uses rust nightly version, to unlock most of Rust language power. This will change in the future with overall library maturation.
rustup install nightly
rustup default nightly
cargo build --all
cargo test