HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cargo vendor — Vendor all dependencies of a project into the specified directory (default: `vendor`). More informat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandalldependenciescliintocargo vendorvendorproject

Problem

How to use the cargo vendor command: Vendor all dependencies of a project into the specified directory (default: vendor). More information: <https://doc.rust-lang.org/cargo/commands/cargo-vendor.html>.

Solution

cargo vendor — Vendor all dependencies of a project into the specified directory (default: vendor). More information: <https://doc.rust-lang.org/cargo/commands/cargo-vendor.html>.

Vendor dependencies and configure cargo to use the vendored sources in the current project:
cargo vendor {{path/to/directory}} > .cargo/config.toml

Code Snippets

Vendor dependencies and configure `cargo` to use the vendored sources in the current project

cargo vendor {{path/to/directory}} > .cargo/config.toml

Context

tldr-pages: common/cargo vendor

Revisions (0)

No revisions yet.