Stylus v0.10 recommended libraries#3105
Merged
anegg0 merged 8 commits intostylus-v0.10from Mar 4, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Pete <petevielhaber@gmail.com>
Co-authored-by: Pete <petevielhaber@gmail.com>
Co-authored-by: Pete <petevielhaber@gmail.com>
rory-ocl
reviewed
Feb 27, 2026
|
|
||
| To save developers time on smart contract development, we’ve curated a list of crates and utilities we found helpful. Keep in mind that we have not audited this code, and you should always be mindful about pulling dependencies into your codebase, whether they’ve been audited or not. We provide this list for your use at your own risk. | ||
|
|
||
| - [`rust_decimal`](https://crates.io/crates/rust_decimal): Decimal number implementation written in pure Rust. Suitable for financial and fixed-precision calculations |
There was a problem hiding this comment.
Uses stdlib by default. Will need to specify default-features = [] when declaring this dependency.
rory-ocl
reviewed
Feb 27, 2026
| - [`rust_decimal`](https://crates.io/crates/rust_decimal): Decimal number implementation written in pure Rust. Suitable for financial and fixed-precision calculations | ||
| - [`special`](https://crates.io/crates/special): The package provides special functions, which are mathematical functions with special names due to their common usage, such as `sin`, `ln`, `tan`, etc. | ||
| - [`hashbrown`](https://crates.io/crates/hashbrown): Rust port of Google's SwissTable hash map | ||
| - [`time`](https://crates.io/crates/time): Date and time library |
There was a problem hiding this comment.
Uses stdlib by default. Will need to specify default-features = [] when declaring this dependency.
rory-ocl
reviewed
Feb 27, 2026
| - [`special`](https://crates.io/crates/special): The package provides special functions, which are mathematical functions with special names due to their common usage, such as `sin`, `ln`, `tan`, etc. | ||
| - [`hashbrown`](https://crates.io/crates/hashbrown): Rust port of Google's SwissTable hash map | ||
| - [`time`](https://crates.io/crates/time): Date and time library | ||
| - [`hex`](https://crates.io/crates/hex): Encoding and decoding data into/from hexadecimal representation |
There was a problem hiding this comment.
Uses stdlib by default. Will need to specify default-features = [] when declaring this dependency.
These crates use stdlib by default and require default-features = false to work in Stylus no_std contracts, per reviewer feedback.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add recommended libraries guide for Stylus v0.10 documentation.
This PR adds the recommended libraries advanced guide from the alternate structure.