Skip to content

Commit ce9acb2

Browse files
committed
Fix protobuf generator config.
Also fix typo.
1 parent a9bd10b commit ce9acb2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
// use protoc_rust;
2+
use protobuf_codegen::Customize;
33

44
const PROTO_FILE: &str = "protobufs/diskuto.proto";
55

@@ -16,6 +16,10 @@ fn main() {
1616
.out_dir("src/protos")
1717
.inputs(&[PROTO_FILE])
1818
.include("protobufs")
19+
.customize(Customize::default()
20+
// We have our own protos.rs mod file, no need for a duplicate:
21+
.gen_mod_rs(false)
22+
)
1923
.run()
2024
.expect("protoc");
2125

examples/full-stack/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Initial Setup
3535
`./compose run api diskuto db init`
3636

3737
This just runs `diskuto db init` inside of the `api` container.
38-
It'll will create a `diskuto.sqlite3` database in the `./data/` directory.
38+
It will create a `diskuto.sqlite3` database in the `./data/` directory.
3939

4040
5. Start services.
4141
`./compose up`

0 commit comments

Comments
 (0)