//! # Protobuf "text format" implementation. //! //! Text format message look like this: //! //! ```text,ignore //! size: 17 //! color: "red" //! children { //! size: 18 //! color: "blue" //! } //! children { //! size: 19 //! color: "green" //! } //! ``` //! //! This format is not specified, but it is implemented by all official //! protobuf implementations, including `protoc` command which can decode //! and encode messages using text format. //! //! # JSON //! //! rust-protobuf also supports JSON printing and parsing. //! It is implemented in //! [`protobuf-json-mapping` crate](https://docs.rs/protobuf-json-mapping/%3E=3.0.0-alpha). mod parse; mod print; pub use self::parse::merge_from_str; pub use self::parse::parse_from_str; pub use self::parse::ParseError; pub use self::print::fmt; pub use self::print::print_to; pub use self::print::print_to_string; pub use self::print::print_to_string_pretty;