diff --git a/Cargo.lock b/Cargo.lock index aa75c6a..866e48b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -380,7 +380,7 @@ dependencies = [ [[package]] name = "componentize-py" -version = "0.13.4" +version = "0.13.5" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index e3f0818..6a4696f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "componentize-py" -version = "0.13.4" +version = "0.13.5" edition = "2021" exclude = ["cpython"] diff --git a/examples/cli/README.md b/examples/cli/README.md index 3ce628c..73e8a3c 100644 --- a/examples/cli/README.md +++ b/examples/cli/README.md @@ -10,7 +10,7 @@ run a Python-based component targetting the [wasi-cli] `command` world. ## Prerequisites * `Wasmtime` 18.0.0 or later -* `componentize-py` 0.13.4 +* `componentize-py` 0.13.5 Below, we use [Rust](https://rustup.rs/)'s `cargo` to install `Wasmtime`. If you don't have `cargo`, you can download and install from @@ -18,7 +18,7 @@ https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0. ``` cargo install --version 18.0.0 wasmtime-cli -pip install componentize-py==0.13.4 +pip install componentize-py==0.13.5 ``` ## Running the demo diff --git a/examples/http/README.md b/examples/http/README.md index 9195194..9bc6f82 100644 --- a/examples/http/README.md +++ b/examples/http/README.md @@ -10,7 +10,7 @@ run a Python-based component targetting the [wasi-http] `proxy` world. ## Prerequisites * `Wasmtime` 18.0.0 or later -* `componentize-py` 0.13.4 +* `componentize-py` 0.13.5 Below, we use [Rust](https://rustup.rs/)'s `cargo` to install `Wasmtime`. If you don't have `cargo`, you can download and install from @@ -18,7 +18,7 @@ https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0. ``` cargo install --version 18.0.0 wasmtime-cli -pip install componentize-py==0.13.4 +pip install componentize-py==0.13.5 ``` ## Running the demo diff --git a/examples/matrix-math/README.md b/examples/matrix-math/README.md index 894243c..9ba71f3 100644 --- a/examples/matrix-math/README.md +++ b/examples/matrix-math/README.md @@ -11,7 +11,7 @@ within a guest component. ## Prerequisites * `wasmtime` 18.0.0 or later -* `componentize-py` 0.13.4 +* `componentize-py` 0.13.5 * `NumPy`, built for WASI Note that we use an unofficial build of NumPy since the upstream project does @@ -23,7 +23,7 @@ https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0. ``` cargo install --version 18.0.0 wasmtime-cli -pip install componentize-py==0.13.4 +pip install componentize-py==0.13.5 curl -OL https://github.com/dicej/wasi-wheels/releases/download/v0.0.1/numpy-wasi.tar.gz tar xf numpy-wasi.tar.gz ``` diff --git a/examples/sandbox/README.md b/examples/sandbox/README.md index 0d43d67..f1f3d46 100644 --- a/examples/sandbox/README.md +++ b/examples/sandbox/README.md @@ -8,10 +8,10 @@ sandboxed Python code snippets from within a Python app. ## Prerequisites * `wasmtime-py` 18.0.0 or later -* `componentize-py` 0.13.4 +* `componentize-py` 0.13.5 ``` -pip install componentize-py==0.13.4 wasmtime==18.0.2 +pip install componentize-py==0.13.5 wasmtime==18.0.2 ``` ## Running the demo diff --git a/examples/tcp/README.md b/examples/tcp/README.md index e011c91..c3e2c31 100644 --- a/examples/tcp/README.md +++ b/examples/tcp/README.md @@ -11,7 +11,7 @@ making an outbound TCP request using `wasi-sockets`. ## Prerequisites * `Wasmtime` 18.0.0 or later -* `componentize-py` 0.13.4 +* `componentize-py` 0.13.5 Below, we use [Rust](https://rustup.rs/)'s `cargo` to install `Wasmtime`. If you don't have `cargo`, you can download and install from @@ -19,7 +19,7 @@ https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0. ``` cargo install --version 18.0.0 wasmtime-cli -pip install componentize-py==0.13.4 +pip install componentize-py==0.13.5 ``` ## Running the demo diff --git a/pyproject.toml b/pyproject.toml index 1c91daa..e68e7db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ features = ["pyo3/extension-module"] [project] name = "componentize-py" -version = "0.13.4" +version = "0.13.5" description = "Tool to package Python applications as WebAssembly components" readme = "README.md" license = { file = "LICENSE" } diff --git a/src/lib.rs b/src/lib.rs index f93bbc5..de2b1c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -618,7 +618,7 @@ pub async fn componentize( .join(binding_path) .strip_prefix(dir) .ok() - .map(|p| (index, p.to_str().unwrap().to_owned())) + .map(|p| (index, p.to_str().unwrap().replace('\\', "/"))) } else { None })