Skip to content

Commit

Permalink
wasm development lib + echo enc & dec
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Chi committed Oct 5, 2023
1 parent 636fd55 commit 8c807ef
Show file tree
Hide file tree
Showing 26 changed files with 2,743 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
target = "wasm32-wasi"

[target.wasm32-wasi]
rustflags = [ "--cfg", "tokio_unstable"]
33 changes: 33 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: WASM

on:
push:
branches: [ "water-wasm-crate" ]
pull_request:
branches: [ "water-wasm-crate" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Add wasm32-wasi target
run: rustup target add wasm32-wasi

- name: Build
run: cargo build --target wasm32-wasi --verbose
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*/target
/target
.DS_Store
.vscode
Loading

0 comments on commit 8c807ef

Please sign in to comment.