Skip to content

Commit 7e6187e

Browse files
committed
Performance updates
1 parent 5820722 commit 7e6187e

23 files changed

+656
-818
lines changed

.github/workflows/ci.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [22.x]
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Install Node.js dependencies
29+
run: |
30+
npm prune
31+
32+
- name: Set up Rust
33+
uses: actions-rs/toolchain@v1
34+
with:
35+
toolchain: stable
36+
target: wasm32-unknown-unknown
37+
override: true
38+
39+
- name: Install wasm-bindgen-cli
40+
run: cargo install wasm-bindgen-cli
41+
42+
- name: Install project dependencies
43+
run: npm install
44+
45+
- name: Build and test
46+
run: npm run build && npm run test:coveralls
47+
48+
- name: Cache Node.js modules
49+
uses: actions/cache@v2
50+
with:
51+
path: node_modules
52+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
53+
restore-keys: |
54+
${{ runner.os }}-node-

.travis.yml

-25
This file was deleted.

Cargo.lock

-161
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-6
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ categories = ["wasm", "parser-implementations"]
1212
[lib]
1313
crate-type = ["cdylib", "rlib"]
1414

15-
[dependencies]
16-
1715
[dev-dependencies]
18-
wasm-bindgen-test = "0.3"
19-
wasm-bindgen = "0.2"
2016
wasm-opt = "0.116"
2117

2218
[profile.release]
@@ -27,5 +23,3 @@ panic = "abort" # Reduce binary size by disabling unwinding
2723
strip = "symbols" # Remove debug symbols for smaller binaries
2824

2925
[target.wasm32-unknown-unknown]
30-
linker = "wasm-ld"
31-
rustflags = ["-C", "link-arg=--no-entry"]

lib/cjs/saxWasm.js

+1-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cjs/saxWasm.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/esm/saxWasm.js

+1-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/esm/saxWasm.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/sax-wasm.js

-4
This file was deleted.

lib/sax-wasm.wasm

2.07 KB
Binary file not shown.

lib/sax-wasm.wasm_bg.js

-5
This file was deleted.

0 commit comments

Comments
 (0)