Cargo Features
[dependencies]
flo_scene_guest = { version = "0.2.0", default-features = false, features = ["use-std", "one_thread", "json", "use-random"] }
- default = one_thread
-
By default assume we're creating a wasm module which will run on a single thread
- use-std
-
Use std after all, protect shared data with shared mutexes
Enables std of futures, use-std of postcard
Affects
scene_guest_message::SceneGuestMessage.to_guest_message
… - one_thread default = spin
-
If std is not applied, assume that we're running in single-threaded mode
- json = serde_json
-
Adds support for JSON encoding
Affects
scene_guest_message::SceneGuestMessage.to_json
,scene_guest_message::SceneGuestMessage.from_json
… - use-random
-
Allow internal random number generation (for generating UUIDs)
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- spin one_thread
-
Enables spin ^0.9
- serde_json json?