diff --git a/Cargo.toml b/Cargo.toml
index 27c5dbe..990a01b 100644
@@ -15,6 +15,8 @@ rand = "0.9.2"
x25519-dalek = "3.0.0-pre.1"
uniffi = { version = "0.29.3", features = [ "cli" ] }
thiserror = "2.0.17"
+clap = { version = "4.5.50", features = ["derive"] }
+uniffi-dart = { git = "https://github.com/Uniffi-Dart/uniffi-dart", version = "0.1.0" }
[build-dependencies]
uniffi = { version = "0.29.3", features = [ "build" ] }
diff --git a/uniffi-bindgen.rs b/uniffi-bindgen.rs
index 53cb481..a39e3ef 100644
@@ -1,3 +1,17 @@
+use clap::Parser;
+
+#[derive(Parser, Debug)]
+#[command(name = "uniffi-bindgen", ignore_errors = true)]
+struct Args {
+ _ignored: String,
+
+ #[arg(short, long)]
+ library: String,
+}
+
fn main() {
+ let args = Args::parse();
+
uniffi::uniffi_bindgen_main();
+ uniffi_dart::r#gen::generate_dart_bindings("src/cep.udl".as_ref(), None, Some("out/".as_ref()), args.library.as_ref(), true).unwrap();
}
\ No newline at end of file