Cargo Features

[dependencies]
syn-next = { version = "1.0.0-rc4", 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-next is added without default-features = false somewhere in the dependency tree.

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-next::group, syn-next::buffer, syn-next::ext, syn-next::parse_quote, syn-next::parse, syn-next::parse_str, lifetime::Lifetime, lit::Lit, mac::parse_delimiter, sealed::lookahead, span::FromSpans, token::Token

printing default = quote-next

Affects generics::ImplGenerics, generics::TypeGenerics, generics::Turbofish, token::printing, syn-next::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-next and quote-next

quote-next:

Disabling the proc-macro feature removes the dynamic library dependency on libproc_macro in the rustc compiler.

Affects parse::Parser.parse, syn-next::parse_macro_input, syn-next::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.

quote-next printing proc-macro