Fork of daniellemaywood.uk/gleam — Wasm codegen work
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2026 The Gleam contributors
3
4/// `prost_build` generates files in the output directory, which means that if we want
5/// to use it, we would need the protoc compiler as a build dependency.
6/// To get around this, we need run the build script and manually copy the generated files
7/// into the `src` folder. To do so, uncomment the below lines, then copy the files from the
8/// output directory into the `src/proto` folder. The path to the output directory
9/// will be printed in the terminal.
10///
11fn main() {
12 // prost_build::compile_protos(
13 // &[
14 // "proto/signed.proto",
15 // "proto/package.proto",
16 // "proto/versions.proto",
17 // ],
18 // &["proto/"],
19 // )
20 // .expect("Failed to generate prost code from .proto files");
21
22 // println!(
23 // "cargo::warning=Regenerated proto files, which must be manually copied into the `src` directory. Generated files can be found in {}",
24 // std::env::var("OUT_DIR").unwrap_or_default()
25 // );
26}