anki/rslib
Damien Elmes 77c9db5bba plural rules and decimal separator should use bundle's language
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
2020-12-14 14:23:49 +10:00
..
.cargo initial Bazel conversion 2020-11-01 14:26:58 +10:00
build fix compilation of rslib outside Bazel 2020-11-24 18:51:19 +10:00
cargo bump rust deps 2020-12-09 15:34:43 +10:00
src plural rules and decimal separator should use bundle's language 2020-12-14 14:23:49 +10:00
templates migrate card stats to backend 2020-06-15 17:22:16 +10:00
tests/support initial Bazel conversion 2020-11-01 14:26:58 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
backend.proto move backend.proto into rslib/ 2020-11-02 16:28:31 +10:00
BUILD.bazel update rules_rust for separate compile_data arg 2020-12-01 16:48:45 +10:00
Cargo.toml switch to workspace for Rust code 2020-11-24 18:41:03 +10:00
README.md minor doc updates 2020-12-11 22:37:12 +10:00
rustfmt.bzl initial Bazel conversion 2020-11-01 14:26:58 +10:00

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.