<commit_before>= cargo-vendor(1)
:idprefix: cargo_vendor_
:doctype: manpage

== NAME

cargo-vendor - Vendor all dependencies locally

== SYNOPSIS

`cargo vendor [_OPTIONS_] [_PATH_]`

== DESCRIPTION

This cargo subcommand will vendor all crates.io and git dependencies for a
project into the specified directory at `<path>`. After this command completes
the vendor directory specified by `<path>` will contain all remote sources from
dependencies specified. Additional manifests beyond the default one can be
specified with the `-s` option.

The `cargo vendor` command will also print out the configuration necessary
to use the vendored sources, which you will need to add to `.cargo/config`.

== OPTIONS

=== Owner Options

*-s* _MANIFEST_::
*--sync* _MANIFEST_::
    Specify extra `Cargo.toml` manifests to workspaces which should also be
    vendored and synced to the output.

*--no-delete*::
    Don't delete the "vendor" directory when vendoring, but rather keep all
    existing contents of the vendor directory

*--respect-source-config*::
    Instead of ignoring `[source]` configuration by default in `.cargo/config`
    read it and use it when downloading crates from crates.io, for example

=== Manifest Options

include::options-manifest-path.adoc[]

=== Display Options

include::options-display.adoc[]

=== Common Options

include::options-common.adoc[]

include::options-locked.adoc[]

include::section-environment.adoc[]

include::section-exit-status.adoc[]

== EXAMPLES

. Vendor all dependencies into a local "vendor" folder

    cargo vendor

. Vendor all dependencies into a local "third-part/vendor" folder

    cargo vendor third-party/vendor

. Vendor the current workspace as well as another to "vendor"

    cargo vendor -s ../path/to/Cargo.toml
<commit_msg>Auto merge of #7320 - mandrean:docs/typo-cargo-vendor-examples, r=Eh2406<commit_after>= cargo-vendor(1)
:idprefix: cargo_vendor_
:doctype: manpage

== NAME

cargo-vendor - Vendor all dependencies locally

== SYNOPSIS

`cargo vendor [_OPTIONS_] [_PATH_]`

== DESCRIPTION

This cargo subcommand will vendor all crates.io and git dependencies for a
project into the specified directory at `<path>`. After this command completes
the vendor directory specified by `<path>` will contain all remote sources from
dependencies specified. Additional manifests beyond the default one can be
specified with the `-s` option.

The `cargo vendor` command will also print out the configuration necessary
to use the vendored sources, which you will need to add to `.cargo/config`.

== OPTIONS

=== Owner Options

*-s* _MANIFEST_::
*--sync* _MANIFEST_::
    Specify extra `Cargo.toml` manifests to workspaces which should also be
    vendored and synced to the output.

*--no-delete*::
    Don't delete the "vendor" directory when vendoring, but rather keep all
    existing contents of the vendor directory

*--respect-source-config*::
    Instead of ignoring `[source]` configuration by default in `.cargo/config`
    read it and use it when downloading crates from crates.io, for example

=== Manifest Options

include::options-manifest-path.adoc[]

=== Display Options

include::options-display.adoc[]

=== Common Options

include::options-common.adoc[]

include::options-locked.adoc[]

include::section-environment.adoc[]

include::section-exit-status.adoc[]

== EXAMPLES

. Vendor all dependencies into a local "vendor" folder

    cargo vendor

. Vendor all dependencies into a local "third-party/vendor" folder

    cargo vendor third-party/vendor

. Vendor the current workspace as well as another to "vendor"

    cargo vendor -s ../path/to/Cargo.toml

{'fraction_non_alphanumeric': 0.09399117971334069, 'fraction_numerical': 0.0027563395810363835, 'mean_word_length': 4.336764705882353, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '218398', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1031, 'n_words': 411}