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
64 changes: 44 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ async-stream = "0.3.6"
futures-channel = "0.3.31"
futures-core = "0.3.31"
futures-util = "0.3.31"
ractor = "0.14"
ractor-supervisor = "0.1.9"
hypr-supervisor = { path = "crates/supervisor", package = "supervisor" }
ractor = "0.15.10"
rayon = "1.11"
reqwest = "0.13"
reqwest-middleware = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ tracing = { workspace = true }

hypr-host = { workspace = true }

hypr-supervisor = { workspace = true }
ractor = { workspace = true }
ractor-supervisor = { workspace = true }

pico-args = "0.5"
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
Expand Down
4 changes: 1 addition & 3 deletions apps/desktop/src-tauri/src/supervisor.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
use std::sync::Arc;
use std::sync::atomic::{AtomicBool, Ordering};

use hypr_supervisor::dynamic::{DynamicSupervisor, DynamicSupervisorMsg, DynamicSupervisorOptions};
use ractor::ActorRef;
use ractor::concurrency::Duration;
use ractor_supervisor::dynamic::{
DynamicSupervisor, DynamicSupervisorMsg, DynamicSupervisorOptions,
};

pub type SupervisorRef = ActorRef<DynamicSupervisorMsg>;
pub type SupervisorHandle = tokio::task::JoinHandle<()>;
Expand Down
10 changes: 10 additions & 0 deletions crates/supervisor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "supervisor"
version = "0.1.0"
edition = "2024"

[dependencies]
ractor = { workspace = true, features = ["async-trait"] }
thiserror = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
Loading
Loading