• Home
  • Raw
  • Download

Lines Matching +full:cargo +full:- +full:deny

4 //! and a `protoc-gen-rust` `protoc` plugin.
7 //! * provides `protoc-gen-rust` plugin for `protoc` command
11 //! (except for `protoc-gen-rust` binary).
14 //! * `protoc-gen-rust` plugin for `protoc` or
15 //! * [`protoc-rust`](https://docs.rs/protoc) crate
17 //! * [`protobuf-codegen-pure`](https://docs.rs/protobuf-codegen-pure) crate,
18 //! similar API to `protoc-rust`, but uses pure rust parser of `.proto` files.
20 //! # `protoc-gen-rust` plugin for `protoc`
22 //! When non-cargo build system is used, consider using standard protobuf code generation pattern:
24 //! When `protoc` is invoked with `--rust_out=` option, it invokes `protoc-gen-rust` plugin.
27 //! When building with cargo, consider using `protoc-rust` or `protobuf-codegen-pure` crates.
29 //! ## How to use `protoc-gen-rust` if you have to
42 //! On Ubuntu, `protobuf-compiler` package can be installed:
45 //! apt-get install protobuf-compiler
48 //! Protobuf is needed only for code generation, `rust-protobuf` runtime
51 //! 1) Install `protoc-gen-rust` program (which is `protoc` plugin)
53 //! It can be installed either from source or with `cargo install protobuf` command.
55 //! 2) Add `protoc-gen-rust` to $PATH
57 //! If you installed it with cargo, it should be
60 //! PATH="$HOME/.cargo/bin:$PATH"
66 //! protoc --rust_out . foo.proto
75 //! [Version 3 of the crate](https://docs.rs/protobuf-codegen/%3E=3.0.0-alpha)
78 #![deny(rustdoc::broken_intra_doc_links)]
79 #![deny(missing_docs)]
204 "parse_descriptor_proto() -> {}::descriptor::FileDescriptorProto", in write_file_descriptor_data()
217 "file_descriptor_proto() -> &'static {}::descriptor::FileDescriptorProto", in write_file_descriptor_data()
238 ) -> GenFileResult { in gen_file()
257 w.write_generated_by("rust-protobuf", "2.27.1"); in gen_file()
301 fn gen_mod_rs(mods: &[String]) -> compiler_plugin::GenResult { in gen_mod_rs()
316 // This function is also used externally by cargo plugin
317 // https://github.com/plietar/rust-protobuf-build
324 ) -> Vec<compiler_plugin::GenResult> { in gen()
361 ) -> io::Result<()> { in gen_and_write()
383 /// Used in protobuf-codegen-identical-test
385 pub fn proto_name_to_rs(name: &str) -> String { in proto_name_to_rs()