Skip to content

Commit ddeb54c

Browse files
committed
Add Readme and crate docs for ttrpc-rust compiler
ready for publish Signed-off-by: Tim Zhang <[email protected]>
1 parent 9a9248c commit ddeb54c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

compiler/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# A compiler of ttrpc-rust
2+
3+
generate rust version ttrpc codes from proto files.
4+
5+
## Usage
6+
7+
#### Option 1 - [Manual Generation](https://github.com/containerd/ttrpc-rust#1-generate-with-protoc-command)
8+
#### Option 2 - [Programmatic Generation](https://github.com/containerd/ttrpc-rust#2-generate-programmatically)

compiler/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
//!
15+
//! A compiler of ttrpc-rust.
16+
//!
17+
//! *generate rust version ttrpc codes from proto files.*
18+
//!
19+
//!
20+
//! Usage
21+
//!
22+
//!- [Manual Generation](https://github.com/containerd/ttrpc-rust#1-generate-with-protoc-command) uses ttrpc-compiler as a protoc plugin
23+
//!
24+
//!- [Programmatic Generation](https://github.com/containerd/ttrpc-rust#2-generate-programmatically) uses ttrpc-compiler as a rust crate
25+
1426
pub mod codegen;
1527
pub mod prost_codegen;
1628
mod util;

0 commit comments

Comments
 (0)