diff --git a/rust-engine/Cargo.lock b/rust-engine/Cargo.lock index 82db808..b0cbf75 100644 --- a/rust-engine/Cargo.lock +++ b/rust-engine/Cargo.lock @@ -143,12 +143,6 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" -[[package]] -name = "cors" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d2dacfa7c8e6a88bacdbd500047e86ac32f67a3706d5b55a1d7b36c80efbc2f" - [[package]] name = "cpufeatures" version = "0.2.17" @@ -232,12 +226,6 @@ dependencies = [ "syn", ] -[[package]] -name = "dotenv" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" - [[package]] name = "dotenvy" version = "0.15.7" @@ -1147,8 +1135,7 @@ version = "0.1.0" dependencies = [ "anyhow", "chrono", - "cors", - "dotenv", + "dotenvy", "serde", "serde_json", "sqlx", diff --git a/rust-engine/Cargo.toml b/rust-engine/Cargo.toml index 354f35e..35338b9 100644 --- a/rust-engine/Cargo.toml +++ b/rust-engine/Cargo.toml @@ -1,10 +1,13 @@ +# rust-engine/Cargo.toml + [package] name = "rust-engine" version = "0.1.0" edition = "2021" +# --- CORRECTED DEPENDENCIES --- [dependencies] -tokio = { version = "1.0", features = ["full"] } +tokio = { version = "1.38.0", features = ["full"] } warp = { version = "0.4.2", features = ["server"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" @@ -12,6 +15,5 @@ sqlx = { version = "0.8.6", features = ["runtime-tokio-rustls", "mysql", "chrono chrono = { version = "0.4", features = ["serde"] } tracing = "0.1" tracing-subscriber = "0.3" -dotenv = "0.15" -cors = "0.1.0" +dotenvy = "0.15.7" # Using 'dotenvy' as 'dotenv' is unmaintained anyhow = "1.0" \ No newline at end of file diff --git a/rust-engine/src/main.rs b/rust-engine/src/main.rs index bd70a46..a72db16 100644 --- a/rust-engine/src/main.rs +++ b/rust-engine/src/main.rs @@ -23,7 +23,7 @@ async fn main() -> Result<(), Box> { tracing_subscriber::fmt::init(); // Load environment variables - dotenv::dotenv().ok(); + dotenvy::dotenv().ok(); let database_url = env::var("DATABASE_URL") .unwrap_or_else(|_| "mysql://astraadmin:password@mysql:3306/astra".to_string());