From 894eb1617c6f74e1e56f957bc83ffa86551241da Mon Sep 17 00:00:00 2001 From: vato007 Date: Thu, 2 Apr 2026 21:16:50 +1030 Subject: [PATCH] Add move-money-dynamic crate manifest, ignore bindings in git, install wasm32 target in CI --- .gitea/workflows/test.yaml | 1 + .gitignore | 3 ++- move-money-dynamic/Cargo.toml | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 move-money-dynamic/Cargo.toml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index df5014b..8398107 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -11,6 +11,7 @@ jobs: lfs: true - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 + - run: rustup target add wasm32-unknown-unknown # Build webassembly module - run: cargo install cargo-component - run: cargo component build --target wasm32-unknown-unknown --release -p move-money-dynamic diff --git a/.gitignore b/.gitignore index 998e925..b0bae6b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ *.h *.py .idea -/testing/output/*.csv \ No newline at end of file +/testing/output/*.csv +bindings.rs \ No newline at end of file diff --git a/move-money-dynamic/Cargo.toml b/move-money-dynamic/Cargo.toml new file mode 100644 index 0000000..9fb7736 --- /dev/null +++ b/move-money-dynamic/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "move-money-dynamic" +version = "0.1.0" +edition = "2024" + +[dependencies] +wit-bindgen-rt = { version = "0.24.0", features = ["bitflags"] } +serde = { version = "1", features = ["derive"] } +itertools = "0.14.0" +csv = "1" +anyhow = "1" + +[lib] +crate-type = ["cdylib"] + +[package.metadata.component] +package = "move-money-dynamic:test" \ No newline at end of file