Email me

Crate features / spin

Feature flags · spin 0.12.3 · from crates.io 2026-10-24

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

Short answerspin 0.12.3 has 15 features. By default it turns on lock_api, mutex, spin_mutex, rwlock, once, lazylock, barrier; add default-features = false to start from nothing. It needs Rust 1.71 or newer.

Pick features

0.12.3latest version
15features
2optional dependencies
1.71MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
barrieryesmutex
fair_mutexmutex
lazylazylock
lazylockyesonce
lock_apiyesdep:lock_api_crate
mutexyesnothing else (a switch the code checks)
onceyesnothing else (a switch the code checks)
portable-atomicdep:portable-atomic
portable_atomicportable-atomic
rustc-dep-of-stdcore
rwlockyesnothing else (a switch the code checks)
spin_mutexyesmutex
stdnothing else (a switch the code checks)
ticket_mutexmutex
use_ticket_mutexmutex, ticket_mutex

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 spin declares (rust-version), and the release that changed it:

  • 0.9.9 (2026-07-13): Rust 1.38
  • 0.10.1 (2026-07-13): Rust 1.60
  • 0.11.1 (2026-07-13): Rust 1.71
  • 0.7.2 (2026-07-13): no rust-version declared
  • 0.12.3 (2026-08-17): Rust 1.71

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

More on spin

Real downloads, dependents and alternatives: spin crate data (1.9M real downloads a day, 822 dependents).

Security record: spin advisories.

docs.rs feature list · crates.io · license MIT · edition 2021

Up next

Before you depend on itspin 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