Skip to content

Commit c778480

Browse files
committed
WAPM release script
1 parent 862d935 commit c778480

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ members = [
1616
]
1717

1818
[features]
19-
default = ["threading", "pylib", "zlib", "stdlib"]
19+
default = ["threading", "pylib", "stdlib", "zlib"]
2020
stdlib = ["rustpython-stdlib"]
2121
flame-it = ["rustpython-vm/flame-it", "flame", "flamescope"]
2222
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
2323
jit = ["rustpython-vm/jit"]
2424
threading = ["rustpython-vm/threading"]
2525
pylib = ["rustpython-vm/pylib"]
26-
zlib = ["rustpython-stdlib/zlib"]
26+
zlib = ["stdlib", "rustpython-stdlib/zlib"]
2727
ssl = ["rustpython-stdlib/ssl"]
2828
ssl-vendor = ["rustpython-stdlib/ssl-vendor"]
2929

scripts/release-wapm.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$(dirname "$0")")"
5+
6+
FEATURES_FOR_WAPM=(stdlib zlib)
7+
8+
export BUILDTIME_RUSTPYTHONPATH="/lib/rustpython"
9+
10+
cargo build --release --target wasm32-wasi --no-default-features --features="${FEATURES_FOR_WAPM[*]}"
11+
12+
wapm publish

stdlib/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ compiler = ["rustpython-vm/compiler"]
7979
# compiler = ["rustpython-compiler", "rustpython-compiler-core", "ast"]
8080
# parser = ["rustpython-parser", "ast"]
8181

82-
# TODO: use resolver = "2" instead of features
8382
zlib = ["libz-sys", "flate2/zlib"]
8483
ssl = ["openssl", "openssl-sys", "foreign-types-shared"]
8584
ssl-vendor = ["ssl", "openssl/vendored", "openssl-probe"]

0 commit comments

Comments
 (0)