refactor: replace Python ML service runtime with Rust

This commit is contained in:
Asep Haryana Saputra
2026-05-23 09:50:39 +00:00
parent b4975819eb
commit 3d3f1d14fa
7 changed files with 15 additions and 176 deletions
+14 -6
View File
@@ -1,10 +1,18 @@
tasks:
dev:
command: .venv/bin/uvicorn main:app --host 0.0.0.0 --port 8001
command: cargo run
typecheck:
command: python -m py_compile main.py model.py schemas.py
command: cargo check
inputs:
- main.py
- model.py
- schemas.py
- requirements.txt
- Cargo.toml
- src/**/*.rs
test:
command: cargo test
inputs:
- Cargo.toml
- src/**/*.rs
build:
command: cargo build --release
inputs:
- Cargo.toml
- src/**/*.rs