Finite state machines in rust; bendns fork to add types.
restructure repo
| -rw-r--r-- | .github/workflows/tests.yml | 2 | ||||
| -rw-r--r-- | Cargo.toml | 27 | ||||
| -rw-r--r-- | rust-fsm-dsl/Cargo.toml (renamed from rust_fsm_dsl/Cargo.toml) | 0 | ||||
| -rw-r--r-- | rust-fsm-dsl/src/lib.rs (renamed from rust_fsm_dsl/src/lib.rs) | 0 | ||||
| -rw-r--r-- | rust-fsm-dsl/src/parser.rs (renamed from rust_fsm_dsl/src/parser.rs) | 0 | ||||
| -rw-r--r-- | rust-fsm/Cargo.toml | 24 | ||||
| -rw-r--r-- | rust-fsm/src/lib.rs (renamed from src/lib.rs) | 0 | ||||
| -rw-r--r-- | rust-fsm/tests/circuit_breaker.rs (renamed from tests/circuit_breaker.rs) | 0 | ||||
| -rw-r--r-- | rust-fsm/tests/circuit_breaker_dsl.rs (renamed from tests/circuit_breaker_dsl.rs) | 0 | ||||
| -rw-r--r-- | rust-fsm/tests/simple.rs (renamed from tests/simple.rs) | 0 |
10 files changed, 26 insertions, 27 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65c1071..a99b304 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --no-default-features --features "dsl" + args: -p rust-fsm --no-default-features --features "dsl" - name: Run tests uses: actions-rs/cargo@v1 @@ -1,27 +1,2 @@ -[package] -name = "rust-fsm" -description = "A framework 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/" -readme = "README.md" -license = "MIT" -categories = ["data-structures", "rust-patterns"] -keywords = ["fsm"] -version = "0.6.0" -authors = ["Yevhenii Babichenko"] -edition = "2018" - -[features] -default = ["std", "dsl"] -std = [] -dsl = ["rust-fsm-dsl"] - -[dependencies] -rust-fsm-dsl = { path = "./rust_fsm_dsl", version = "0.6.0", optional = true } - -[profile.dev] -panic = "abort" - [workspace] -members = [".", "rust_fsm_dsl"] +members = ["rust-fsm", "rust-fsm-dsl"] diff --git a/rust_fsm_dsl/Cargo.toml b/rust-fsm-dsl/Cargo.toml index 4803017..4803017 100644 --- a/rust_fsm_dsl/Cargo.toml +++ b/rust-fsm-dsl/Cargo.toml diff --git a/rust_fsm_dsl/src/lib.rs b/rust-fsm-dsl/src/lib.rs index e037aa6..e037aa6 100644 --- a/rust_fsm_dsl/src/lib.rs +++ b/rust-fsm-dsl/src/lib.rs diff --git a/rust_fsm_dsl/src/parser.rs b/rust-fsm-dsl/src/parser.rs index 696fa84..696fa84 100644 --- a/rust_fsm_dsl/src/parser.rs +++ b/rust-fsm-dsl/src/parser.rs diff --git a/rust-fsm/Cargo.toml b/rust-fsm/Cargo.toml new file mode 100644 index 0000000..82980ba --- /dev/null +++ b/rust-fsm/Cargo.toml @@ -0,0 +1,24 @@ +[package] +name = "rust-fsm" +description = "A framework 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/" +readme = "README.md" +license = "MIT" +categories = ["data-structures", "rust-patterns"] +keywords = ["fsm"] +version = "0.6.0" +authors = ["Yevhenii Babichenko"] +edition = "2018" + +[features] +default = ["std", "dsl"] +std = [] +dsl = ["rust-fsm-dsl"] + +[dependencies] +rust-fsm-dsl = { path = "../rust-fsm-dsl", version = "0.6.0", optional = true } + +[profile.dev] +panic = "abort" diff --git a/src/lib.rs b/rust-fsm/src/lib.rs index 7d37656..7d37656 100644 --- a/src/lib.rs +++ b/rust-fsm/src/lib.rs diff --git a/tests/circuit_breaker.rs b/rust-fsm/tests/circuit_breaker.rs index aa25a1e..aa25a1e 100644 --- a/tests/circuit_breaker.rs +++ b/rust-fsm/tests/circuit_breaker.rs diff --git a/tests/circuit_breaker_dsl.rs b/rust-fsm/tests/circuit_breaker_dsl.rs index 2293786..2293786 100644 --- a/tests/circuit_breaker_dsl.rs +++ b/rust-fsm/tests/circuit_breaker_dsl.rs diff --git a/tests/simple.rs b/rust-fsm/tests/simple.rs index b3fa09c..b3fa09c 100644 --- a/tests/simple.rs +++ b/rust-fsm/tests/simple.rs |