1
1
module RubyWasm
2
2
VERSION: String
3
3
4
- class BuildParams < Struct[ untyped ]
5
- attr_accessor name() : String
6
- attr_accessor target() : String
7
- attr_accessor default_exts() : String
4
+ class BuildParams
5
+ attr_accessor name: String
6
+ attr_accessor target: String
7
+ attr_accessor default_exts: String
8
8
end
9
9
10
10
class BuildProduct
@@ -30,17 +30,17 @@ module RubyWasm
30
30
31
31
def initialize : (untyped params, String build_dir) -> void
32
32
def name : -> String
33
- def cache_key : (Digest::SHA256 digest) -> Digest::SHA256
33
+ def cache_key : (Digest::SHA256 digest) -> void
34
34
def src_dir : -> String
35
35
def configure_file : -> String
36
- def fetch : (BuildExecutor executor) -> Array[ untyped ]
36
+ def fetch : (BuildExecutor executor) -> void
37
37
def build : (BuildExecutor executor) -> void
38
38
end
39
39
40
40
class BaseRubyProduct < BuildProduct
41
41
@build_dir: String
42
42
@source: BuildSource
43
- @channel: untyped
43
+ @channel: String
44
44
45
45
def initialize : (String build_dir, BuildSource source) -> void
46
46
def product_build_dir : -> String
@@ -54,7 +54,7 @@ module RubyWasm
54
54
@build_dir: String
55
55
56
56
attr_reader target: String
57
- def initialize : (String build_dir, untyped target, Emscripten | WASISDK toolchain) -> void
57
+ def initialize : (String build_dir, String target, Emscripten | WASISDK toolchain) -> void
58
58
def product_build_dir : -> String
59
59
def destdir : -> String
60
60
def install_root : -> String
@@ -68,7 +68,7 @@ module RubyWasm
68
68
@build_dir: String
69
69
70
70
attr_reader target: String
71
- def initialize : (String build_dir, untyped target, Emscripten | WASISDK toolchain) -> void
71
+ def initialize : (String build_dir, String target, Emscripten | WASISDK toolchain) -> void
72
72
def product_build_dir : -> String
73
73
def destdir : -> String
74
74
def install_root : -> String
@@ -81,8 +81,7 @@ module RubyWasm
81
81
@build_dir: String
82
82
83
83
attr_reader target: String
84
- attr_reader install_task: untyped
85
- def initialize : (String build_dir, untyped target, Emscripten | WASISDK toolchain) -> void
84
+ def initialize : (String build_dir, String target, Emscripten | WASISDK toolchain) -> void
86
85
def product_build_dir : -> String
87
86
def destdir : -> String
88
87
def install_root : -> String
@@ -110,18 +109,18 @@ module RubyWasm
110
109
end
111
110
112
111
class CrossRubyExtProduct < BuildProduct
113
- @toolchain: untyped
114
- @srcdir: untyped
112
+ @toolchain: Toolchain
113
+ @srcdir: String
115
114
116
115
attr_reader name: String
117
- def initialize : (untyped srcdir, untyped toolchain, ?name: nil ) -> void
118
- def product_build_dir : (untyped crossruby) -> String
119
- def linklist : (untyped crossruby) -> String
120
- def make_args : (untyped crossruby) -> Array[String]
121
- def build : (BuildExecutor executor, untyped crossruby) -> void
122
- def do_extconf : (BuildExecutor executor, untyped crossruby) -> untyped
123
- def do_install_rb : (BuildExecutor executor, untyped crossruby) -> untyped
124
- def cache_key : (untyped digest) -> Array[String]
116
+ def initialize : (String srcdir, Toolchain toolchain, ?name: nil ) -> void
117
+ def product_build_dir : (CrossRubyProduct crossruby) -> String
118
+ def linklist : (CrossRubyProduct crossruby) -> String
119
+ def make_args : (CrossRubyProduct crossruby) -> Array[String]
120
+ def build : (BuildExecutor executor, CrossRubyProduct crossruby) -> void
121
+ def do_extconf : (BuildExecutor executor, CrossRubyProduct crossruby) -> void
122
+ def do_install_rb : (BuildExecutor executor, CrossRubyProduct crossruby) -> void
123
+ def cache_key : (Digest::SHA256 digest) -> void
125
124
end
126
125
127
126
class CrossRubyProduct < AutoconfProduct
@@ -144,13 +143,13 @@ module RubyWasm
144
143
attr_accessor debugflags: Array[String]
145
144
attr_accessor xcflags: Array[String]
146
145
attr_accessor xldflags: Array[String]
147
- def initialize : (BuildParams params, String build_dir, String rubies_dir, BaseRubyProduct baseruby, BuildSource source, Emscripten | WASISDK toolchain, ?user_exts: Array[untyped ]) -> void
148
- def configure : (BuildExecutor executor, ?reconfigure: bool ) -> untyped
146
+ def initialize : (BuildParams params, String build_dir, String rubies_dir, BaseRubyProduct baseruby, BuildSource source, Emscripten | WASISDK toolchain, ?user_exts: Array[CrossRubyExtProduct ]) -> void
147
+ def configure : (BuildExecutor executor, ?reconfigure: bool ) -> void
149
148
def build_exts : (BuildExecutor executor) -> bool ?
150
149
def build : (BuildExecutor executor, ?remake: bool , ?reconfigure: bool ) -> bool ?
151
150
def clean : (BuildExecutor executor) -> void
152
151
def name : -> String
153
- def cache_key : (Digest::SHA256 digest) -> Array[ untyped ]
152
+ def cache_key : (Digest::SHA256 digest) -> void
154
153
def build_dir : -> String
155
154
def ext_build_dir : -> String
156
155
def with_libyaml : (LibYAMLProduct libyaml) -> LibYAMLProduct
@@ -166,12 +165,12 @@ module RubyWasm
166
165
end
167
166
168
167
class WitBindgen
169
- @build_dir: untyped
168
+ @build_dir: String
170
169
@tool_dir: String
171
170
@revision: String
172
171
173
172
attr_reader bin_path: String
174
- def initialize : (build_dir: untyped , ?revision: String) -> void
173
+ def initialize : (build_dir: String , ?revision: String) -> void
175
174
def install : -> void
176
175
end
177
176
@@ -183,7 +182,7 @@ module RubyWasm
183
182
def initialize : -> void
184
183
def find_tool : (Symbol name) -> bot
185
184
def check_envvar : (untyped name) -> nil
186
- def self.get : (untyped target, ?String? build_dir) -> (Emscripten | WASISDK)
185
+ def self.get : (String target, ?String? build_dir) -> (Emscripten | WASISDK)
187
186
def self.find_path : (String command) -> String?
188
187
def self.check_executable : (String command) -> String
189
188
def cc : -> nil
@@ -233,26 +232,26 @@ module RubyWasm
233
232
end
234
233
235
234
class Downloader
236
- def format_size : (untyped size) -> untyped
235
+ def format_size : (Integer size) -> String
237
236
238
- def download : (untyped url, untyped dest, untyped message) -> untyped
237
+ def download : (String url, String dest, String message) -> void
239
238
end
240
239
241
240
class BuildTask
242
241
@build_dir: String
243
242
@rubies_dir: String
244
243
@openssl: OpenSSLProduct
245
244
246
- attr_accessor name: untyped
245
+ attr_accessor name: String
247
246
attr_reader source: BuildSource
248
- attr_reader target: untyped
247
+ attr_reader target: String
249
248
attr_reader toolchain: Emscripten | WASISDK
250
249
attr_reader libyaml: LibYAMLProduct
251
250
attr_reader zlib: ZlibProduct
252
251
attr_reader wasi_vfs: WasiVfsProduct
253
252
attr_reader baseruby: BaseRubyProduct
254
253
attr_reader crossruby: CrossRubyProduct
255
- def initialize : (untyped name, target: untyped , src: untyped , ?toolchain: nil , ?build_dir: nil , ?rubies_dir: nil , **untyped ) -> void
254
+ def initialize : (String name, target: String , src: untyped , ?toolchain: Toolchain? , ?build_dir: String? , ?rubies_dir: String? , **untyped ) -> void
256
255
def hexdigest : -> String
257
256
end
258
257
end
0 commit comments