diff --git a/Cargo.toml b/Cargo.toml index d928f84..6766c58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,17 @@ [workspace] resolver = "2" -members = ["crates/*"] +members = ["crates/miroir-core", "crates/miroir-proxy", "crates/miroir-ctl"] [workspace.package] version = "0.1.0" -edition = "2024" -license = "MIT OR Apache-2.0" +edition = "2021" +license = "MIT" repository = "https://github.com/jedarden/miroir" -authors = ["Jed Ardren "] +rust-version = "1.87" [workspace.dependencies] serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -twox-hash = "2.0" thiserror = "2.0" tracing = "0.1" -uuid = { version = "1.0", features = ["v4", "serde"] } +pretty_assertions = "1.4" diff --git a/crates/miroir-ctl/Cargo.toml b/crates/miroir-ctl/Cargo.toml index 37d3e7e..8ce977f 100644 --- a/crates/miroir-ctl/Cargo.toml +++ b/crates/miroir-ctl/Cargo.toml @@ -4,7 +4,6 @@ version.workspace = true edition.workspace = true license.workspace = true repository.workspace = true -description = "Management CLI for Miroir" [[bin]] name = "miroir-ctl" @@ -17,6 +16,9 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1.42", features = ["full"] } miroir-core = { path = "../miroir-core" } +dirs = "5.0" +toml = "0.8" [dev-dependencies] +pretty_assertions = "1" tempfile = "3.14" diff --git a/crates/miroir-proxy/Cargo.toml b/crates/miroir-proxy/Cargo.toml index 07ab823..0bbda31 100644 --- a/crates/miroir-proxy/Cargo.toml +++ b/crates/miroir-proxy/Cargo.toml @@ -5,4 +5,22 @@ edition.workspace = true license.workspace = true repository.workspace = true +[[bin]] +name = "miroir-proxy" +path = "src/main.rs" + [dependencies] +axum = "0.7" +tokio = { version = "1", features = ["rt-multi-thread", "signal"] } +reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +config = "0.14" +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } +prometheus = "0.13" +miroir-core = { path = "../miroir-core" } + +[dev-dependencies] +tower = "0.5" +http-body-util = "0.1"