Sync backend for VTA
Requirements:
Release build:
cargo build --release
Final files are inside target/release
Development:
cargo run
Production:
Use the release build or run cargo run --release
Copy config/default.toml
to config/config.toml
and edit it.
The following environment variables have to be set up for vscode:
- mariadb database
Example in windows terminal:
$env:DATABASE_URL="mysql://root@localhost/vta_sync"
& "C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code\Visual Studio Code.lnk"
Set the rust log via $Env:RUST_LOG='vta_sync_backend=trace'
or RUST_LOG=vta_sync_backend=trace
and then run the specific test.
trace-logging in tests can be enabled using #[test_log::test(actix_rt::test)]
instead of #[actix_rt::test]
or tokio::test
.