feat: add event layer

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-04-29 21:48:01 +02:00
parent 7de4872816
commit cce97f62f8
7 changed files with 229 additions and 2 deletions

21
Cargo.lock generated
View File

@@ -214,6 +214,17 @@ dependencies = [
"regex-automata",
]
[[package]]
name = "bus"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b7118d0221d84fada881b657c2ddb7cd55108db79c8764c9ee212c0c259b783"
dependencies = [
"crossbeam-channel",
"num_cpus",
"parking_lot_core",
]
[[package]]
name = "byteorder"
version = "1.5.0"
@@ -328,6 +339,15 @@ version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"
[[package]]
name = "crossbeam-channel"
version = "0.5.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-queue"
version = "0.3.11"
@@ -758,6 +778,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"axum",
"bus",
"clap",
"dotenv",
"serde",