- Feature-gate mongodb in compliance-core (optional, default on) so wasm builds don't pull in tokio/mio via mongodb - Use bson v2 directly for ObjectId types (wasm-compatible) - Restructure dashboard infrastructure/mod.rs: server function modules always compiled (for RPC stubs), server-only modules cfg-gated - Remove reqwest from dashboard web feature (not needed, data flows through server functions) - Add .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
56 lines
1.4 KiB
TOML
56 lines
1.4 KiB
TOML
[package]
|
|
name = "compliance-dashboard"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
default-run = "compliance-dashboard"
|
|
|
|
[[bin]]
|
|
name = "compliance-dashboard"
|
|
path = "../bin/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
web = ["dioxus/web", "dioxus/router", "dioxus/fullstack", "dep:web-sys"]
|
|
server = [
|
|
"dioxus/server",
|
|
"dioxus/router",
|
|
"dioxus/fullstack",
|
|
"compliance-core/mongodb",
|
|
"dep:axum",
|
|
"dep:mongodb",
|
|
"dep:reqwest",
|
|
"dep:tower-http",
|
|
"dep:secrecy",
|
|
"dep:dotenvy",
|
|
"dep:dioxus-cli-config",
|
|
"dep:dioxus-fullstack",
|
|
"dep:tokio",
|
|
]
|
|
|
|
[dependencies]
|
|
compliance-core = { workspace = true, default-features = false }
|
|
dioxus = "=0.7.3"
|
|
dioxus-free-icons = { version = "0.10", features = ["bootstrap"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
chrono = { workspace = true }
|
|
tracing = { workspace = true }
|
|
dioxus-logger = "0.6"
|
|
thiserror = { workspace = true }
|
|
|
|
# Web-only
|
|
reqwest = { workspace = true, optional = true }
|
|
web-sys = { version = "0.3", optional = true }
|
|
|
|
# Server-only
|
|
axum = { version = "0.8", optional = true }
|
|
mongodb = { workspace = true, optional = true }
|
|
tower-http = { version = "0.6", features = ["cors", "trace"], optional = true }
|
|
secrecy = { workspace = true, optional = true }
|
|
dotenvy = { version = "0.15", optional = true }
|
|
tokio = { workspace = true, optional = true }
|
|
dioxus-cli-config = { version = "=0.7.3", optional = true }
|
|
dioxus-fullstack = { version = "=0.7.3", optional = true }
|