Skip to content

Commit

Permalink
feat: rm incrementer
Browse files Browse the repository at this point in the history
  • Loading branch information
ts0yu committed Feb 16, 2024
1 parent 7671f68 commit 31b4f2d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 94 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tracing = "0.1.40"
tracing-subscriber = "0.3.18"
arbiter-core = { version = "0.10.1" }
arbiter-macros = { version = "0.1.1" }
arbiter-engine = { version = "0.2.0" }
arbiter-engine = { version = "0.3.0" }
tokio = { version = "1.36.0", features = ["full"] }
ethers = { version = "2.0.10" }
serde = { version = "1.0.189", features = ["derive"] }
Expand Down
55 changes: 0 additions & 55 deletions src/behaviors/incrementer.rs

This file was deleted.

12 changes: 0 additions & 12 deletions src/behaviors/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
use arbiter_engine::machine::{CreateStateMachine, Engine, StateMachine};
use arbiter_macros::Behaviors;
use serde::{Deserialize, Serialize};

pub mod incrementer;

use incrementer::Incrementer;

#[derive(Debug, Serialize, Deserialize, Behaviors)]
pub enum Behaviors {
Incrementer(Incrementer),
}
27 changes: 1 addition & 26 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
pub mod behaviors;
pub mod bindings;

use behaviors::Behaviors;

/// To run this example, you can do the following from the `arbiter/` directory:
/// ```sh
/// cargo run --example project simulate examples/project/configs/example.toml
/// ```
/// If you would like to see more detailed logs, you can run the following:
/// ```sh
/// cargo run --example project simulate examples/project/configs/example.toml -vvv
/// ```
/// to get `debug` level logs.
///
/// By running
/// ```sh
/// cargo run --example project
/// ```
/// you will get the `--help` message for the project.
#[arbiter_macros::main(
name = "ExampleArbiterProject",
about = "Our example to get you started.",
behaviors = Behaviors
)]
pub async fn main() {}
fn main() {}

0 comments on commit 31b4f2d

Please sign in to comment.