Skip to content

Specify Rust edition in Cargo manifests - #247

Open
cepetr wants to merge 1 commit into
nayuki:masterfrom
cepetr:cepetr/rust-edition
Open

Specify Rust edition in Cargo manifests#247
cepetr wants to merge 1 commit into
nayuki:masterfrom
cepetr:cepetr/rust-edition

Conversation

@cepetr

@cepetr cepetr commented Aug 12, 2026

Copy link
Copy Markdown

The manifests of both Rust crates (rust/Cargo.toml and rust-no-heap/Cargo.toml) don't specify package.edition. For projects that consume these crates as a path dependency (e.g. via a git submodule), recent versions of Cargo emit this warning on every build:

warning: .../rust-no-heap/Cargo.toml: `package.edition` is unspecified,
defaulting to `2015` while the latest is `2024`

This PR adds edition = "2015" to the [package] section of both manifests. This makes the current implicit default explicit and silences the warning, with no change to how the code compiles. (Upgrading to a newer edition could be done separately, but that would need a review of the code under the new edition's semantics, so this PR deliberately sticks
with 2015.)

We consume the no-heap crate in trezor/trezor-firmware as a git submodule and would be happy to see this fixed upstream.

Thanks for the great library!

@cepetr cepetr changed the title Specify Rust edition declaration in Cargo manifests Specify Rust edition in Cargo manifests Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant