github OffchainLabs/stylus-sdk-rs v0.2.4
Stylus SDK 0.2.4

latest releases: v0.6.0, v0.4.3, v0.4.2...
12 months ago

This backwards-compatible patch introduces new features, improved documentation, and minor bug fixes.

Import Raw Host I/Os

Using the new hostio feature flag, users may import the hostio module for direct access to the VM.
This allows users to opt out of Alloy and other large imports.

use stylus_sdk::hostio;
use stylus_sdk::{alloy_primitives::Address, msg};

let mut sender = Address::ZERO;
unsafe {
    hostio::msg_sender(sender.as_mut_ptr());
}

assert_eq!(sender, msg::sender());

Don't miss a new stylus-sdk-rs release

NewReleases is sending notifications on new releases.