Rust Amplify Library
Amplifying Rust language capabilities: multiple generic trait implementations, type wrappers, derive macros.
Minimum supported rust compiler version (MSRV): 1.46 (stable channel)
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->Stringconversions- Collection-generating macros:
map!&bmap!for a rappidHashMapandBTreeMapcreationset!&bset!for a rappidHashSetandBTreeSetcreationlist!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