Registry / utility / fluid-let

fluid-let

JSON →
library1.0.0rscratesunverified

Provides dynamically scoped variables in Rust, similar to Common Lisp's fluid-let.

# Cargo.toml [dependencies] fluid-let = "1.0.0"
INSTALL
IMPORT
SIG · FLUID-LET
F
fluid-let
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fluid_let
✓ use fluid_let::fluid_let;

Defines and uses a dynamically scoped variable.

use fluid_let::fluid_let; fluid_let! { static X: i32 = 0; } fn main() { X.set(42); println!("{}", X.get()); }
Debug
Known issues
gotchaThread-local storage: fluid-let uses thread-local storage; values are not shared across threads.
fix
Use std::sync primitives if cross-thread sharing is needed.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fluid-let — cargo add fluid-let · libregistry