Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop generating the bindings file for projects without wit files and dependencies #318

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

iawia002
Copy link
Contributor

@iawia002 iawia002 commented Jul 4, 2024

Such as the case described in #314.

cc @calvinrp

close #314

@calvinrp
Copy link
Collaborator

calvinrp commented Jul 9, 2024

Do you recommend a good way to test locally?

@iawia002
Copy link
Contributor Author

Sure, a common scenario is using wasi-rs directly to build wasm programs. In this case, we directly reference the bindings generated by wasi-rs and do not have our wit files. In this scenario, an "empty" bindings file should not be generated.

Another scenario is directly using a wasm http client library such as waki. We don't have our own wit files, but an "empty" bindings file is generated.

You can directly use the code of the above two examples to test it locally.

@calvinrp calvinrp merged commit f16644d into bytecodealliance:main Jul 31, 2024
6 checks passed
mergify bot referenced this pull request in andrzejressel/pulumi-wasm Jul 31, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [cargo-component](https://togithub.com/bytecodealliance/cargo-component) | minor | `0.14.0` -> `0.15.0` |

---

### Release Notes

<details>
<summary>bytecodealliance/cargo-component (cargo-component)</summary>

### [`v0.15.0`](https://togithub.com/bytecodealliance/cargo-component/releases/tag/v0.15.0)

[Compare Source](https://togithub.com/bytecodealliance/cargo-component/compare/v0.14.0...v0.15.0)

#### What's Changed

-   set dev version to 0.15.0-dev by [@&#8203;calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/320](https://togithub.com/bytecodealliance/cargo-component/pull/320)
-   Pull adapters from crates.io instead of vendoring by [@&#8203;alexcrichton](https://togithub.com/alexcrichton) in [https://github.com/bytecodealliance/cargo-component/pull/323](https://togithub.com/bytecodealliance/cargo-component/pull/323)
-   Stop generating the bindings file for projects without wit files and dependencies by [@&#8203;iawia002](https://togithub.com/iawia002) in [https://github.com/bytecodealliance/cargo-component/pull/318](https://togithub.com/bytecodealliance/cargo-component/pull/318)

**Full Changelog**: bytecodealliance/cargo-component@v0.14.0...v0.15.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/andrzejressel/pulumi-wasm).
@iawia002 iawia002 deleted the generate-bindings branch August 1, 2024 00:55
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.

cargo component build always produces a bindings.rs file
2 participants