Skip to content

Commit acc24bc

Browse files
Enable flat_output_dir option for prost 0.5.0 (#2123)
The BSR's cargo registry expects a certain file structure from the plugin for generating the lib.rs file that creates the package. This changed from 0.4.0 to 0.5.0; enable this option so that 0.5.0 matches the 0.4.0 output. Ref: neoeinstein/protoc-gen-prost#89
1 parent c80be0f commit acc24bc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

plugins/community/neoeinstein-prost/v0.5.0/buf.plugin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ registry:
3030
# Dependency on `bytes` crate is added as a result of `default_features: true` on `prost` dependency.
3131
# https://crates.io/crates/prost/0.14.1/dependencies
3232
- bytes=.
33+
# Flatten the output dir, which matches the behavior of 0.4.0, and is expected by the BSR.
34+
- flat_output_dir
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
h1:tr64pAOCIHHuiLdpUjq7rYpi056ec6hI6fm/WmwmOlw=
1+
h1:OID+wV5VWbzKKQWObTN8nRpJl/rYYU5XJyyvhtQ4DH8=
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
h1:elY1uwW/oKHbhyVnyis83ltUqT1V94F2C6ib97WgXU8=
1+
h1:2TaZCI0Q/SiFHoYjshkwLH7es7b2WVOhS36JzFwumW8=

0 commit comments

Comments
 (0)