5 releases (3 breaking)

new 0.4.0 Feb 6, 2025
0.3.0 Jan 7, 2025
0.2.1 Dec 17, 2024
0.2.0 Nov 7, 2024
0.1.0 Sep 11, 2024

#5 in #unit-tests

Download history 43/week @ 2024-10-19 46/week @ 2024-10-26 182/week @ 2024-11-02 59/week @ 2024-11-09 56/week @ 2024-11-16 74/week @ 2024-11-23 83/week @ 2024-11-30 119/week @ 2024-12-07 203/week @ 2024-12-14 27/week @ 2024-12-21 87/week @ 2024-12-28 304/week @ 2025-01-04 171/week @ 2025-01-11 214/week @ 2025-01-18 352/week @ 2025-01-25 402/week @ 2025-02-01

1,178 downloads per month
Used in motsu

MIT license

7KB
61 lines

Motsu's Procedural Macros

This crate contains the #[motsu::test] attribute definition used in motsu. This macro is designed to simplify testing for smart contracts built with the (Stylus SDK)https://docs.rs/stylus-sdk/latest/stylus_sdk/.

Usage

The #[motsu::test] attribute is an enhanced version of Rust's built-in #[test] attribute. It is specifically designed for testing within the Stylus execution environment, allowing you to interact with contract storage and environment variables like msg::sender.

Security

Refer to our Security Policy for more details.


lib.rs:

Procedural macro definitions used in motsu.

Dependencies

~270–740KB
~17K SLoC