← Rule catalog

Cargo health · Dependencies

rust_doctor::cargo::path_dependency_outside_workspace

Vendor the crate inside the workspace or publish it; a path leaving the workspace only resolves on the author's machine.

Category
Dependencies
Default level
warn
Tier
P1
Producer
Cargo health

What it reads

Cargo.toml, Cargo.lock and .cargo/config.toml.

Tier

Serious: worth interrupting other work for.

The tier bounds how severe a rule may be; its category bounds the tier.

Change it

Turn it off, or make it blocking, without touching the code it flags:

rust-doctor --rule rust_doctor::cargo::path_dependency_outside_workspace=off .
rust-doctor --rule rust_doctor::cargo::path_dependency_outside_workspace=error .

Set it once in rust-doctor.toml

Other Dependencies rules