chore: sync Rust ver with core; reduce deps#46
Open
joshuamegnauth54 wants to merge 1 commit intofreenet:mainfrom
Open
chore: sync Rust ver with core; reduce deps#46joshuamegnauth54 wants to merge 1 commit intofreenet:mainfrom
joshuamegnauth54 wants to merge 1 commit intofreenet:mainfrom
Conversation
`freenet-core`'s minimum version is 1.80 while `freenet-stdlib`'s version is 1.71. 1.71 was released three years ago. Bumping to 1.80 allows dropping `once_cell` in favor of using the standard lib. I disabled the default features for `chrono`, `futures`, and `semver` because they weren't used. Chrono is only used in one place and the type is constructed through FFI rather than calling its functions. Futures is used for its traits so the rest of it isn't needed. I removed `serde_bytes` in favor of `serde_with`. `serde_with` includes its own version of `Bytes` and `serde_bytes` was only used twice in the code.
iduartgomez
approved these changes
Jan 21, 2026
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.
freenet-core's minimum version is 1.80 whilefreenet-stdlib's version is 1.71. 1.71 was released three years ago. Bumping to 1.80 allows droppingonce_cellin favor of using the standard lib.I disabled the default features for
chrono,futures, andsemverbecause they weren't used. Chrono is only used in one place and the type is constructed through FFI rather than calling its functions. Futures is used for its traits so the rest of it isn't needed.I removed
serde_bytesin favor ofserde_with.serde_withincludes its own version ofBytesandserde_byteswas only used twice in the code.Here is some extra info on the
chronochanges to save you some time.chrono::DateTime<Utc>is constructed in freenet-core/crates/core/src/wasm_runtime/native_api.rs. It's written directly to the contract's memory. The code for that, infreenet-stdlib, is here. This bypassesserdeand the native system entirely, so theserdeandstdfeatures aren't needed onchrono.