tvl-depot/users/tazjin/finito
Vincent Ambo 37fdd5ae8b chore(tazjin/finito): Add build configuration
Adds a Naersk-based build to check that this compiles, with a Lockfile
based on the ~2018 crate versions.

Change-Id: I0460a476d3b983fcf71e35e6b480f4a526118b58
Reviewed-on: https://cl.tvl.fyi/c/depot/+/803
Reviewed-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
2020-06-30 04:14:27 +00:00
..
finito-core feat(tazjin/finito): Check in my old Rust state-machine library 2020-06-30 04:35:58 +01:00
finito-door feat(tazjin/finito): Check in my old Rust state-machine library 2020-06-30 04:35:58 +01:00
finito-postgres chore(tazjin/finito): Add build configuration 2020-06-30 04:14:27 +00:00
.gitignore chore(tazjin/finito): Add build configuration 2020-06-30 04:14:27 +00:00
Cargo.lock chore(tazjin/finito): Add build configuration 2020-06-30 04:14:27 +00:00
Cargo.toml feat(tazjin/finito): Check in my old Rust state-machine library 2020-06-30 04:35:58 +01:00
default.nix chore(tazjin/finito): Add build configuration 2020-06-30 04:14:27 +00:00
README.md feat(tazjin/finito): Check in my old Rust state-machine library 2020-06-30 04:35:58 +01:00

Finito

This is a Rust port of the Haskell state-machine library Finito. It is slightly less featureful because it loses the ability to ensure that side-effects are contained and because of a slight reduction in expressivity, which makes it a bit more restrictive.

However, it still implements the FSM model well enough.

Components

Finito is split up into multiple independent components (note: not all of these exist yet), separating functionality related to FSM persistence from other things.

  • finito: Core abstraction implemented by Finito
  • finito-door: Example implementation of a simple, lockable door
  • finito-postgres: Persistent state-machines using Postgres

Note: The finito core library does not contain any tests. Its coverage is instead provided by the finito-door library, which actually implements an example FSM.

These are split out because the documentation for finito-door is interesting regardless and because other Finito packages also need an example implementation.