feat: scaffold Cargo workspace with daemon and API crates
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3b9b8668c2
commit
116e055e6a
3
LORAWEB_NEU/Cargo.toml
Normal file
3
LORAWEB_NEU/Cargo.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[workspace]
|
||||
members = ["backend/daemon", "backend/api"]
|
||||
resolver = "2"
|
||||
22
LORAWEB_NEU/backend/api/Cargo.toml
Normal file
22
LORAWEB_NEU/backend/api/Cargo.toml
Normal file
@ -0,0 +1,22 @@
|
||||
[package]
|
||||
name = "loraweb-api"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
axum = "0.8"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
jsonwebtoken = "9"
|
||||
argon2 = "0.5"
|
||||
totp-rs = { version = "5", features = ["gen_secret"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
tower-http = { version = "0.6", features = ["cors"] }
|
||||
anyhow = "1"
|
||||
rand = "0.8"
|
||||
7
LORAWEB_NEU/backend/api/src/main.rs
Normal file
7
LORAWEB_NEU/backend/api/src/main.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.init();
|
||||
tracing::info!("loraweb-api starting...");
|
||||
}
|
||||
18
LORAWEB_NEU/backend/daemon/Cargo.toml
Normal file
18
LORAWEB_NEU/backend/daemon/Cargo.toml
Normal file
@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "loraweb-daemon"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
axum = "0.8"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
config = "0.14"
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
anyhow = "1"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
7
LORAWEB_NEU/backend/daemon/src/main.rs
Normal file
7
LORAWEB_NEU/backend/daemon/src/main.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.init();
|
||||
tracing::info!("loraweb-daemon starting...");
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user