Replies: 2 comments 9 replies
-
This is something I haven't found a good answer to in my reading: how do newcomers to Rust know how to update a new Cargo.toml file with the right/latest versions of the crate? Is there a good way to do this other than using My problem initially was that for crates like serde and tokio, it's also not obvious how to access the For example, how is one supposed to know the serde = { version = "1.0.193", features = ["derive"] }
sqlx = { version = "0.7.3", features = ["runtime-tokio", "postgres"] }
tokio = { version = "1.35.1", features = ["full"] } In Python, we construct the |
Beta Was this translation helpful? Give feedback.
-
@sanders41 On this topic, I was thinking about how to add documentation for the Python This would require that users install self-contained virtual environments in each piece's subdirectory, so it would require updates to the docs in a way that I normally do in my repos: SetupInstall the dependencies in a virtual environment via # First time setup
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# For subsequent runs, simply activate the environment
source venv/bin/activate Does this make sense? |
Beta Was this translation helpful? Give feedback.
-
In the setup section of the readme files for Rust it has people install the dependencies like:
This isn't wrong, but since we already have all the dependencies in the
Cargo.toml
files it also isn't needed. So as a general question, should we remove this from the readme's and discuss how to add dependencies as a broader topic in the book instead?Beta Was this translation helpful? Give feedback.
All reactions