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

Implement support for exported resources in bindgen! #7050

Merged
merged 2 commits into from
Sep 15, 2023

Commits on Sep 15, 2023

  1. Implement support for exported resources in bindgen!

    This commit updates the `wasmtime::component::bindgen!` to support
    exported resources. Exported resources are themselves always modeled as
    `ResourceAny` at runtime and are required to perform dynamic type checks
    to ensure that the right type of resource is passed in. Exported
    resources have their own `GuestXXX` structure exported to namespace all
    of their methods. Otherwise, like imports, there's not a whole lot of
    special treatment of exported resources.
    alexcrichton committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    781fddb View commit details
    Browse the repository at this point in the history
  2. Work around heck issue

    Looks like `to_snake_case` behaves differently if the `unicode` feature
    is enabled or not so bypass that entirely.
    alexcrichton committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    878b653 View commit details
    Browse the repository at this point in the history