Cargo Features
[dependencies]
standalone-syn = { version = "0.13.0", 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
standalone-syn
is added without
somewhere in the dependency tree.default-features = false - full
-
Affects
expr::parsing.opt_ambiguous_expr
,fold::Fold.fold_arg_captured
,fold::Fold.fold_arg_self
,fold::Fold.fold_arg_self_ref
,fold::Fold.fold_file
,fold::Fold.fold_fn_arg
,fold::Fold.fold_fn_decl
,fold::Fold.fold_foreign_item
,fold::Fold.fold_foreign_item_fn
,fold::Fold.fold_foreign_item_static
,fold::Fold.fold_foreign_item_type
,fold::Fold.fold_foreign_item_verbatim
,fold::Fold.fold_impl_item
,fold::Fold.fold_impl_item_const
,fold::Fold.fold_impl_item_macro
,fold::Fold.fold_impl_item_method
,fold::Fold.fold_impl_item_type
,visit::Visit.visit_arg_captured
,visit::Visit.visit_arg_self
,visit::Visit.visit_arg_self_ref
… - 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
,expr::parsing
,file::parsing
,generics::parsing
,standalone-syn::buffer
,standalone-syn::synom
,standalone-syn::parse_quote
,standalone-syn::parse_str
,tt::delimited
,standalone-syn::spanned
,standalone-syn::parse
,standalone-syn::parse_file
,tt::braced
,tt::parenthesized
… - printing default = standalone-quote
-
Affects
generics::ImplGenerics
,generics::TypeGenerics
,generics::Turbofish
,path::PathTokens
,standalone-syn::spanned
… - visit
-
Affects
gen_helper::visit
… - visit-mut
-
Affects
gen_helper::visit_mut
… - fold
-
Affects
gen_helper::fold
… - clone-impls default
- extra-traits
-
Affects
tt::TokenTreeHelper
,tt::TokenStreamHelper
… - proc-macro default
-
Enables proc-macro of proc-macro2 ^0.2.3 and standalone-quote
standalone-quote:
Disabling the proc-macro feature removes the dynamic library dependency on libproc_macro in the rustc compiler.
Affects
synom::Parser.parse
,standalone-syn::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.