Finite state machines in rust; bendns fork to add types.
document feature flags
Yevhenii Babichenko 2024-05-13
parent f97d785 · commit cc961be
-rw-r--r--README.md14
-rw-r--r--rust-fsm/Cargo.toml2
2 files changed, 14 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2785b4b..8d44c06 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# A framework for building finite state machines in Rust
+# A framework and a DSL for building finite state machines in Rust
[![Documentation][docs-badge]][docs-link]
[![Latest Version][crate-badge]][crate-link]
@@ -30,6 +30,18 @@ of state machines:
* A Moore machine by providing an output function that do not depend on the
provided inputs.
+## Feature flags
+
+### Default
+
+- `std` - implement features that require the `std` environment. See below.
+- `dsl` - re-export `rust-fsm-dsl` from `rust-fsm`. Recommended to leave this on
+ for the best development experience.
+
+### Non-default
+
+- `diagram` - generate Mermaid state diagrams in the doc strings. See below.
+
## Usage in `no_std` environments
This library has the feature named `std` which is enabled by default. You
diff --git a/rust-fsm/Cargo.toml b/rust-fsm/Cargo.toml
index 1a6962e..c2cc933 100644
--- a/rust-fsm/Cargo.toml
+++ b/rust-fsm/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rust-fsm"
-description = "A framework for building finite state machines in Rust"
+description = "A framework and a DSL for building finite state machines in Rust"
repository = "https://github.com/eugene-babichenko/rust-fsm"
homepage = "https://github.com/eugene-babichenko/rust-fsm"
documentation = "https://docs.rs/rust-fsm/"