Cargo Features
[dependencies]
cpp_syn = { version = "0.12.0", default-features = false, features = ["full", "aster", "fold", "visit", "parsing", "printing", "clippy"] }
- default = parsing, printing
-
These default features are set whenever
cpp_syn
is added without
somewhere in the dependency tree.default-features = false - full
-
Affects
constant::Other
,fold::Folder.fold_crate
,fold::Folder.fold_item
,fold::Folder.fold_expr
,fold::Folder.fold_foreign_item
,fold::Folder.fold_pat
,fold::Folder.fold_fn_decl
,fold::Folder.fold_trait_item
,fold::Folder.fold_impl_item
,fold::Folder.fold_method_sig
,fold::Folder.fold_stmt
,fold::Folder.fold_block
,fold::Folder.fold_local
,fold::Folder.fold_view_path
,fold::noop_fold_crate
,fold::noop_fold_block
,fold::noop_fold_item
,ident::parsing.wordlike
,visit::Visitor.visit_crate
,visit::Visitor.visit_item
… - aster
-
Affects
cpp_syn::aster
… - fold
-
Affects
cpp_syn::fold
… - visit
-
Affects
cpp_syn::visit
… - parsing default = cpp_synom, unicode-xid
-
Affects
attr::parsing
,constant::parsing
,data::parsing
,derive::parsing
,expr::parsing
,generics::parsing
,cpp_syn::parse
,lit::StrLit
,lit::ByteStrLit
,lit::IntLit
,lit::FloatLit
… - printing default = quote
-
Affects
generics::ImplGenerics
,generics::TyGenerics
,generics::Turbofish
…
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.
- clippy implicit feature
-
Enables clippy
clippy:
A bunch of helpful lints to avoid common pitfalls in Rust
- cpp_synom parsing
- quote printing
-
Enables quote ^0.3
- unicode-xid parsing
-
Enables unicode-xid ^0.0.4