Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit deletes most of the abi module from the wit-parser crate. This functionality is entirely untested in this repository and was originally intended for wit-bindgen-style generators. In thinking about bytecodealliance/wit-bindgen#622 I'm going to want to make some invasive changes to this and I'd rather develop everything close to the source rather than across two repositories.

My plan is to move all this code upstream into the wit-bindgen-core crate in the wit-bindgen repository. Which is to say this is the first half of moving the code, deleting the source here, and I'll make a follow-up PR to re-add all this code into wit-bindgen-core so all current consumers will continue to work and/or can switch to depending on wit-bindgen-core to preserve the functionality.

This commit deletes most of the `abi` module from the `wit-parser`
crate. This functionality is entirely untested in this repository and
was originally intended for `wit-bindgen`-style generators. In thinking
about bytecodealliance/wit-bindgen#622 I'm going to want to make some
invasive changes to this and I'd rather develop everything close to the
source rather than across two repositories.

My plan is to move all this code upstream into the `wit-bindgen-core`
crate in the `wit-bindgen` repository. Which is to say this is the first
half of moving the code, deleting the source here, and I'll make a
follow-up PR to re-add all this code into `wit-bindgen-core` so all
current consumers will continue to work and/or can switch to depending
on `wit-bindgen-core` to preserve the functionality.
Copy link
Contributor

@pchickey pchickey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@alexcrichton alexcrichton merged commit 6684a5b into bytecodealliance:main Jul 26, 2023
@alexcrichton alexcrichton deleted the delete-parser-abi branch July 26, 2023 23:57
alexcrichton added a commit to alexcrichton/wit-bindgen that referenced this pull request Aug 7, 2023
This commit is the dual of bytecodealliance/wasm-tools#1149 where the
code is being moved from the `wit-parser` crate into this repository
where it's mainly developed. This commit adds a `wit_bindgen_core::abi`
module with the same contents as before with small refactorings to avoid
inherent methods on `Resolve`.

Note that this temporarily switches to a git dependency for the
wasm-tools family of crates which will be reverted back to a crates.io
dependency one they're published.
alexcrichton added a commit to bytecodealliance/wit-bindgen that referenced this pull request Aug 18, 2023
* Remove reliance on `wit_parser::abi`

This commit is the dual of bytecodealliance/wasm-tools#1149 where the
code is being moved from the `wit-parser` crate into this repository
where it's mainly developed. This commit adds a `wit_bindgen_core::abi`
module with the same contents as before with small refactorings to avoid
inherent methods on `Resolve`.

Note that this temporarily switches to a git dependency for the
wasm-tools family of crates which will be reverted back to a crates.io
dependency one they're published.

* Update dependencies to `main`
alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Aug 18, 2023
Release latest changes such as:

* `wasm-tools compose` now supports `-t` (bytecodealliance#1148)
* The `abi` module is removed from the `wit-parser` crate (bytecodealliance#1149, bytecodealliance#1159)
* Fix validation of lowered functions in the component model (bytecodealliance#1150)
* Fix a panic decoding WIT from a component (bytecodealliance#1157)
* Add text format and printing support for `dylink.0` (bytecodealliance#1135)
* Support shared-everything linking in `wasm-tools component new` (bytecodealliance#1133)
* Printing a WIT document now prints comments as well (bytecodealliance#1167)
* Disallow `(borrow $t)` in component function results (bytecodealliance#1162)
peterhuene pushed a commit that referenced this pull request Aug 18, 2023
Release latest changes such as:

* `wasm-tools compose` now supports `-t` (#1148)
* The `abi` module is removed from the `wit-parser` crate (#1149, #1159)
* Fix validation of lowered functions in the component model (#1150)
* Fix a panic decoding WIT from a component (#1157)
* Add text format and printing support for `dylink.0` (#1135)
* Support shared-everything linking in `wasm-tools component new` (#1133)
* Printing a WIT document now prints comments as well (#1167)
* Disallow `(borrow $t)` in component function results (#1162)
rvolosatovs pushed a commit to bytecodealliance/wrpc that referenced this pull request May 23, 2024
* Remove reliance on `wit_parser::abi`

This commit is the dual of bytecodealliance/wasm-tools#1149 where the
code is being moved from the `wit-parser` crate into this repository
where it's mainly developed. This commit adds a `wit_bindgen_core::abi`
module with the same contents as before with small refactorings to avoid
inherent methods on `Resolve`.

Note that this temporarily switches to a git dependency for the
wasm-tools family of crates which will be reverted back to a crates.io
dependency one they're published.

* Update dependencies to `main`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants