feat: scaffold projet supervision-rs
This commit is contained in:
36
Cargo.toml
Normal file
36
Cargo.toml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
[package]
|
||||||
|
name = "supervision"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "supervision"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
axum = { version = "0.7", features = ["macros", "form"] }
|
||||||
|
tokio = { version = "1", features = ["full"] }
|
||||||
|
tera = "1"
|
||||||
|
sysinfo = "0.32"
|
||||||
|
lettre = { version = "0.11", features = ["tokio1-native-tls", "builder"] }
|
||||||
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
serde_json = "1"
|
||||||
|
tower-sessions = { version = "0.12", features = ["memory-store"] }
|
||||||
|
tower = "0.4"
|
||||||
|
tower_governor = "0.4"
|
||||||
|
tower-http = { version = "0.5", features = ["fs"] }
|
||||||
|
tracing = "0.1"
|
||||||
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
bcrypt = "0.15"
|
||||||
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
|
rand = "0.8"
|
||||||
|
async-trait = "0.1"
|
||||||
|
http = "1"
|
||||||
|
regex = "1"
|
||||||
|
glob = "0.3"
|
||||||
|
|
||||||
|
[target.'cfg(windows)'.dependencies]
|
||||||
|
windows-service = "0.7"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
tempfile = "3"
|
||||||
1
src/alerter.rs
Normal file
1
src/alerter.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Alerter module — Task 3
|
||||||
1
src/config.rs
Normal file
1
src/config.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Config module — Task 2
|
||||||
9
src/main.rs
Normal file
9
src/main.rs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
mod config;
|
||||||
|
mod monitor;
|
||||||
|
mod alerter;
|
||||||
|
mod user_monitor;
|
||||||
|
mod routes;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
println!("Supervision");
|
||||||
|
}
|
||||||
1
src/monitor.rs
Normal file
1
src/monitor.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Monitor module — Task 4
|
||||||
1
src/routes/alerts.rs
Normal file
1
src/routes/alerts.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Alerts routes — Task 10
|
||||||
1
src/routes/auth.rs
Normal file
1
src/routes/auth.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Auth routes — Task 7
|
||||||
1
src/routes/dashboard.rs
Normal file
1
src/routes/dashboard.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Dashboard routes — Task 8
|
||||||
5
src/routes/mod.rs
Normal file
5
src/routes/mod.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
pub mod auth;
|
||||||
|
pub mod dashboard;
|
||||||
|
pub mod settings;
|
||||||
|
pub mod alerts;
|
||||||
|
pub mod users;
|
||||||
1
src/routes/settings.rs
Normal file
1
src/routes/settings.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Settings routes — Task 9
|
||||||
1
src/routes/users.rs
Normal file
1
src/routes/users.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Users routes — Task 11
|
||||||
1
src/user_monitor.rs
Normal file
1
src/user_monitor.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// UserMonitor module — Task 5
|
||||||
Reference in New Issue
Block a user