You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9af62ea
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,6 +407,9 @@ wasm-tools component new target/gen.wasm -o target/gen.component.wasm
407
407
You may use `--gen-dir` to specify which package should be responsible for the exportation. The default is `gen` as mentioned above.
408
408
This can be useful having one project that exports multiple worlds.
409
409
410
+
Generated projects use `moon.mod` and `moon.pkg`, with WebAssembly export mappings
411
+
configured in the export package's `moon.pkg`.
412
+
410
413
When using `wit-bindgen moonbit`, you may use `--derive-show` or `--derive-eq` to derive `Show` or `Eq` traits for all types.
411
414
You may also use `--derive-error`, which will make types containing `Error` as error types in MoonBit.
412
415
@@ -424,7 +427,7 @@ toolchain are mixed with new bindings, components may still compile but fail at
424
427
runtime with corrupted strings/bytes or traps.
425
428
426
429
You will find the files to be modified with the name `**/stub.mbt`.
427
-
To avoid touching the files during regeneration (including `moon.pkg.json` or `moon.mod.json`) you may use `--ignore-stub`.
430
+
To avoid touching the files during regeneration (including `moon.pkg` or `moon.mod`) you may use `--ignore-stub`.
428
431
429
432
/!\ MoonBit is still evolving, so please check out the [Weekly Updates](https://www.moonbitlang.com/weekly-updates/) for any breaking changes or deprecations.
0 commit comments