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-fuzz" ,
Original file line number Diff line number Diff line change @@ -22,10 +22,21 @@ protobuf-codegen-pure-test/test.sh
22
22
protoc/test.sh
23
23
cargo build --all --all-targets
24
24
25
+ check_protoc_crate () {
26
+ # test depends on `protoc-gen-rust` binary, thus it cannot be a part of workspace
27
+ cargo build -p protobuf-codegen
28
+ (
29
+ cd protoc/test-protoc
30
+ cargo check
31
+ )
32
+ }
33
+
25
34
if [ -z " $ON_WINDOWS " ]; then
26
35
cargo doc -p protobuf
27
36
cargo doc -p protoc
28
37
cargo doc -p protoc-rust
38
+
39
+ check_protoc_crate
29
40
fi
30
41
31
42
# 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