Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions frontend/rust-lib/flowy-error/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
fn main() {
#[cfg(feature = "dart")]
flowy_codegen::protobuf_file::dart_gen(env!("CARGO_PKG_NAME"));
#[cfg(feature = "dart")]
{
println!("Generating Dart protobuf code for package: {}", env!("CARGO_PKG_NAME"));
flowy_codegen::protobuf_file::dart_gen(env!("CARGO_PKG_NAME"));
}

#[cfg(not(feature = "dart"))]
{
println!("Dart feature not enabled; skipping code generation.");
}
}