This repository contains an experimental implementation of the distrochooser.de-backend.
It is an experiment. It's slow and I do not know Rust at all.
- uses
unsafe
(is a flaw?) - no central database connection.. always calling
connect_database
- is kinda slow
- throws a lot warnings
- code is not clean
- no error handling, threads crash hard causing
HTTP 500
- dirty workarounds
- /distributions/:lang/
- /distribution/:id/:lang/
- /questions/:lang/
- /i18n/:lang/
- /newvisitor/
- /get/:lang/ (combines /distributions /questions /i18n and /newvisitor)
- /addresult/
- /getstats/
- /lastratings/
- /addrating/@lang
cargo run /path/to/db.conf
rusty_distrochooser /path/to/db.conf
db.conf: mysql://$username:$password@$host