File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
[workspace ]
2
2
members = [
3
3
" protoc" ,
4
- " protoc/test-protoc" ,
4
+ # Exclude test-protoc from the project, because it depends on binary
5
+ # "protoc/test-protoc",
5
6
" protoc-rust" ,
6
7
" protobuf" ,
7
8
" protobuf-codegen" ,
Original file line number Diff line number Diff line change @@ -19,9 +19,20 @@ protobuf-codegen-pure-test/test.sh
19
19
protoc/test.sh
20
20
cargo build --all --all-targets
21
21
22
+ check_protoc_crate () {
23
+ # test depends on `protoc-gen-rust` binary, thus it cannot be a part of workspace
24
+ cargo build -p protobuf-codegen
25
+ (
26
+ cd protoc/test-protoc
27
+ cargo check
28
+ )
29
+ }
30
+
22
31
if [ -z " $ON_WINDOWS " ]; then
23
32
cargo doc -p protobuf
24
33
cargo doc -p protoc
34
+
35
+ check_protoc_crate
25
36
fi
26
37
27
38
# vim: set ts=4 sw=4 et:
Original file line number Diff line number Diff line change
1
+ [workspace ]
2
+
1
3
[package ]
2
4
name = " test-protoc"
3
5
version = " 0.0.0"
You can’t perform that action at this time.
0 commit comments