Cargo Features
[dependencies]
syn-expand-use = { version = "0.2.0", default-features = false, features = ["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-expand-use
is added without
somewhere in the dependency tree.default-features = false - derive default
-
Enables derive of syn ^0.13.1
- parsing default
-
Enables parsing of syn ^0.13.1
- printing default = quote
-
Enables printing of syn ^0.13.1
- visit
-
Enables visit of syn ^0.13.1
- visit-mut
-
Enables visit-mut of syn ^0.13.1
- fold
-
Enables fold of syn ^0.13.1
- clone-impls default
-
Enables clone-impls of syn ^0.13.1
- extra-traits
-
Enables extra-traits of syn ^0.13.1
- proc-macro default
-
Enables proc-macro of quote ^0.5.1 and syn ^0.13.1
quote:
Disabling the proc-macro feature removes the dynamic library dependency on libproc_macro in the rustc compiler.
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.5.1