Releases: OffchainLabs/cargo-stylus
v0.5.6
v0.5.5
What's Changed
- Update README.md with note on Arbiscan contract verification
- Add Arb1 RPC as Default URL
- Ignore Deprecated Cargo Stylus Extensions
- simulate api for debug trace call
- Set from address on placeBid call
Full Changelog: v0.5.3...v0.5.5
v0.5.3
What's Changed
- Include Optional Cargo Stylus Version Flag for Verification by @rauljordan in #93
- Hotfix for Reproducible Verification by @rauljordan in #94
Full Changelog: v0.5.1...v0.5.3
Minor Program Verification Fixes + Cargo.lock Enforcement
What's Changed
- Update install instructions by @chrisco512 in #90
- Enforced Cargo.lock and Version in Cargo.toml for User Projects by @rauljordan in #91
- Bump to v0.5.1 Fix by @rauljordan in #92
- Remove Windows badge by @chrisco512 in #89
Major Simplifications and Improvements
Background
This release fixes a variety of bugs reported for cargo stylus, including issues when estimating gas, using the cache subcommands, contract verification, and tracing. Moreover, it removes all the different cargo stylus sub-binaries in favor of a single cargo-stylus
What's Changed
- Standardize Terminology to Contract by @rauljordan in #69
- Update Stylus Replay with changes on the HostIO API by @gligneul in #73
- Add replay command to install script by @gligneul in #75
- Trim white spaces when reading private key by @gligneul in #77
- Miscellaneous Issue Resolution by @rauljordan in #70
- Add option to use native tracer in replay by @gligneul in #84
- docs: add section on building and running locally by @emnul in #86
- Pin Alloy Versions for Cargo Stylus by @rauljordan in #79
- Strip Potentially Sensitive Sections from User WASMs by @rauljordan in #81
- Fix Up Estimate Gas by @rauljordan in #80
- Revamp and Add More to Stylus Cache Manager CLI by @rauljordan in #78
- Merge All Current Cargo Stylus Subcommands Into Main Package by @rauljordan in #82
New Contributors
Full Changelog: v0.4.2...v0.5.0
Improved Reproducible Builds
What's Changed
- Major Changes to Reproducible Builds by @rauljordan in #53
- Update Deps And Cargo Stylus Cache With Latest Contract ABI by @rauljordan in #58
- Fix: Ensure --version flag works correctly for cargo stylus by @joewnga in #55
- Obtain Cache Manager Addr from ArbWasmCache Precompile + Informational Message About Cache on Deploy by @rauljordan in #59
- Revamp Reproducible Builds by @rauljordan in #56
- Standalone Command to Activate Already Deployed Programs by @rauljordan in #60
- bump version by @rauljordan in #61
Full Changelog: v0.4.0...v0.4.2
Release v0.4.0
A big release of Cargo Stylus is now live, with support for the following major features:
- Program verification: Stylus programs in Rust are now deployed with a hash of their project's rust source files in their program init data, meaning they can be reproducibly verified against a commit in a Dockerized environment
- Custom extensions: Ability to add custom cargo stylus subcommands, with an example included under
example/
- Stylus cache support: A command has been added to make it easy to interact with the Stylus cache manager on Arbitrum Sepolia
To see how to use program verification, read more here
What's Changed
- fix typo in src/tx.rs by @afosan in #28
- Simpler Message On Retrying Compilation With Nightly by @rauljordan in #21
- Minor Fixes for UX by @rauljordan in #29
- update install instructions with cargo-stylus-check by @chrisco512 in #37
- Subcommands and Extensions by @rachel-bousfield in #33
- Bump Crate Versions for Publish by @rauljordan in #39
- Add description / keywords to cgen crate by @rauljordan in #40
- Updated wat example by @yahgwai in #41
- Fix links in README.md by @TucksonDev in #42
- Detect if User Is Tracing Activation / Deployment Txs in Tracing and Exit Early by @rauljordan in #44
- Change default RPC to Arbitrum Sepolia by @TucksonDev in #46
- Reproducible Verification of Stylus Programs by @rauljordan in #43
- Add Support for Caching Stylus Programs in Cargo Stylus by @rauljordan in #49
- Add Windows Support by @joewnga in #48
- Allow Configurable Max Fee Per Gas in Tx Sending by @rauljordan in #45
- Bump to Version 4.0 by @rauljordan in #50
New Contributors
- @afosan made their first contribution in #28
- @chrisco512 made their first contribution in #37
- @yahgwai made their first contribution in #41
- @TucksonDev made their first contribution in #42
- @joewnga made their first contribution in #48
Full Changelog: v0.2.1...v0.4.0
Release v0.2.1
A new release of the Stylus SDK is out, which is the start of some really neat tooling we're working on to improve DevX, especially around testing.
You can now run gdb against onchain transactions!
To use it, you'll need to upgrade cargo stylus. Here's the command for that
RUSTFLAGS="-C link-args=-rdynamic" cargo install --force cargo-stylus
Since the new cargo stylus trace and cargo stylus replay commands currently require Geth's js tracer, you'll need to run a node locally with the latest master. This will become easier in the future but for now is a bit bleeding edge :)
One thing to note after the upgrade, we've moved to a new major version of the Stylus SDK. In this new model, a Stylus program is structured as a library, rather than a normal Rust binary.
As a result, you'll need to switch from a main.rs to a lib.rs. cargo stylus new will do this for you for new projects.
What's Changed
- UX Improvements and Support JSON ABI Exports by @rauljordan in #6
- fix deploy command messages by @Naokiakazawa in #5
- Color Improvements and Addr Checksum by @rauljordan in #9
- Remove clabot by @rachel-bousfield in #11
- C headers: utility to generate c code from solc output by @tsahee in #10
- Bump version number for 0.1.6 by @rachel-bousfield in #12
- doc: hint in error message by @prestwich in #8
- Speed up cargo stylus by @rachel-bousfield in #14
- Version Bump SDK in Cargo Stylus by @rauljordan in #13
- Some cleanup by @rachel-bousfield in #15
- Switch to cdylibs by @rachel-bousfield in #16
- Feat/add bin attr by @Defernus in #17
- Add support for
gdb
by @rachel-bousfield in #18 - Update readme installation instructions by @rachel-bousfield in #19
New Contributors
- @Naokiakazawa made their first contribution in #5
- @tsahee made their first contribution in #10
- @prestwich made their first contribution in #8
- @Defernus made their first contribution in #17
Full Changelog: v0.1.4...v0.2.1
Cargo Stylus 0.1.4
Initial release of cargo stylus
, with a few minor changes based on feedback from users.
Most notably, we now handle the case where an unfunded account tries to deploy a contract.