diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..58a31b0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "ticketsystem" +version = "0.1.0" +edition = "2024" + +[workspace] +members = ["backend", "frontend"] + +[workspace.dependencies] +serde = { version = "1.0.228", features = ["derive"] } +serde_json = "1.0.149" +chrono = { version = "0.4.44", features = ["serde"] } diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 66b9de7..5e8dd6b 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -6,12 +6,12 @@ edition = "2024" [dependencies] axum = "0.8.9" axum-extra = { version = "0.12.6", features = ["cookie", "typed-header", "form"] } -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.149" +serde = { workspace = true } +serde_json = { workspace = true } sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio", "tls-native-tls", "chrono"] } tokio = { version = "1.52.1", features = ["rt-multi-thread", "macros"] } dotenv = "0.15.0" -chrono = { version = "0.4.44", features = ["serde"] } +chrono = { workspace = true } jsonwebtoken = { version = "10.3.0", features = ["rust_crypto"] } argon2 = "0.5.3" time = "0.3.47" diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index 647fd84..179f38e 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -12,7 +12,7 @@ path = "src/main.rs" [dependencies] yew = { version = "0.23", features = ["csr"] } -serde = { version = "1.0.228", features = ["derive"] } +serde = { workspace = true } wasm-bindgen = "0.2.118" wasm-bindgen-futures = "0.4.68" web-sys = { version = "0.3.95", features = [ @@ -22,7 +22,7 @@ web-sys = { version = "0.3.95", features = [ gloo-net = "0.7.0" gloo-storage = "0.4.0" yew-router = "0.20.0" -serde_json = "1.0.149" +serde_json = { workspace = true } gloo = "0.12.0" -chrono = { version = "0.4.44", features = ["serde"] } +chrono = { workspace = true } chrono-tz = "0.10.4"