Email me

Crate features / syn

Feature flags · syn 3.0.9 · from crates.io 2026-10-24

syn features: what each one does, and the line to copy

Short answersyn 3.0.9 has 11 features. By default it turns on derive, parsing, printing, clone-impls, proc-macro; add default-features = false to start from nothing. It needs Rust 1.71 or newer.

Pick features

3.0.9latest version
11features
1optional dependencies
1.71MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
clone-implsyesnothing else (a switch the code checks)
deriveyesnothing else (a switch the code checks)
extra-traitsnothing else (a switch the code checks)
foldnothing else (a switch the code checks)
fullnothing else (a switch the code checks)
parsingyesnothing else (a switch the code checks)
printingyesdep:quote
proc-macroyesproc-macro2/proc-macro, quote?/proc-macro
testsyn-test-suite/all-features
visitnothing else (a switch the code checks)
visit-mutnothing else (a switch the code checks)

dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).

MSRV history

The minimum Rust version syn declares (rust-version), and the release that changed it:

  • 1.0.78 (2021-10-03): Rust 1.31
  • 2.0.0 (2023-03-17): Rust 1.56
  • 2.0.54 (2024-03-24): Rust 1.60
  • 2.0.55 (2024-03-24): Rust 1.56
  • 2.0.57 (2024-03-30): Rust 1.60
  • 2.0.68 (2024-06-23): Rust 1.61
  • 2.0.107 (2025-10-18): Rust 1.68
  • 2.0.115 (2026-02-12): Rust 1.71

Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p syn --precise <version>, or use resolver 3, which picks compatible versions for you.

More on syn

Real downloads, dependents and alternatives: syn crate data (8.4M real downloads a day, 18,848 dependents).

docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021

Up next

Before you depend on itsyn crate dataReal downloads, dependents, alternatives.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ