Skip to content

Commit 7e3634e

Browse files
author
Hui Zhu
authored
Merge pull request #42 from Tim-Zhang/update-compiler
Update compiler for publish
2 parents 9a9248c + 0280f0b commit 7e3634e

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

compiler/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[package]
22
name = "ttrpc-compiler"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2018"
55
authors = ["The AntFin Kata Team <[email protected]>"]
66
license = "Apache-2.0"
77
keywords = ["compiler", "ttrpc", "protobuf"]
88
description = "ttRPC compiler for ttrpc"
99
categories = ["network-programming"]
10+
repository = "https://github.com/containerd/ttrpc-rust/tree/master/compiler"
11+
homepage = "https://github.com/containerd/ttrpc-rust/tree/master/compiler"
1012

1113
[dependencies]
1214
protobuf = "2.0"

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+
- [Manual Generation](https://github.com/containerd/ttrpc-rust#1-generate-with-protoc-command) uses ttrpc-compiler as a protoc plugin
8+
- [Programmatic Generation](https://github.com/containerd/ttrpc-rust#2-generate-programmatically) uses ttrpc-compiler as a rust crate

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)