P0.1: Set up Cargo workspace + toolchain pin

- Update workspace Cargo.toml: explicit members list, edition 2021, MIT license, rust-version 1.87
- Simplify workspace.dependencies to core shared deps
- Update member crates to use explicit dependency versions where workspace inheritance was removed

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
jedarden 2026-04-18 20:52:53 -04:00
parent 409f952f59
commit 601988829d
3 changed files with 26 additions and 7 deletions

View file

@ -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 <jed@ardenone.com>"]
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"

View file

@ -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"

View file

@ -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"