Skip to content

Adding Dependencies 🟑 BETA

Dependency versions for the 123-member workspace are centralized in [workspace.dependencies] in the root Cargo.toml.

Where versions live

Kind Authority Rule
Shared library versions Root Cargo.toml [workspace.dependencies] Add the version once, consume with workspace = true.
Product version Root Cargo.toml [workspace.package] Never restate it in prose.
Downloaded services botserver/3rdparty.toml URL, filename and SHA-256 per component.
Application crates botserver/Cargo.toml, botui/Cargo.toml Track Cargo.lock.
Library crates botlib/Cargo.toml Do not track Cargo.lock (root AGENTS.md).

Adding a crate

edit [workspace.dependencies] β†’ consume with workspace = true β†’ cargo check -p <crate> β†’ cargo audit

Example of a workspace consumer:

[dependencies]
serde = { workspace = true, features = ["derive"] }

Security-sensitive dependencies use exact pins; regular dependencies may use caret requirements. This is a policy in the root AGENTS.md, not a generated table.

Limits

Claim Status
--features email Wrong; botserver names the feature mail.
rust-embed with interpolate-folder-path Only if the manifest actually declares it; do not copy an example flag.
Third-party component versions Read botserver/3rdparty.toml; do not quote a version from a page.
Duplicate dependency count Not asserted; run cargo tree --duplicates to measure it.