Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
agents:
queue: "default"
docker: "*"
command: "cargo test"
command: "cargo test --workspace"
timeout_in_minutes: 15
plugins:
- docker-compose#v3.0.0:
Expand Down
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ edition = "2018"

[dependencies]
async-trait = "0.1"
derive_more = "0.99"
prost = "0.6"
prost-types = "0.6"
thiserror = "1.0"
tonic = "0.3"

[dependencies.rustfsm]
path = "fsm"

[build-dependencies]
tonic-build = "0.3"
tonic-build = "0.3"

[workspace]
members = [".", "fsm"]
15 changes: 15 additions & 0 deletions fsm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "rustfsm"
version = "0.1.0"
authors = ["Spencer Judge <sjudge@hey.com>"]
edition = "2018"

[[test]]
name = "card_reader"
path = "tests/card_reader.rs"

[dependencies]
thiserror = "1.0"
derive_more = "0.99"
state_machine_procmacro = { path = "state_machine_procmacro" }
state_machine_trait = { path = "state_machine_trait" }
3 changes: 3 additions & 0 deletions fsm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
A procmacro and trait for implementing state machines in Rust

We should move this to it's own repo once we're done iterating.
2 changes: 2 additions & 0 deletions fsm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub use state_machine_procmacro::fsm;
pub use state_machine_trait::{StateMachine, TransitionResult};
23 changes: 23 additions & 0 deletions fsm/state_machine_procmacro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "state_machine_procmacro"
version = "0.1.0"
authors = ["Spencer Judge <sjudge@hey.com>"]
edition = "2018"

[lib]
proc-macro = true

[[test]]
name = "tests"
path = "tests/progress.rs"

[dependencies]
derive_more = "0.99"
proc-macro2 = "1.0"
syn = { version = "1.0", features = ["default", "extra-traits"] }
quote = "1.0"
state_machine_trait = { path = "../state_machine_trait" }

[dev-dependencies]
trybuild = { version = "1.0", features = ["diff"] }

Loading