bac05039a7
A couple of motivations for this: - genbackend.py was somewhat messy, and difficult to change with the lack of types. The mobile clients used it as a base for their generation, so improving it will make life easier for them too, once they're ported. - It will make it easier to write a .ts generator in the future - We currently implement a bunch of helper methods on protobuf types which don't allow us to compile the protobuf types until we compile the Anki crate. If we change this in the future, we will be able to do more of the compilation up-front. We no longer need to record the services in the proto file, as we can extract the service order from the compiled protos. Support for map types has also been added.
18 lines
360 B
TOML
18 lines
360 B
TOML
[package]
|
|
name = "anki_proto"
|
|
publish = false
|
|
description = "Anki's Rust library protobuf code"
|
|
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[build-dependencies]
|
|
anyhow = "1.0.71"
|
|
inflections = "1.1.1"
|
|
prost-build = "0.11.9"
|
|
prost-reflect = "0.11.4"
|
|
prost-types = "0.11.9"
|