[go: up one dir, main page]

protobuf 1.0.11

Rust implementation of Google protocol buffers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -ex

cargo build

where_am_i=$(cd `dirname $0`/..; pwd)
PATH="$where_am_i/target/debug:$PATH"

rm -f test/pb_*

protoc --rust_out test proto/pb_shrug.proto
protoc --rust_out test proto/pb_test-sanitize-file-name.proto
protoc --rust_out test proto/pb_text_format_test_data.proto
protoc --rust_out test -I proto proto/pb_test_*.proto

cd test

rustc --test -L ../../target/debug lib.rs
./lib