anki/rslib
Damien Elmes 5df684fa6b rework backend codegen to support multiple services; split out sched
Rust requires all methods of impl Trait to be in a single file, which
means we had a giant backend/mod.rs covering all exposed methods. By
using separate service definitions for the separate areas, and updating
the code generation, we can split it into more manageable chunks -
this commit starts with the scheduling code.

In the long run, we'll probably want to split up the protobuf file into
multiple files as well.

Also dropped want_release_gil() from rsbridge, and the associated method
enum. While it allows us to skip the thread save/restore and mutex unlock/
lock, it looks to only be buying about 2.5% extra performance in the
best case (tested with timeit+format_timespan), and the majority of
the backend methods deal with I/O, and thus were already releasing the
GIL.
2021-03-11 14:51:29 +10:00
..
.cargo initial Bazel conversion 2020-11-01 14:26:58 +10:00
build rework backend codegen to support multiple services; split out sched 2021-03-11 14:51:29 +10:00
cargo roll back slog-term due to Windows break (2/2) 2021-03-10 13:28:32 +10:00
src rework backend codegen to support multiple services; split out sched 2021-03-11 14:51:29 +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
.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 rework backend codegen to support multiple services; split out sched 2021-03-11 14:51:29 +10:00
BUILD.bazel add strum crate 2021-03-10 11:53:27 +10:00
Cargo.toml roll back slog-term due to Windows break (2/2) 2021-03-10 13:28:32 +10:00
clang_format.bzl NF: add AGPL licence missing in some file 2021-01-31 21:50:21 +01:00
proto_format.py NF: add AGPL licence missing in some file 2021-01-31 21:50:21 +01:00
README.md add some code editing/completion docs 2020-12-16 14:16:08 +10:00
rustfmt.bzl NF: add AGPL licence missing in some file 2021-01-31 21:50:21 +01:00

Anki's Rust code.

backend.proto stores the interfaces used to communicate backend messages between Rust, Python and TypeScript.