Home
last modified time | relevance | path

Searched refs:proto_path_to_rust_mod (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/protobuf-codegen/src/gen/
Dpaths.rs18 pub(crate) fn proto_path_to_rust_mod(path: &str) -> RustIdent { in proto_path_to_rust_mod() function
44 format!("{}.rs", proto_path_to_rust_mod(proto_file_path)) in proto_name_to_rs()
59 .append_ident(proto_path_to_rust_mod(s)) in proto_path_to_fn_file_descriptor()
62 .append_ident(proto_path_to_rust_mod(s)) in proto_path_to_fn_file_descriptor()
69 use super::proto_path_to_rust_mod;
76 proto_path_to_rust_mod("proto.proto") in test_mod_path_proto_ext()
84 proto_path_to_rust_mod("proto.proto3") in test_mod_path_unknown_ext()
90 assert_eq!(RustIdent::from("proto"), proto_path_to_rust_mod("proto")); in test_mod_path_empty_ext()
97 proto_path_to_rust_mod("foo/bar/baz.proto"), in test_mod_path_dir()
106 proto_path_to_rust_mod("foo\\bar\\baz.proto"), in test_mod_path_dir_backslashes()
Dwell_known_types.rs7 use crate::gen::paths::proto_path_to_rust_mod;
98 w.write_line(&format!("pub mod {};", proto_path_to_rust_mod(m))); in gen_well_known_types_mod()
Dfile.rs17 use crate::gen::paths::proto_path_to_rust_mod;
147 mod_name: proto_path_to_rust_mod(file_descriptor.proto().name()).into_string(), in gen_file()
Dscope.rs20 use crate::gen::paths::proto_path_to_rust_mod;
332 r.prepend_ident(proto_path_to_rust_mod( in rust_name_with_file()
Drust_types_values.rs14 use crate::gen::paths::proto_path_to_rust_mod;
503 let mod_name = proto_path_to_rust_mod(file_name); in message_or_enum_to_rust_relative()
/external/rust/crates/protobuf-codegen/2.27.1/src/
Dfile.rs15 pub(crate) fn proto_path_to_rust_mod(path: &str) -> RustIdent { in proto_path_to_rust_mod() function
47 use super::proto_path_to_rust_mod;
54 proto_path_to_rust_mod("proto.proto") in test_mod_path_proto_ext()
62 proto_path_to_rust_mod("proto.proto3") in test_mod_path_unknown_ext()
68 assert_eq!(RustIdent::from("proto"), proto_path_to_rust_mod("proto")); in test_mod_path_empty_ext()
75 proto_path_to_rust_mod("foo/bar/baz.proto"), in test_mod_path_dir()
84 proto_path_to_rust_mod("foo\\bar\\baz.proto"), in test_mod_path_dir_backslashes()
Dlib.rs137 use crate::file::proto_path_to_rust_mod;
294 name: format!("{}.rs", proto_path_to_rust_mod(file.get_name())), in gen_file()
297 mod_name: proto_path_to_rust_mod(file.get_name()).into_string(), in gen_file()
386 format!("{}.rs", proto_path_to_rust_mod(name)) in proto_name_to_rs()
Dscope.rs9 use crate::file::proto_path_to_rust_mod;
303 proto_path_to_rust_mod(self.get_scope().get_file_descriptor().get_name()), in rust_fq_name()
/external/rust/crates/protobuf/2.27.1/src/
Ddescriptorx.rs24 pub fn proto_path_to_rust_mod(path: &str) -> String { in proto_path_to_rust_mod() function
339 proto_path_to_rust_mod(self.get_scope().get_file_descriptor().get_name()), in rust_fq_name()
640 use super::proto_path_to_rust_mod;
644 assert_eq!("proto", proto_path_to_rust_mod("proto.proto")); in test_mod_path_proto_ext()
649 assert_eq!("proto_proto3", proto_path_to_rust_mod("proto.proto3")); in test_mod_path_unknown_ext()
654 assert_eq!("proto", proto_path_to_rust_mod("proto")); in test_mod_path_empty_ext()
/external/rust/crates/grpcio-compiler/src/
Dcodegen.rs659 let base = protobuf::descriptorx::proto_path_to_rust_mod(file.get_name()); in gen_file()