Patched rust setup to be capable of building

This commit is contained in:
Christbru 2025-10-18 15:41:39 -05:00
commit 49b676ad31
4 changed files with 2394 additions and 7 deletions

3
.gitignore vendored
View file

@ -21,6 +21,9 @@ dist
turbo-build.log
turbo-host.log
# rust
rust-engine/target
# debug
npm-debug.log*
yarn-debug.log*

2390
rust-engine/Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -5,13 +5,13 @@ edition = "2021"
[dependencies]
tokio = { version = "1.0", features = ["full"] }
warp = "0.3"
warp = { version = "0.4.2", features = ["server"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "mysql", "chrono"] }
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.6"
cors = "0.1.0"
anyhow = "1.0"

View file

@ -20,7 +20,7 @@ struct ApiResponse<T> {
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize tracing
tracing_subscriber::init();
tracing_subscriber::fmt::init();
// Load environment variables
dotenv::dotenv().ok();