Skip to content

Commit

Permalink
Add ffi and JS wasm package (#8)
Browse files Browse the repository at this point in the history
* Add wasm ffi

* WASM experiments with OOP

* Add test and fix JS time

* Add user oop and ffi test

* Add wasm tests

* Bump deps

* Fix native

* Add wasm workflow

* Lint

* Fix pkg

* Fine grained deps

* Add Clone trait to raw models

* Fix deps
  • Loading branch information
SHAcollision authored Jan 22, 2025
1 parent 270fcb2 commit f1c34f7
Show file tree
Hide file tree
Showing 26 changed files with 930 additions and 186 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
time: "08:00"
open-pull-requests-limit: 10
21 changes: 21 additions & 0 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Rust (native)

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run Native tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Rust (Wasm-Pack)

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
wasm-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Wasm-Pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install Firefox
run: sudo apt-get install -y firefox
- name: Run Wasm-Pack Tests
run: wasm-pack test --headless --firefox
Loading

0 comments on commit f1c34f7

Please sign in to comment.