AppFlowy/frontend/rust-lib/flowy-database2/build.rs
2025-03-24 12:03:42 +08:00

23 lines
732 B
Rust

fn main() {
#[cfg(feature = "dart")]
{
flowy_codegen::protobuf_file::dart_gen(env!("CARGO_PKG_NAME"));
flowy_codegen::dart_event::gen(env!("CARGO_PKG_NAME"));
}
// #[cfg(feature = "ts")]
// {
// flowy_codegen::ts_event::gen(env!("CARGO_PKG_NAME"), flowy_codegen::Project::Tauri);
// flowy_codegen::protobuf_file::ts_gen(
// env!("CARGO_PKG_NAME"),
// env!("CARGO_PKG_NAME"),
// flowy_codegen::Project::Tauri,
// );
// flowy_codegen::ts_event::gen(env!("CARGO_PKG_NAME"), flowy_codegen::Project::TauriApp);
// flowy_codegen::protobuf_file::ts_gen(
// env!("CARGO_PKG_NAME"),
// env!("CARGO_PKG_NAME"),
// flowy_codegen::Project::TauriApp,
// );
// }
}