SergioBenitez / state

A Rust library for safe and effortless global and thread-local state management.
Other
209 stars 13 forks source link

no `LocalStorage` in the root #10

Closed brandonros closed 3 years ago

brandonros commented 3 years ago
error[E0432]: unresolved import `state::LocalStorage`
 --> src/lib.rs:1:5
  |
1 | use state::LocalStorage;
  |     ^^^^^^^^^^^^^^^^^^^ no `LocalStorage` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.

If I do use state::Storage;, it imports fine... 0.4.2 in Cargo.toml... what could it be?

brandonros commented 3 years ago

Had to do state = { version = "0.4", features = ["tls"] }