Cargo Features
cargo-snippet has no features set by default.
[dependencies]
cargo-snippet = { version = "0.6.5", features = ["binaries", "inner_rustfmt"] }
- binaries = clap, env_logger, glob, lazy_static, log, proc-macro2, quote, regex, serde, serde_derive, serde_json, syn
-
Required by the binary
- inner_rustfmt = rustfmt-nightly
-
Affects
writer::format_src
…
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.
- syn binaries?
-
Enables syn ^1
- quote binaries?
- proc-macro2 binaries?
- rustfmt-nightly inner_rustfmt?
- glob binaries?
- clap binaries?
-
Enables clap ^2.29
- serde binaries?
- serde_derive binaries?
- serde_json binaries?
- log binaries?
- env_logger binaries?
-
Enables env_logger ^0.7
- regex binaries?
- lazy_static binaries?