Expand description
Crate dioxus-shareables
This crate provides abstractions for global resource sharing in
dioxus similar to fermi, but with a slightly different data
model, and some extensions for shared structures.
The primary interfaces for the crate are Shared, shareable_struct and List
dioxus is still under development; if you’re using the latest nightly version of dioxus
then your Cargo.toml should look something like this:
...
[dependencies]
...
dioxus-shareables = { version = "0.3.0", features = ["dixous-git"] }
...
[replace]
"dioxus-core:0.3.0" = { git = 'https://github.com/dioxuslabs/dioxus' }
"dioxus-hooks:0.3.0" = { git = 'https://github.com/dioxuslabs/dioxus' }
Re-exports§
Modules§
Macros§
- shareable
- Declare a global variable for use as
Sharedhook. - shareable_
struct - Create a
structdefinition for a global. - struct_
actions - Get actions on a struct.
Structs§
- RW
- Marker for an access to shared data which is used for reading.
- W
- Marker for an access to shared data which is used for writing but not reading.