diff --git a/proto/backend.proto b/proto/backend.proto index b8962c6cf..af553171d 100644 --- a/proto/backend.proto +++ b/proto/backend.proto @@ -2,7 +2,7 @@ syntax = "proto3"; import "fluent.proto"; -package backend_proto; +package BackendProto; // Generic containers /////////////////////////////////////////////////////////// diff --git a/pylib/tools/genbackend.py b/pylib/tools/genbackend.py index a143d7ed0..ce419f1ee 100755 --- a/pylib/tools/genbackend.py +++ b/pylib/tools/genbackend.py @@ -62,9 +62,9 @@ def python_type_inner(field): def fullname(fullname): if "FluentString" in fullname: - return fullname.replace("backend_proto", "anki.fluent_pb2") + return fullname.replace("BackendProto", "anki.fluent_pb2") else: - return fullname.replace("backend_proto", "pb") + return fullname.replace("BackendProto", "pb") # get_deck_i_d -> get_deck_id etc diff --git a/rslib/build.rs b/rslib/build.rs index 7501b3be9..41e768a09 100644 --- a/rslib/build.rs +++ b/rslib/build.rs @@ -26,7 +26,7 @@ fn proto_enum(idents: &[String]) -> String { r#"// This file is automatically generated as part of the build process. syntax = "proto3"; -package backend_proto; +package BackendProto; enum FluentString { "#, );