@betty-blocks/cli 25.109.0-beta.1 → 26.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/app-functions/wasm-template/.wasm-functions +0 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.lock +449 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.toml +10 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/Justfile +6 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/function.json +35 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/src/lib.rs +19 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/wit/world.wit +13 -0
- package/build/src/bb-blocks-new.js +5361 -2181
- package/build/src/bb-blocks-publish.js +11493 -18303
- package/build/src/bb-blocks-release.js +65 -46
- package/build/src/bb-blocks.js +32 -32
- package/build/src/bb-bundle-init.js +1542 -912
- package/build/src/bb-bundle.js +35 -32
- package/build/src/bb-components-build.js +34965 -7598
- package/build/src/bb-components-create.js +1542 -912
- package/build/src/bb-components-generate.js +1542 -912
- package/build/src/bb-components-publish-bundle.js +1519 -889
- package/build/src/bb-components-publish.js +1522 -892
- package/build/src/bb-components-serve.js +1524 -894
- package/build/src/bb-components.js +32 -32
- package/build/src/bb-functions-bump.js +6047 -2733
- package/build/src/bb-functions-init.js +100 -593
- package/build/src/bb-functions-login.js +65 -46
- package/build/src/bb-functions-logout.js +65 -46
- package/build/src/bb-functions-new.js +5464 -2195
- package/build/src/bb-functions-publish.js +15134 -76022
- package/build/src/bb-functions-validate.js +7262 -3950
- package/build/src/bb-functions.js +35 -37
- package/build/src/bb.js +76 -74
- package/package.json +41 -42
- package/assets/app-functions/templates/test/helpers.js +0 -3
- package/assets/app-functions/templates/test/say-hello.test.js +0 -4
- package/assets/functions/packer/package.json +0 -9
- package/assets/functions/packer/webpack.config.js +0 -12
- package/assets/functions/templates/functions.json +0 -14
- package/assets/functions/templates/package.json +0 -11
- package/assets/functions/templates/src/all-users.js +0 -14
- package/assets/functions/templates/src/get-json.js +0 -9
- package/assets/functions/templates/src/index.js +0 -5
- package/assets/functions/templates/src/say-hello.js +0 -13
- package/build/src/bb-functions-build.js +0 -4285
- package/src/bb.ts +0 -31
- /package/assets/app-functions/{templates → js-template}/.app-functions +0 -0
- /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/function.json +0 -0
- /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/index.js +0 -0
- /package/assets/app-functions/{templates → js-template}/package.json +0 -0
|
File without changes
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "anyhow"
|
|
7
|
+
version = "1.0.100"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "2.9.4"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "equivalent"
|
|
19
|
+
version = "1.0.2"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "foldhash"
|
|
25
|
+
version = "0.1.5"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "futures"
|
|
31
|
+
version = "0.3.31"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"futures-channel",
|
|
36
|
+
"futures-core",
|
|
37
|
+
"futures-executor",
|
|
38
|
+
"futures-io",
|
|
39
|
+
"futures-sink",
|
|
40
|
+
"futures-task",
|
|
41
|
+
"futures-util",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "futures-channel"
|
|
46
|
+
version = "0.3.31"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
|
|
49
|
+
dependencies = [
|
|
50
|
+
"futures-core",
|
|
51
|
+
"futures-sink",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "futures-core"
|
|
56
|
+
version = "0.3.31"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "futures-executor"
|
|
62
|
+
version = "0.3.31"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
|
|
65
|
+
dependencies = [
|
|
66
|
+
"futures-core",
|
|
67
|
+
"futures-task",
|
|
68
|
+
"futures-util",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "futures-io"
|
|
73
|
+
version = "0.3.31"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "futures-macro"
|
|
79
|
+
version = "0.3.31"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"proc-macro2",
|
|
84
|
+
"quote",
|
|
85
|
+
"syn",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "futures-sink"
|
|
90
|
+
version = "0.3.31"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "futures-task"
|
|
96
|
+
version = "0.3.31"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "futures-util"
|
|
102
|
+
version = "0.3.31"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"futures-channel",
|
|
107
|
+
"futures-core",
|
|
108
|
+
"futures-io",
|
|
109
|
+
"futures-macro",
|
|
110
|
+
"futures-sink",
|
|
111
|
+
"futures-task",
|
|
112
|
+
"memchr",
|
|
113
|
+
"pin-project-lite",
|
|
114
|
+
"pin-utils",
|
|
115
|
+
"slab",
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
[[package]]
|
|
119
|
+
name = "hashbrown"
|
|
120
|
+
version = "0.15.5"
|
|
121
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
+
checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
|
|
123
|
+
dependencies = [
|
|
124
|
+
"foldhash",
|
|
125
|
+
]
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "hashbrown"
|
|
129
|
+
version = "0.16.0"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
|
|
132
|
+
|
|
133
|
+
[[package]]
|
|
134
|
+
name = "heck"
|
|
135
|
+
version = "0.5.0"
|
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
138
|
+
|
|
139
|
+
[[package]]
|
|
140
|
+
name = "id-arena"
|
|
141
|
+
version = "2.2.1"
|
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
143
|
+
checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005"
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "indexmap"
|
|
147
|
+
version = "2.11.4"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
|
|
150
|
+
dependencies = [
|
|
151
|
+
"equivalent",
|
|
152
|
+
"hashbrown 0.16.0",
|
|
153
|
+
"serde",
|
|
154
|
+
"serde_core",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "itoa"
|
|
159
|
+
version = "1.0.15"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "leb128fmt"
|
|
165
|
+
version = "0.1.0"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
|
168
|
+
|
|
169
|
+
[[package]]
|
|
170
|
+
name = "log"
|
|
171
|
+
version = "0.4.28"
|
|
172
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
+
checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "memchr"
|
|
177
|
+
version = "2.7.5"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "once_cell"
|
|
183
|
+
version = "1.21.3"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "pin-project-lite"
|
|
189
|
+
version = "0.2.16"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "pin-utils"
|
|
195
|
+
version = "0.1.0"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
|
198
|
+
|
|
199
|
+
[[package]]
|
|
200
|
+
name = "prettyplease"
|
|
201
|
+
version = "0.2.37"
|
|
202
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
203
|
+
checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
|
|
204
|
+
dependencies = [
|
|
205
|
+
"proc-macro2",
|
|
206
|
+
"syn",
|
|
207
|
+
]
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "proc-macro2"
|
|
211
|
+
version = "1.0.101"
|
|
212
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
213
|
+
checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
|
|
214
|
+
dependencies = [
|
|
215
|
+
"unicode-ident",
|
|
216
|
+
]
|
|
217
|
+
|
|
218
|
+
[[package]]
|
|
219
|
+
name = "quote"
|
|
220
|
+
version = "1.0.40"
|
|
221
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
222
|
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
|
|
223
|
+
dependencies = [
|
|
224
|
+
"proc-macro2",
|
|
225
|
+
]
|
|
226
|
+
|
|
227
|
+
[[package]]
|
|
228
|
+
name = "ryu"
|
|
229
|
+
version = "1.0.20"
|
|
230
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
231
|
+
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
|
|
232
|
+
|
|
233
|
+
[[package]]
|
|
234
|
+
name = "sayhello"
|
|
235
|
+
version = "1.0.0"
|
|
236
|
+
dependencies = [
|
|
237
|
+
"wit-bindgen",
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
[[package]]
|
|
241
|
+
name = "semver"
|
|
242
|
+
version = "1.0.27"
|
|
243
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
244
|
+
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
|
|
245
|
+
|
|
246
|
+
[[package]]
|
|
247
|
+
name = "serde"
|
|
248
|
+
version = "1.0.226"
|
|
249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
250
|
+
checksum = "0dca6411025b24b60bfa7ec1fe1f8e710ac09782dca409ee8237ba74b51295fd"
|
|
251
|
+
dependencies = [
|
|
252
|
+
"serde_core",
|
|
253
|
+
]
|
|
254
|
+
|
|
255
|
+
[[package]]
|
|
256
|
+
name = "serde_core"
|
|
257
|
+
version = "1.0.226"
|
|
258
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "ba2ba63999edb9dac981fb34b3e5c0d111a69b0924e253ed29d83f7c99e966a4"
|
|
260
|
+
dependencies = [
|
|
261
|
+
"serde_derive",
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "serde_derive"
|
|
266
|
+
version = "1.0.226"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "8db53ae22f34573731bafa1db20f04027b2d25e02d8205921b569171699cdb33"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"proc-macro2",
|
|
271
|
+
"quote",
|
|
272
|
+
"syn",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "serde_json"
|
|
277
|
+
version = "1.0.145"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
|
|
280
|
+
dependencies = [
|
|
281
|
+
"itoa",
|
|
282
|
+
"memchr",
|
|
283
|
+
"ryu",
|
|
284
|
+
"serde",
|
|
285
|
+
"serde_core",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "slab"
|
|
290
|
+
version = "0.4.11"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "syn"
|
|
296
|
+
version = "2.0.106"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"proc-macro2",
|
|
301
|
+
"quote",
|
|
302
|
+
"unicode-ident",
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
[[package]]
|
|
306
|
+
name = "unicode-ident"
|
|
307
|
+
version = "1.0.19"
|
|
308
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
309
|
+
checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
|
|
310
|
+
|
|
311
|
+
[[package]]
|
|
312
|
+
name = "unicode-xid"
|
|
313
|
+
version = "0.2.6"
|
|
314
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
315
|
+
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
|
316
|
+
|
|
317
|
+
[[package]]
|
|
318
|
+
name = "wasm-encoder"
|
|
319
|
+
version = "0.230.0"
|
|
320
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
+
checksum = "d4349d0943718e6e434b51b9639e876293093dca4b96384fb136ab5bd5ce6660"
|
|
322
|
+
dependencies = [
|
|
323
|
+
"leb128fmt",
|
|
324
|
+
"wasmparser",
|
|
325
|
+
]
|
|
326
|
+
|
|
327
|
+
[[package]]
|
|
328
|
+
name = "wasm-metadata"
|
|
329
|
+
version = "0.230.0"
|
|
330
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
|
+
checksum = "1a52e010df5494f4289ccc68ce0c2a8c17555225a5e55cc41b98f5ea28d0844b"
|
|
332
|
+
dependencies = [
|
|
333
|
+
"anyhow",
|
|
334
|
+
"indexmap",
|
|
335
|
+
"wasm-encoder",
|
|
336
|
+
"wasmparser",
|
|
337
|
+
]
|
|
338
|
+
|
|
339
|
+
[[package]]
|
|
340
|
+
name = "wasmparser"
|
|
341
|
+
version = "0.230.0"
|
|
342
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
+
checksum = "808198a69b5a0535583370a51d459baa14261dfab04800c4864ee9e1a14346ed"
|
|
344
|
+
dependencies = [
|
|
345
|
+
"bitflags",
|
|
346
|
+
"hashbrown 0.15.5",
|
|
347
|
+
"indexmap",
|
|
348
|
+
"semver",
|
|
349
|
+
]
|
|
350
|
+
|
|
351
|
+
[[package]]
|
|
352
|
+
name = "wit-bindgen"
|
|
353
|
+
version = "0.42.1"
|
|
354
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
355
|
+
checksum = "fa5b79cd8cb4b27a9be3619090c03cbb87fe7b1c6de254b4c9b4477188828af8"
|
|
356
|
+
dependencies = [
|
|
357
|
+
"wit-bindgen-rt",
|
|
358
|
+
"wit-bindgen-rust-macro",
|
|
359
|
+
]
|
|
360
|
+
|
|
361
|
+
[[package]]
|
|
362
|
+
name = "wit-bindgen-core"
|
|
363
|
+
version = "0.42.1"
|
|
364
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
365
|
+
checksum = "e35e550f614e16db196e051d22b0d4c94dd6f52c90cb1016240f71b9db332631"
|
|
366
|
+
dependencies = [
|
|
367
|
+
"anyhow",
|
|
368
|
+
"heck",
|
|
369
|
+
"wit-parser",
|
|
370
|
+
]
|
|
371
|
+
|
|
372
|
+
[[package]]
|
|
373
|
+
name = "wit-bindgen-rt"
|
|
374
|
+
version = "0.42.1"
|
|
375
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
376
|
+
checksum = "051105bab12bc78e161f8dfb3596e772dd6a01ebf9c4840988e00347e744966a"
|
|
377
|
+
dependencies = [
|
|
378
|
+
"bitflags",
|
|
379
|
+
"futures",
|
|
380
|
+
"once_cell",
|
|
381
|
+
]
|
|
382
|
+
|
|
383
|
+
[[package]]
|
|
384
|
+
name = "wit-bindgen-rust"
|
|
385
|
+
version = "0.42.1"
|
|
386
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
387
|
+
checksum = "cb1e0a91fc85f4ef70e0b81cd86c2b49539d3cd14766fd82396184aadf8cb7d7"
|
|
388
|
+
dependencies = [
|
|
389
|
+
"anyhow",
|
|
390
|
+
"heck",
|
|
391
|
+
"indexmap",
|
|
392
|
+
"prettyplease",
|
|
393
|
+
"syn",
|
|
394
|
+
"wasm-metadata",
|
|
395
|
+
"wit-bindgen-core",
|
|
396
|
+
"wit-component",
|
|
397
|
+
]
|
|
398
|
+
|
|
399
|
+
[[package]]
|
|
400
|
+
name = "wit-bindgen-rust-macro"
|
|
401
|
+
version = "0.42.1"
|
|
402
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
403
|
+
checksum = "ce69f52c5737705881d5da5a1dd06f47f8098d094a8d65a3e44292942edb571f"
|
|
404
|
+
dependencies = [
|
|
405
|
+
"anyhow",
|
|
406
|
+
"prettyplease",
|
|
407
|
+
"proc-macro2",
|
|
408
|
+
"quote",
|
|
409
|
+
"syn",
|
|
410
|
+
"wit-bindgen-core",
|
|
411
|
+
"wit-bindgen-rust",
|
|
412
|
+
]
|
|
413
|
+
|
|
414
|
+
[[package]]
|
|
415
|
+
name = "wit-component"
|
|
416
|
+
version = "0.230.0"
|
|
417
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
418
|
+
checksum = "b607b15ead6d0e87f5d1613b4f18c04d4e80ceeada5ffa608d8360e6909881df"
|
|
419
|
+
dependencies = [
|
|
420
|
+
"anyhow",
|
|
421
|
+
"bitflags",
|
|
422
|
+
"indexmap",
|
|
423
|
+
"log",
|
|
424
|
+
"serde",
|
|
425
|
+
"serde_derive",
|
|
426
|
+
"serde_json",
|
|
427
|
+
"wasm-encoder",
|
|
428
|
+
"wasm-metadata",
|
|
429
|
+
"wasmparser",
|
|
430
|
+
"wit-parser",
|
|
431
|
+
]
|
|
432
|
+
|
|
433
|
+
[[package]]
|
|
434
|
+
name = "wit-parser"
|
|
435
|
+
version = "0.230.0"
|
|
436
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
437
|
+
checksum = "679fde5556495f98079a8e6b9ef8c887f731addaffa3d48194075c1dd5cd611b"
|
|
438
|
+
dependencies = [
|
|
439
|
+
"anyhow",
|
|
440
|
+
"id-arena",
|
|
441
|
+
"indexmap",
|
|
442
|
+
"log",
|
|
443
|
+
"semver",
|
|
444
|
+
"serde",
|
|
445
|
+
"serde_derive",
|
|
446
|
+
"serde_json",
|
|
447
|
+
"unicode-xid",
|
|
448
|
+
"wasmparser",
|
|
449
|
+
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "Say Hello",
|
|
3
|
+
"description": "Say Hello to the world",
|
|
4
|
+
"category": "Misc",
|
|
5
|
+
"icon": {
|
|
6
|
+
"name": "ChatIcon",
|
|
7
|
+
"color": "Teal"
|
|
8
|
+
},
|
|
9
|
+
"options": [
|
|
10
|
+
{
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "Text"
|
|
13
|
+
},
|
|
14
|
+
"name": "name",
|
|
15
|
+
"label": "Name",
|
|
16
|
+
"info": "The name that's going to be used to say hello to the world!",
|
|
17
|
+
"advanced": false,
|
|
18
|
+
"configuration": {
|
|
19
|
+
"placeholder": "Betty Blocks"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"meta": {
|
|
24
|
+
"type": "Output",
|
|
25
|
+
"output": {
|
|
26
|
+
"type": "Text"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"name": "greet",
|
|
30
|
+
"label": "As",
|
|
31
|
+
"info": "The resulting greet to the world."
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"yields": "NONE"
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
use crate::exports::betty_blocks::sayhello::sayhello::{Guest, Output};
|
|
2
|
+
|
|
3
|
+
wit_bindgen::generate!({ generate_all });
|
|
4
|
+
|
|
5
|
+
struct Component;
|
|
6
|
+
|
|
7
|
+
impl Guest for Component {
|
|
8
|
+
fn sayhello(name: String) -> Result<Output, String> {
|
|
9
|
+
if name == "oops" {
|
|
10
|
+
Err("Ooops. Something went wrong.".to_string())
|
|
11
|
+
} else {
|
|
12
|
+
Ok(Output {
|
|
13
|
+
greet: format!("Hello, {}", name),
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export! {Component}
|