Cargo Features
[dependencies]
syn-impersonated = { version = "0.1.18", default-features = false, features = ["full", "derive", "parsing", "printing", "visit", "visit-mut", "fold", "clone-impls", "extra-traits", "proc-macro"] }
- default = clone-impls, derive, parsing, printing, proc-macro
-
These default features are set whenever
syn-impersonated
is added without
somewhere in the dependency tree.default-features = false - full
-
Affects
fold::Fold.fold_arm
,fold::Fold.fold_block
,fold::Fold.fold_expr_array
,fold::Fold.fold_expr_assign
,fold::Fold.fold_expr_assign_op
,fold::Fold.fold_expr_async
,fold::Fold.fold_expr_await
,fold::Fold.fold_expr_block
,fold::Fold.fold_expr_box
,fold::Fold.fold_expr_break
,fold::Fold.fold_expr_closure
,fold::Fold.fold_expr_continue
,fold::Fold.fold_expr_for_loop
,fold::Fold.fold_expr_group
,fold::Fold.fold_expr_if
,fold::Fold.fold_expr_let
,visit::Visit.visit_arm
,visit::Visit.visit_block
,visit::Visit.visit_expr_array
,visit::Visit.visit_expr_assign
… - derive default
-
Affects
fold::Fold.fold_data
,fold::Fold.fold_data_enum
,fold::Fold.fold_data_struct
,fold::Fold.fold_data_union
,fold::Fold.fold_derive_input
,fold::fold_data
,fold::fold_data_enum
,fold::fold_data_struct
,fold::fold_data_union
,fold::fold_derive_input
,visit::Visit.visit_data
,visit::Visit.visit_data_enum
,visit::Visit.visit_data_struct
,visit::Visit.visit_data_union
,visit::Visit.visit_derive_input
,visit::visit_data
,visit::visit_data_enum
,visit::visit_data_struct
,visit::visit_data_union
,visit::visit_derive_input
… - parsing default
-
Affects
attr::parsing
,data::parsing
,derive::parsing
,error::new_at
,file::parsing
,generics::parsing
,ident::Ident
,item::parsing
,syn-impersonated::group
,syn-impersonated::buffer
,syn-impersonated::ext
,syn-impersonated::parse_quote
,syn-impersonated::parse
,syn-impersonated::parse_str
,lifetime::Lifetime
,lit::Lit
,mac::parse_delimiter
,sealed::lookahead
,span::FromSpans
,token::Token
… - printing default = quote-impersonated
-
Affects
generics::ImplGenerics
,generics::TypeGenerics
,generics::Turbofish
,token::printing
,syn-impersonated::spanned
… - visit
-
Affects
gen_helper::visit
… - visit-mut
-
Affects
gen_helper::visit_mut
… - fold
-
Affects
gen_helper::fold
… - clone-impls default
- extra-traits
- proc-macro default
-
Enables proc-macro of proc-macro2-impersonated and quote-impersonated
quote-impersonated:
Disabling the proc-macro feature removes the dynamic library dependency on libproc_macro in the rustc compiler.
Affects
parse::Parser.parse
,syn-impersonated::parse_macro_input
,syn-impersonated::parse
…
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.