Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,3 @@ runs:
# Download precompiled wasmtime binaries for running the project
- run: python ci/download-wasmtime.py
shell: bash

# https://github.com/actions/cache/blob/main/workarounds.md#improving-cache-restore-performance-on-windows-using-cross-os-caching
- if: ${{ runner.os == 'Windows' }}
name: Use GNU tar
shell: cmd
run: |
echo "Adding GNU tar to PATH"
echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

# Ensure the Rust lockfile is up-to-date
- run: cargo fetch --manifest-path rust/Cargo.toml --locked
shell: bash

# Install the `wasm-tools` binary with the `component` subcommand that is all
# that's needed here.
- uses: bytecodealliance/actions/wasm-tools/setup@v1
with:
version: "1.208.1"

# Build the bindgen wasm blob with some extra Rust targets.
- run: |
rustup target add wasm32-unknown-unknown wasm32-wasip1
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
echo CARGO_PROFILE_DEV_DEBUG=0 >> $GITHUB_ENV
echo RUSTC_VERSION=`rustc --version` >> $GITHUB_ENV
shell: bash
- uses: actions/cache@v4
with:
path: rust/target
key: rust-target-${{ env.RUSTC_VERSION }}-${{ runner.os }}-${{ hashFiles('rust/Cargo.lock') }}
- run: python ci/build-rust.py
shell: bash
4 changes: 0 additions & 4 deletions ci/_custom_build/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,5 @@ def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):
[sys.executable, 'ci/download-wasmtime.py', *download_args],
check=True,
)
subprocess.run(
[sys.executable, 'ci/build-rust.py'],
check=True,
)

return build_meta_orig.build_wheel(wheel_directory, config_settings, metadata_directory)
45 changes: 0 additions & 45 deletions ci/build-rust.py

This file was deleted.

29 changes: 0 additions & 29 deletions examples/loader.py

This file was deleted.

6 changes: 0 additions & 6 deletions examples/loader_add.wat

This file was deleted.

14 changes: 0 additions & 14 deletions examples/loader_component.py

This file was deleted.

12 changes: 0 additions & 12 deletions examples/loader_component_add.wat

This file was deleted.

5 changes: 0 additions & 5 deletions examples/loader_load_python.wat

This file was deleted.

13 changes: 0 additions & 13 deletions examples/loader_load_wasi.wat

This file was deleted.

5 changes: 0 additions & 5 deletions examples/loader_load_wasm.wat

This file was deleted.

4 changes: 0 additions & 4 deletions examples/loader_load_wasm_target.wat

This file was deleted.

5 changes: 0 additions & 5 deletions examples/loader_python_target.py

This file was deleted.

7 changes: 0 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ testing = [
include-package-data = true
packages = [
"wasmtime",
"wasmtime.bindgen",
]

[tool.setuptools.package-data]
Expand All @@ -73,12 +72,6 @@ packages = [
"*-*/*.so",
"py.typed",
]
"wasmtime.bindgen" = [
# WebAssmbly modules, python bindings. Generated by ci/build-rust.py
"generated/*.py",
"generated/*.wasm",
"generated/imports/*.py",
]

[tool.setuptools-git-versioning]
# https://setuptools-git-versioning.readthedocs.io/en/stable/options/index.html
Expand Down
5 changes: 2 additions & 3 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[pytest]
addopts = --doctest-modules --mypy --ignore-glob=tests/bindgen/*/app.py
norecursedirs =
addopts = --doctest-modules --mypy
norecursedirs =
ci/_custom_build
tests/bindgen/generated/*
1 change: 0 additions & 1 deletion rust/.gitignore

This file was deleted.

Loading