Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/SantaClaas/melts. Idk where this will go but I got an encrypted database in SQLite in Rust on andro
Something went wrong. Try again.
12345678910111213141516171819202122232425use crux_core::typegen::TypeGen;use shared::Counter;use std::path::PathBuf;
fn main() -> anyhow::Result<()> { println!("cargo:rerun-if-changed=../shared");
let mut gen = TypeGen::new();
gen.register_app::<Counter>()?;
let output_root = PathBuf::from("./generated");
gen.swift("SharedTypes", output_root.join("swift"))?;
gen.java( "com.example.simple_counter.shared_types", output_root.join("java"), )?;
gen.typescript("shared_types", output_root.join("typescript"))?;
Ok(())}