diff --git a/Cargo.lock b/Cargo.lock index 542c01c..ae4549e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1049,15 +1049,6 @@ dependencies = [ "system-deps", ] -[[package]] -name = "generational-arena" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877e94aff08e743b651baaea359664321055749b398adff8740a7399af7796e7" -dependencies = [ - "cfg-if", -] - [[package]] name = "generic-array" version = "0.14.7" @@ -1960,7 +1951,6 @@ dependencies = [ "capnpc", "clap", "futures", - "generational-arena", "http", "oo7", "rand", diff --git a/ntfy-daemon/Cargo.toml b/ntfy-daemon/Cargo.toml index c4daa16..b48e3b5 100644 --- a/ntfy-daemon/Cargo.toml +++ b/ntfy-daemon/Cargo.toml @@ -22,7 +22,6 @@ rusqlite = "0.29.0" rand = "0.8.5" reqwest = { version = "0.12.9", features = ["stream", "rustls-tls-native-roots"]} url = { version = "2.4.0", features = ["serde"] } -generational-arena = "0.2.9" tracing = "0.1.37" thiserror = "1.0.49" regex = "1.9.6" diff --git a/ntfy-daemon/src/ntfy.capnp b/ntfy-daemon/src/ntfy.capnp deleted file mode 100644 index 6f3d202..0000000 --- a/ntfy-daemon/src/ntfy.capnp +++ /dev/null @@ -1,49 +0,0 @@ -@0x9663f4dd604afa35; - -enum Status { - down @0; - degraded @1; - up @2; -} - -interface WatchHandle {} - -interface OutputChannel { - sendMessage @0 (message: Text); - sendStatus @1 (status: Status); - done @2 (); -} - -struct SubscriptionInfo { - server @0 :Text; - topic @1 :Text; - displayName @2 :Text; - muted @3 :Bool; - readUntil @4 :UInt64; -} - -interface Subscription { - watch @0 (watcher: OutputChannel, since: UInt64) -> (handle: WatchHandle); - publish @1 (message: Text); - - getInfo @2 () -> SubscriptionInfo; - updateInfo @3 (value: SubscriptionInfo); - updateReadUntil @4 (value: UInt64); - - clearNotifications @5 (); - refresh @6 (); -} - -struct Account { - server @0 :Text; - username @1 :Text; -} - -interface SystemNotifier { - subscribe @0 (server: Text, topic: Text) -> (subscription: Subscription); - unsubscribe @1 (server: Text, topic: Text); - listSubscriptions @2 () -> (list: List(Subscription)); - addAccount @3 (account: Account, password: Text); - removeAccount @4 (account: Account); - listAccounts @5 () -> (list: List(Account)); -}