77c9db5bba
Instead of providing the list of languages in preferred order, when creating a bundle we need to specify the bundle language as the first language, so that the correct plural rules are used. Fluent's docs are misleading here; I will submit a PR to fix them. The old behaviour caused: https://forums.ankiweb.net/t/bug-in-review-intervals-for-some-languages-in-number-of-cards/5744 |
||
---|---|---|
.. | ||
.cargo | ||
build | ||
cargo | ||
src | ||
templates | ||
tests/support | ||
.gitignore | ||
backend.proto | ||
BUILD.bazel | ||
Cargo.toml | ||
README.md | ||
rustfmt.bzl |
Anki's Rust code.
backend.proto stores the interfaces used to communicate backend messages between Rust, Python and TypeScript.
Rust editor support is still fairly new, but currently Visual Studio Code + Rust Analyzer seems to be the least bad option. For the latter, you'll want to enable the options to expand proc macros, and run cargo check on startup.
After running 'code .' from this folder, it may take Rust Analyzer a while to become ready, and you may need to save a file to trigger it to run.
You may also want to enable the worker mentioned in ../docs/development.md when compiling from a terminal.