diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..3b01799 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,52 @@ +[package] +name = "actor_system" +version = "0.1.0" +edition = "2024" + +[lib] +name = "actor_osis" # Can be different from package name, or same +path = "src/lib.rs" + +[[bin]] +name = "actor_osis" +path = "cmd/actor_osis.rs" + +[[example]] +name = "engine" +path = "examples/engine.rs" + +[[example]] +name = "actor" +path = "examples/actor.rs" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +redis = { version = "0.25.0", features = ["tokio-comp"] } +rhai = { version = "1.21.0", features = ["std", "sync", "decimal", "internals"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] } +log = "0.4" +env_logger = "0.10" +clap = { version = "4.4", features = ["derive"] } +uuid = { version = "1.6", features = ["v4", "serde"] } # Though task_id is string, uuid might be useful +chrono = { version = "0.4", features = ["serde"] } +toml = "0.8" +thiserror = "1.0" +async-trait = "0.1" +hero_job = { git = "https://git.ourworld.tf/herocode/baobab.git"} +baobab_actor = { git = "https://git.ourworld.tf/herocode/baobab.git"} +heromodels = { git = "https://git.ourworld.tf/herocode/db.git" } +heromodels_core = { git = "https://git.ourworld.tf/herocode/db.git" } +heromodels-derive = { git = "https://git.ourworld.tf/herocode/db.git" } +rhailib_dsl = { git = "https://git.ourworld.tf/herocode/rhailib.git" } + +[features] +default = ["calendar", "finance"] +calendar = [] +finance = [] +flow = [] +legal = [] +projects = [] +biz = [] diff --git a/src/lib.rs b/src/lib.rs index 02ce0a2..db5d1c1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,6 +55,8 @@ use crate::engine::eval_script; use crate::actor_trait::{Worker, WorkerConfig}; use crate::initialize_redis_connection; +use baobab_actor::{actor_trait::Actor, spawn_actor}; + /// Represents a running job with its handle and metadata #[derive(Debug)] struct RunningJob {