Share the platform-neutral Rust mobile contract (#91)
Dependency security audit / rustsec (push) Failing after 22s

This commit is contained in:
hugo committed 2026-10-08 13:25:09 +02:00
1 parent fcb36a0684
commit 180851087b
52 files changed
+8932 -4263

No files matched your search

+17 -1
View File
@@ -4,6 +4,7 @@ use ironstorage::mobile::{MobileShell, MobileShellState};
use std::{env, error::Error, fs, path::Path};
mod bindings;
mod contract;
mod native;
mod toolchain;
@@ -16,6 +17,20 @@ fn main() -> Result<(), Box<dyn Error>> {
fs::write(path, fixtures())?;
}
[_, command, path] if command == "check" => check(Path::new(path))?,
[_, command, library, config, output, mode] if command == "contract-bindings" => {
contract::generate(
Path::new(library),
Path::new(config),
Path::new(output),
mode == "watch",
)?;
}
[_, command, phone, watch] if command == "compare-contract" => {
contract::compare(Path::new(phone), Path::new(watch))?;
}
[_, command, input, output] if command == "prepare-swift" => {
contract::prepare_swift(Path::new(input), Path::new(output))?;
}
[_, command, input, output] if command == "prepare-bindings" => {
bindings::prepare(Path::new(input), Path::new(output))?;
}
@@ -68,11 +83,12 @@ fn fixtures() -> String {
output.push_str(&format!(" ShellState.{state:?} to listOf(\n"));
for page in MobileShell::fixture(state).pages() {
output.push_str(&format!(
" ShellPage(ShellTab.{:?}, {}, {}, {}),\n",
" ShellPage(ShellTab.{:?}, {}, {}, {}, ShellIcon.{:?}),\n",
page.tab(),
kotlin_string(page.title()),
kotlin_string(page.state_title()),
kotlin_string(page.state_detail()),
page.icon(),
));
}
output.push_str(" ),\n");