ruby_wasm 2.5.0.pre.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +10 -6
- data/Cargo.lock +625 -456
- data/Gemfile +1 -1
- data/README.md +8 -15
- data/Rakefile +2 -3
- data/benchmarks/vm_deep_call.rb +2 -2
- data/builders/wasm32-unknown-emscripten/Dockerfile +1 -1
- data/builders/wasm32-unknown-wasi/Dockerfile +1 -1
- data/docs/cheat_sheet.md +8 -8
- data/ext/ruby_wasm/Cargo.toml +3 -4
- data/ext/ruby_wasm/src/lib.rs +11 -0
- data/lib/ruby_wasm/build/product/crossruby.rb +4 -0
- data/lib/ruby_wasm/build/product/wasi_vfs.rb +0 -38
- data/lib/ruby_wasm/build/product/zlib.rb +2 -2
- data/lib/ruby_wasm/cli.rb +24 -2
- data/lib/ruby_wasm/packager/file_system.rb +15 -14
- data/lib/ruby_wasm/packager.rb +2 -2
- data/lib/ruby_wasm/rake_task.rb +1 -0
- data/lib/ruby_wasm/version.rb +1 -1
- data/package-lock.json +5 -5
- data/{tasks → rakelib}/doc.rake +6 -1
- data/{tasks → rakelib}/format.rake +3 -2
- data/{tasks → rakelib}/gem.rake +4 -1
- data/{tasks → rakelib}/packaging.rake +8 -5
- data/{tasks → rakelib}/version.rake +2 -0
- data/sig/ruby_wasm/build.rbs +0 -4
- data/sig/ruby_wasm/cli.rbs +3 -0
- data/sig/ruby_wasm/ext.rbs +3 -1
- metadata +9 -10
- data/ruby_wasm.gemspec +0 -32
- /data/{tasks → rakelib}/check.rake +0 -0
- /data/{tasks → rakelib}/ci.rake +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f42f03a6e5dcd06b68414f462b48a22402e1944e5535342f3d3b707697ffff42
|
4
|
+
data.tar.gz: f685a3c61822ab104266c30e1646384a0e5450c9b2eab24d84ad565b03c7b192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96dfec4b5cb068578c121106228bf646246fca5d28b9b7fa94d47a8668bd9ead185cbc29e9f002fd25c302132970bd509ffa27dce3ee967a2c8ea203d6f3df50
|
7
|
+
data.tar.gz: adbaf753357914c4b25791f39915a62863f61fc062903f21037ce95c8a075b45c14228aa08acfc81ca69fd994a1b473b7fcaf219fad145b4a7cff238b240895e
|
data/CONTRIBUTING.md
CHANGED
@@ -9,6 +9,8 @@ This document describes development setup and pointers for diving into this proj
|
|
9
9
|
$ git clone https://github.com/ruby/ruby.wasm
|
10
10
|
$ cd ruby.wasm
|
11
11
|
$ ./bin/setup
|
12
|
+
# Compile extension library
|
13
|
+
$ bundle exec rake compile
|
12
14
|
$ rake --tasks
|
13
15
|
```
|
14
16
|
|
@@ -19,7 +21,7 @@ $ rake --tasks
|
|
19
21
|
$ rake build:download_prebuilt
|
20
22
|
|
21
23
|
# Build Ruby (if you need to build Ruby by yourself)
|
22
|
-
$ rake build:head-wasm32-unknown-wasi-full
|
24
|
+
$ rake build:head-wasm32-unknown-wasi-full
|
23
25
|
|
24
26
|
# Build npm package
|
25
27
|
$ rake npm:ruby-head-wasm-wasi
|
@@ -53,8 +55,8 @@ $ rake build:head-wasm32-unknown-wasi-full:clean
|
|
53
55
|
$ rake build:head-wasm32-unknown-wasi-full:remake
|
54
56
|
|
55
57
|
# Output is in the `rubies` directory
|
56
|
-
$ tree -L 3 rubies/head-wasm32-unknown-wasi-full
|
57
|
-
rubies/head-wasm32-unknown-wasi-full
|
58
|
+
$ tree -L 3 rubies/head-wasm32-unknown-wasi-full
|
59
|
+
rubies/head-wasm32-unknown-wasi-full/
|
58
60
|
├── usr
|
59
61
|
│ └── local
|
60
62
|
│ ├── bin
|
@@ -70,9 +72,9 @@ Please follow the official instructions to install.
|
|
70
72
|
|
71
73
|
```console
|
72
74
|
# Build only a specific combination of ruby version, profile, and target
|
73
|
-
$ rake build:head-wasm32-unknown-emscripten-full
|
75
|
+
$ rake build:head-wasm32-unknown-emscripten-full
|
74
76
|
# Output is in the `rubies` directory
|
75
|
-
$ tree -L 3 rubies/head-wasm32-unknown-emscripten-full
|
77
|
+
$ tree -L 3 rubies/head-wasm32-unknown-emscripten-full
|
76
78
|
rubies/head-wasm32-unknown-emscripten-full
|
77
79
|
└── usr
|
78
80
|
└── local
|
@@ -107,6 +109,8 @@ $ rake 'bump_version[0.6.0]'
|
|
107
109
|
$ git commit -m"Bump version to 0.6.0"
|
108
110
|
$ git tag 0.6.0
|
109
111
|
$ git push origin 0.6.0
|
112
|
+
$ for pkg in pkg/ruby_wasm-*; do gem push $pkg; done
|
113
|
+
$ (cd packages/gems/js/ && gem build && gem push js-*.gem)
|
110
114
|
```
|
111
115
|
|
112
116
|
## Release Channels
|
@@ -120,5 +124,5 @@ $ npm install --save @ruby/wasm-wasi@latest
|
|
120
124
|
# or if you want the nightly snapshot
|
121
125
|
$ npm install --save @ruby/wasm-wasi@next
|
122
126
|
# or you can specify the exact snapshot version
|
123
|
-
$ npm install --save @ruby/wasm-wasi@2.
|
127
|
+
$ npm install --save @ruby/wasm-wasi@2.5.0-2024-01-28-a
|
124
128
|
```
|