build(Cargo.toml): set minimum supported Rust version

Sets the MSRV for the crate. The `rust-toolchain.toml` file is dropped since
this is too retrictive when choosing choosing a toolchain for developing the
crate – uses exact semantics.

It is necessary to change the `flake.nix` to read this version from the
`Cargo.toml` so that it can select the rust toolchain to use via `rust-overlay`.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
This commit is contained in:
Lars Wirzenius
2025-05-15 14:40:10 +02:00
committed by Fintan Halpenny
co-authored by Fintan Halpenny
parent 1238715ff4
commit b41229ca07
4 changed files with 17 additions and 14 deletions
+3
View File
@@ -5,6 +5,9 @@ license = "MIT OR Apache-2.0"
version = "0.1.0"
authors = ["Fintan Halpenny <fintan.halpenny@gmail.com>"]
edition = "2021"
# N.B. always use the full semver so that rust-overlay in `flake.nix` can select
# the correct version
rust-version = "1.82.0"
[dependencies]
indexmap = { version = "2.7.1", features = ["serde"] }