Cargo Features

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

full

Affects expr::parsing.expr_block, fold::Fold.fold_arg_captured, fold::Fold.fold_arg_self, fold::Fold.fold_arg_self_ref, 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_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, 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, error::new_at, expr::parsing, file::parsing, generics::parsing, ident::Ident, syn-pub-items::group, syn-pub-items::buffer, syn-pub-items::ext, syn-pub-items::parse_quote, syn-pub-items::lookahead, syn-pub-items::parse, syn-pub-items::parse_str, lifetime::Lifetime, lit::Lit, mac::parse_delimiter, span::FromSpans, token::Token

printing default = quote

Affects generics::ImplGenerics, generics::TypeGenerics, generics::Turbofish, item::printing, syn-pub-items::spanned, syn-pub-items::print

visit

Affects gen_helper::visit, syn-pub-items::gen.visit

visit-mut

Affects gen_helper::visit_mut, syn-pub-items::gen.visit_mut

fold

Affects gen_helper::fold, syn-pub-items::gen.fold

clone-impls default
extra-traits

Affects syn-pub-items::tt

proc-macro default

Enables proc-macro of proc-macro2 ^0.4.4 and quote ^0.6

quote:

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

Affects parse::Parser.parse, syn-pub-items::parse_macro_input, syn-pub-items::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 printing proc-macro

Enables quote ^0.6