Cargo Features

RuState has no features set by default.

[dependencies]
rustate = { version = "0.2.6", features = ["wasm", "mbt", "property-testing", "integration", "xstate-compat", "codegen", "proto", "async-trait", "tokio"] }
wasm = console_error_panic_hook, js-sys, wasm-bindgen, web-sys

Web Assembly support

Enables uuid

mbt = property-testing

Model-Based Testing

property-testing mbt? = proptest

Property-Based Testing

integration

Integration feature for combined state machine patterns

Affects rustate::integration

xstate-compat

XState compatible features

Affects test::xstate

codegen proto? = proc-macro2, quote, syn

Code generation features

Affects codegen::CodegenExt.parse_from_rust_file, codegen::machine_builder_to_json, codegen::machine_builder_to_proto

proto = codegen, prost, prost-build

Protocol buffers support

Affects codegen::CodegenExt.export_to_proto, codegen::machine_builder_to_proto

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.

wasm-bindgen wasm?
js-sys wasm?
web-sys wasm?
console_error_panic_hook wasm?
async-trait implicit feature

Enables async-trait

async-trait:

Type erasure for async trait methods

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications

proptest property-testing?
syn codegen?
quote codegen?
proc-macro2 codegen?
prost proto?

Enables prost ^0.12

prost-build proto?

Enables prost-build ^0.12