Repository navigation
json-from-wast: name emitted files after the output stem - #2542
alexcrichton merged 1 commit into
Conversation
|
Thanks! The CI failure might be some CRLF thing, but I'm not entirely sure. Out of curiosity though, could you explain a bit more why you want an exact match? Naively it seems good to strip the leading |
|
It was just to match wast2json more closely, but your question made me check who consumes this, and chicory (which runs json-from-wast) parses the i32/i64 values as signed, so the unsigned change would break their |
|
That sounds reasonable to me, yeah 👍 |
The emitted `*.wasm` and `*.wat` files used the source `.wast` stem, so `-o out.json` wrote `<source>.0.wasm` instead of `out.0.wasm` like `wast2json`. Derive the stem from the `-o` output path when present and fall back to the source stem otherwise. Refs bytecodealliance#1471.
ff56368 to
80bdb63
Compare
|
Trimmed this to just the filename change and reverted the int and name bits along with the snapshots. The Windows fail was the cli test runner handing a backslash path to |
e6e1797
wasm-tools 1.253.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * Limit the element count of fixed-length lists by @eyupcanakman in bytecodealliance/wasm-tools#2537 * wasmparser: Rename BinaryReaderError to Error by @lann in bytecodealliance/wasm-tools#2546 * fix: signature lowering for strings and lists on modules with 64bit memory by @christoph-dfinity in bytecodealliance/wasm-tools#2544 * json-from-wast: name emitted files after the output stem by @eyupcanakman in bytecodealliance/wasm-tools#2542 * Refactor `KebabStr` to not require unsafe code by @alexcrichton in bytecodealliance/wasm-tools#2548 * Add CustomSectionReader -> BinaryReader conversion by @WorldSEnder in bytecodealliance/wasm-tools#2550 * wasmparser: Add Error::missing_wasm_feature by @lann in bytecodealliance/wasm-tools#2549 * fix: use ptr-sized type when returning via ptr indirection under memory64 by @christoph-dfinity in bytecodealliance/wasm-tools#2553 * Synchronize threading intrinsics with specification by @alexcrichton in bytecodealliance/wasm-tools#2554 * Remove `resource.drop async` by @alexcrichton in bytecodealliance/wasm-tools#2552 * Initial work for `versionsuffix` and `external-id` by @alexcrichton in bytecodealliance/wasm-tools#2555 * Make parsing errors downcastable by @PhoebeSzmucer in bytecodealliance/wasm-tools#2557 * Add `SourceMap::resolve_span` for resolving global span locations by @PhoebeSzmucer in bytecodealliance/wasm-tools#2559 * Render error by @PhoebeSzmucer in bytecodealliance/wasm-tools#2560 * Support `external-id` on more items by @alexcrichton in bytecodealliance/wasm-tools#2558 * Release wasm-tools 1.253.0 by @github-actions[bot] in bytecodealliance/wasm-tools#2561 ## New Contributors * @christoph-dfinity made their first contribution in bytecodealliance/wasm-tools#2544 **Full Changelog**: https://github.com/bytecodealliance/wasm-tools/compare/v1.252.0...v1.253.0</pre> <p>View the full release notes at <a href="https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.253.0">https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.253.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!13746
json-from-wastnamed its emitted*.wasmand*.watfiles after the source.waststem, so-o out.jsonstill wrote<source>.0.wasmrather thanout.0.wasmthe waywast2jsondoes. This derives the stem from the-ooutput path when one is given and falls back to the source stem otherwise. Added a cli test for both cases.Refs #1471.