diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2780d33..4dc9d50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,19 +53,6 @@ jobs: cargo test -p ort --verbose --features fetch-models -- --test-threads 1 # Test examples that use in-tree graphs (do NOT run any of the examples that download ~700 MB graphs from pyke parcel...) cargo run --example custom-ops - test-wasm: - name: Test WebAssembly - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install nightly Rust toolchain - uses: dtolnay/rust-toolchain@nightly - - name: Install wasm-pack - run: cargo install wasm-pack - - name: Run tests - working-directory: examples/webassembly - run: | - wasm-pack test --node # Disable cross-compile until cross updates aarch64-unknown-linux-gnu to Ubuntu 22.04 # ref https://github.com/cross-rs/cross/pull/973 #cross-compile: diff --git a/.gitignore b/.gitignore index 6ab7181..6d61845 100644 --- a/.gitignore +++ b/.gitignore @@ -187,7 +187,6 @@ WixTools/ **/*.onnx **/*.ort **/*.pbseq -!examples/webassembly/**/*.ort !tests/data/*.onnx !tests/data/*.ort diff --git a/Cargo.toml b/Cargo.toml index 7ac0af6..4562d0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,8 +8,7 @@ members = [ 'examples/yolov8', 'examples/modnet', 'examples/sentence-transformers', - 'examples/training', - 'examples/webassembly' + 'examples/training' ] default-members = [ '.', @@ -49,7 +48,7 @@ codegen-units = 1 [package.metadata.docs.rs] features = [ "ndarray", "half", "training", "operator-libraries", "fetch-models", "load-dynamic", "copy-dylibs" ] -targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"] +targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = [ "--cfg", "docsrs" ] [features] @@ -99,10 +98,6 @@ libc = { version = "0.2", optional = true } [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", optional = true, features = [ "std", "libloaderapi" ] } -[target.'cfg(target_family = "wasm")'.dependencies] -js-sys = "0.3" -web-sys = "0.3" - [dev-dependencies] anyhow = "1.0" ureq = "2.1" @@ -112,7 +107,6 @@ tracing-subscriber = { version = "0.3", default-features = false, features = [ " glassbench = "0.4" tokio = { version = "1.36", features = [ "test-util" ] } tokio-test = "0.4.3" -wasm-bindgen-test = "0.3" [[bench]] name = "squeezenet" diff --git a/docs/pages/setup/platforms.mdx b/docs/pages/setup/platforms.mdx index cb1e705..999b9a0 100644 --- a/docs/pages/setup/platforms.mdx +++ b/docs/pages/setup/platforms.mdx @@ -12,21 +12,19 @@ Here are the supported platforms and binary availability status, as of v2.0.0-rc * β - Supported. Precompiled binaries not available. * β - Not supported. -| Platform | x86 | x86-64 | ARMv7 | ARM64 | WASM32 | -|:-------- |:------- |:------ |:------ |:------ |:------ | -| **Windows** | β | π’\* | β | π·\* | β | -| **Linux** | β | π’β | β | π·β‘ | β | -| **macOS** | β | π·Β§ | β | π· | β | -| **iOS** | β | β | β | β | β | -| **Android** | β | β | β | β | β | -| **Web** | β | β | β | β | π·ΒΆ | +| Platform | x86 | x86-64 | ARMv7 | ARM64 | +|:-------- |:------- |:------ |:------ |:------ | +| **Windows** | β | π’\* | β | π·\* | +| **Linux** | β | π’β | β | π·β‘ | +| **macOS** | β | π·Β§ | β | π· | +| **iOS** | β | β | β | β | +| **Android** | β | β | β | β |
\* A recent version of Windows 10/11 & Visual Studio 2022 are required for pyke binaries.
β glibc β₯ 2.31 (Ubuntu β₯ 20.04) required for pyke binaries.
β‘ glibc β₯ 2.35 (Ubuntu β₯ 22.04) required for pyke binaries.
Β§ macOS β₯ 10.15 required.
-ΒΆ WASM supports a limited subset of ONNX Runtime features. For more info, see [the docs on WebAssembly support](/setup/webassembly).
(mut self, model_filepath_ref: P) -> Result