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

pub use shared::Shared;
pub use list::List;
pub use list::ListEntry;

Modules

mod list - lists of shared values.
Module shared - Shared values.

Macros

Declare a global variable for use as Shared hook.
Create a struct definition for a global.
Get actions on a struct.

Structs

Marker for an access to shared data which is used for reading.
Marker for an access to shared data which is used for writing but not reading.

Traits

A type flag for shared pointers.
A type flag for fields in shared structures.