From fa945e99bae07c01e4372445697fcd6b9ca98068 Mon Sep 17 00:00:00 2001 From: Gustavo Gonzalez Date: Tue, 17 Dec 2024 16:20:07 -0300 Subject: [PATCH 1/3] upgrade motsu --- Cargo.lock | 2 +- Cargo.toml | 2 +- Readme.md | 9 ++++++++- crates/motsu/Cargo.toml | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) 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..4dccc68 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 +[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 From 120cc6c8f242fb5518f6c2ae3eec74db704ca62e Mon Sep 17 00:00:00 2001 From: Gustavo Gonzalez Date: Tue, 17 Dec 2024 16:22:16 -0300 Subject: [PATCH 2/3] update readme --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 4dccc68..2942e7f 100644 --- a/Readme.md +++ b/Readme.md @@ -18,7 +18,7 @@ Japanese -- we hold a stylus in our hand. You can import `motsu` from crates.io by adding the following line to your `Cargo.toml` : ```toml -[dependencies] +[dev-dependencies] motsu = "0.2.1" ``` From d2211e05d9ce29720090118f6953a1bdee9a1e6d Mon Sep 17 00:00:00 2001 From: Nenad Date: Tue, 17 Dec 2024 21:26:40 +0100 Subject: [PATCH 3/3] docs: remove redundant space --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 2942e7f..78050c7 100644 --- a/Readme.md +++ b/Readme.md @@ -15,7 +15,7 @@ Japanese -- we hold a stylus in our hand. ### Usage -You can import `motsu` from crates.io by adding the following line to your `Cargo.toml` : +You can import `motsu` from crates.io by adding the following line to your `Cargo.toml`: ```toml [dev-dependencies]