Anki/rslib
RumovZ b0890b0e47 Manually namespace enum variants in SearchTerm
In protobuf "...enum values use C++ scoping rules, meaning that
enum values are siblings of their type, not children of it.
Therefore, [an enum variant] must be unique within [a message],
not just within [the enum.]"
So we must prefix enum variants with their enum's name, but can
also call them directly from the message namespace.
The protobuf crate is smart, though, and strips the prefixes.

(Simultaneously change some SearchTerm variant names.)
2021-01-30 17:56:29 +01:00
..
.cargo initial Bazel conversion 2020-11-01 14:26:58 +10:00
build don't pass BUILDINFO into build script 2020-12-21 16:04:29 +10:00
cargo update Rust deps; add async_trait 2021-01-11 19:19:45 +10:00
src Manually namespace enum variants in SearchTerm 2021-01-30 17:56:29 +01: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
.clang-format add .clang-format so VS Code preserves formatting style on .proto save 2021-01-12 18:47:08 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
backend.proto Manually namespace enum variants in SearchTerm 2021-01-30 17:56:29 +01:00
BUILD.bazel allow normal sync tests to run offline 2021-01-12 18:47:08 +10:00
Cargo.toml update Rust deps; add async_trait 2021-01-11 19:19:45 +10:00
clang_format.bzl add clang-format for backend.proto formatting 2021-01-09 17:08:50 +10:00
proto_format.py fix protobuf formatting adding carriage returns on Windows 2021-01-10 08:48:20 +10:00
README.md add some code editing/completion docs 2020-12-16 14:16:08 +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.