Problem you are trying to solve
I'm new to Rust and trying to initialize an existing Rust project (https://github.com/containers/podlet) on my machine. I already cloned the repository and then installed rustup and trying to install the Rust version and packages defined in the Cargo.toml and Cargo.lock. But I can't figure out how I need to use rustup to read these files. Maybe that's not yet implemented?
I had to manually gather the version 1.85 from the Cargo.toml to install the correct toolchain:
rustup toolchain install 1.85
Cargo.toml file:
[package]
name = "podlet"
edition = "2024"
rust-version = "1.85"
[...]
[dependencies]
clap = { version = "4.2", features = ["derive", "wrap_help"] }
[...]
Solution you'd like
I would like to run a command that reads the necessary files itself like:
rustup toolchain install --toml-file [Cargo.toml]
...defaulting to Cargo.toml.
Maybe also reading Cargo.lock makes sense?
Notes
No response