Check out the latest release of the library on crates.io
by following this link d-modules crate.
The version is specified in the install instructions or directly add them in your Cargo.toml
file for the smart contract
with:
toml
[dependencies.d-modules]
version = "x.x.x"
In your smart contract main lib entry inherit the module you want to use directly on the contract trait: ```rust use d-modules::my_module;
pub trait MyContract: my_module::MyModule { ... ```
Or use it on another module, but beware the contract also needs to implement the trait
```rust use d-modules::my_module;
pub trait MyOtherModule: my_module::MyModule { ...
pub trait MyContract: MyOtherModule + my_module::MyModule { ... ```