Rust Amplify Library
Amplifying Rust language capabilities: multiple generic trait implementations, type wrappers, derive macros.
Minimum supported rust compiler version (MSRV): 1.41.1
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
rustup install nightly
rustup default nightly
cargo build --all
cargo test