Skip to content

Commit 13d18bb

Browse files
committed
fix: libpy review comments
1 parent eed86a2 commit 13d18bb

File tree

8 files changed

+5
-1340
lines changed

8 files changed

+5
-1340
lines changed

python/tools/wlr-libpy/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/tools/wlr-libpy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
wlr-assets = { git = "https://github.com/vmware-labs/webassembly-language-runtimes.git", branch="rust-py-example", optional = true }
7+
wlr-assets = { path = "../../../tools/wlr-assets", optional = true }
88

99
[features]
1010

python/tools/wlr-libpy/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ To use this feature add this to your Cargo.toml
1515
wlr-libpy = { git = "https://github.com/vmware-labs/webassembly-language-runtimes.git", branch="rust-py-example", features = ["build"] }
1616
```
1717

18-
Then, in the [build.rs](./build.rs) file of your project you only need to call this:
18+
Then, in the `build.rs` file of your project you only need to call `configure_static_libs().unwrap().emit_link_flags()` like this:
1919

2020
```rs
21+
fn main() {
2122
use wlr_libpy::bld_cfg::configure_static_libs;
2223
configure_static_libs().unwrap().emit_link_flags();
24+
}
2325
```
2426

2527
Here is a list of the pre-built `wasm32-wasi` static libraries:

python/tools/wlr-libpy/src/bld_cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ pub fn configure_static_libs() -> Result<LibsConfig, BoxedError> {
3232
libs_config.add("python3.11");
3333

3434
Ok(libs_config)
35-
}
35+
}

0 commit comments

Comments
 (0)