diff --git a/Cargo.lock b/Cargo.lock index 53d84c1..8661feb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -359,7 +359,7 @@ dependencies = [ [[package]] name = "motsu" -version = "0.2.0" +version = "0.2.1" dependencies = [ "const-hex", "dashmap", diff --git a/Cargo.toml b/Cargo.toml index 64874c6..ad77658 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ alloy-sol-types = { version = "=0.7.6", default-features = false } # members motsu = { path = "crates/motsu" } -motsu-proc = { path = "crates/motsu-proc", version = "0.2.0" } +motsu-proc = { path = "crates/motsu-proc", version = "0.2.1" } [profile.release] codegen-units = 1 diff --git a/Readme.md b/Readme.md index 141c6b1..78050c7 100644 --- a/Readme.md +++ b/Readme.md @@ -15,7 +15,14 @@ Japanese -- we hold a stylus in our hand. ### Usage -Annotate tests with `#[motsu::test]` instead of `#[test]` to get access to VM +You can import `motsu` from crates.io by adding the following line to your `Cargo.toml`: + +```toml +[dev-dependencies] +motsu = "0.2.1" +``` + +Then, when writing tests, use `#[motsu::test]` instead of `#[test]` to get access to VM affordances. Note that we require contracts to implement `stylus_sdk::prelude::StorageType`. diff --git a/crates/motsu/Cargo.toml b/crates/motsu/Cargo.toml index 2bfa397..d2751d2 100644 --- a/crates/motsu/Cargo.toml +++ b/crates/motsu/Cargo.toml @@ -6,7 +6,7 @@ categories = ["development-tools::testing", "cryptography::cryptocurrencies"] keywords = ["arbitrum", "ethereum", "stylus", "unit-tests", "tests"] license.workspace = true repository.workspace = true -version = "0.2.0" +version = "0.2.1" [dependencies] const-hex.workspace = true