[Pkg-javascript-devel] Bug#986616: nodejs: Please include this wasi-node script for running WASI programs
Ximin Luo
infinity0 at debian.org
Thu Apr 8 02:16:14 BST 2021
Package: nodejs
Version: 12.21.0~dfsg-1
Severity: wishlist
Tags: patch
Dear Maintainer,
Please include the attached script, installing it into /usr/bin/wasi-node.
This is a script that acts as an interpreter for WASI programs, by using NodeJS's
experimental WASI module API. You can compile WASI programs using rustc, e.g.:
$ cat hello.rs
use std::env;
pub fn main() {
println!("hello, world! {:?}", env::args());
}
$ sudo apt-get install libstd-rust-dev-wasm32
$ rustc --target=wasm32-wasi hello.rs
$ wasi-node ./hello.wasm 1 2 3
(node:981078) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
hello, world! Args { inner: ["./hello.wasm", "1", "2", "3"] }
It'd be nice if this script were also forwarded to upstream for inclusion in
their development version (14), but I'm not familiar with their submission
process so I'd appreciate if you could do that.
X
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-security'), (500, 'testing-debug'), (500, 'stable'), (300, 'unstable'), (100, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.9.0-4-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages nodejs depends on:
ii libc6 2.31-10
ii libnode72 12.21.0~dfsg-1
Versions of packages nodejs recommends:
ii ca-certificates 20210119
ii nodejs-doc 12.21.0~dfsg-1
Versions of packages nodejs suggests:
pn npm <none>
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wasi-node
Type: application/javascript
Size: 1653 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210408/3e3869d4/attachment.js>
More information about the Pkg-javascript-devel
mailing list