Merge pull request #27 from janos-r/main

Stable Rust docs
This commit is contained in:
Marc-Stefan Cassola 2023-08-31 17:18:23 +01:00 committed by GitHub
commit 09b8b22ff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,10 +32,7 @@ Please refer to the [functions list](functions.md) for more details.
## Stable Rust ## Stable Rust
By default — like `leptos` — the library assumes you're using the Just like `leptos` this library can be safely run on stable rust. Just don't
nightly Rust toolchain. This allows for more ergonomic use of signals. forget to consult the Getting Started section of the `leptos` docs to understand
If you want to use stable Rust, you have to enable the `stable` crate feature. what that means. As of writing, it concerns mainly the getter and setter syntax
on signals, and the use of `cx` in closures.
```toml
leptos-use = { version = "...", features = ["stable"] }
```