- Latest stable Rust toolchain.
Check the rustup project or install
rust
with your distribution's package manager (should include cargo as well) vscode
orvscodium
withrust-analyzer
extensionROLL_BOT_TOKEN
environment variable set. Get yours from the BotFatherROLL_BOT_USE_TEST_DB
just set this environment variable to any value (e.g.true
) to place your database under/test_data
and not span project root
- No crashes!
The bot is supposed to work in a daemon-like way, so no panics should occur and all errors should be intercepted and properly handled.
Backtraces should not be visible to a user, but properly logged. - Nice UI and UX.
Before implementing a feature, please spend some time thinking on how an end user will use it.
Try some designing and experimenting first before settings the things up into code. - Clear, simple and idiomatic code is more important then performance.
Rust offers multiple ways to achieve the same goal, but only a few of them will look and feel nice.
Since the main goal of this project is learning, please try different approaches.
Usually focusing on data instead of a process is a key to get things rolling in Rust - And the most important: A poorly working thing now is better then the perfect thing never.
Try not to overthink it :)