Cargo Features

[dependencies]
cargo-sonar = { version = "1.2.0", default-features = false, features = ["audit", "clippy", "codeclimate", "deny", "outdated", "sonar", "udeps", "document-features"] }
audit default = dyn-iter, rustsec

Support for converting the output of cargo-audit

Affects cli::Command.audit, cli::Command.audit_path, cargo-sonar::audit, cli::Issue

clippy default = cargo_metadata, dyn-iter

Support for converting the output of cargo-clippy

Affects cli::Command.clippy, cli::Command.clippy_path, cargo-sonar::clippy, cli::Issue

codeclimate default

Support for converting into the codeclimate format

Affects cargo-sonar::codeclimate

Required by the cargo-codeclimate binary

default = audit, clippy, codeclimate, deny, outdated, sonar, udeps

These default features are set whenever cargo-sonar is added without default-features = false somewhere in the dependency tree.

deny default = dyn-iter, rustsec

Support for converting the output of cargo-deny

Affects cli::Command.deny, cli::Command.deny_path, cargo-sonar::deny, cli::Issue

outdated default = dyn-iter

Support for converting the output of cargo-outdated

Affects cli::Command.outdated, cli::Command.outdated_path, cargo-sonar::outdated, cli::Issue

sonar default

Support for converting into the sonar format

Affects cargo-sonar::sonar

Required by the binary

udeps default = dyn-iter

Support for converting the output of cargo-udeps

Affects cli::Command.udeps, cli::Command.udeps_path, cargo-sonar::udeps, cli::Issue

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cargo_metadata clippy

Enables cargo_metadata ^0.15

document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml

dyn-iter audit clippy deny outdated udeps
rustsec audit deny

Enables rustsec ^0.27.0