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

Host resources wit-bindgen code generation #6886

Merged
merged 29 commits into from
Aug 30, 2023

Commits on Aug 22, 2023

  1. added trap to resource dtor

    silesmo committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    a860ec6 View commit details
    Browse the repository at this point in the history
  2. basic resources

    silesmo committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    cf3e7e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Configuration menu
    Copy the full SHA
    a2ebcc9 View commit details
    Browse the repository at this point in the history
  2. fixed static function

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    b7e5d7a View commit details
    Browse the repository at this point in the history
  3. fixed trait signature

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    a898238 View commit details
    Browse the repository at this point in the history
  4. basic resources

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    d795bf5 View commit details
    Browse the repository at this point in the history
  5. added result to resource drop

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    17f0a87 View commit details
    Browse the repository at this point in the history
  6. reverted formatting

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    7c7b31e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f7badea View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    90a7f54 View commit details
    Browse the repository at this point in the history
  9. fixed merge issue

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    dbd3252 View commit details
    Browse the repository at this point in the history
  10. fixed another merge issue

    silesmo committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    73aefb6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d75f8a8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0a1b555 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3745b67 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ecfe9d4 View commit details
    Browse the repository at this point in the history
  15. Restore old-style of printing types in bindgen

    Avoid collecting resources-as-we-go in favor of doing that more
    declaratively elsewhere. Additionally handle imported-vs-exported
    resource via the order that interfaces are visited.
    alexcrichton committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    c08c6b7 View commit details
    Browse the repository at this point in the history
  16. Update the shape of resource traits:

    * Use `&mut self` instead of `StoreContextMut`
    * Make resource traits as supertraits of the `Host` trait generated for
      each resource.
    * More uniformly handle types/returns with resource methods.
    * Fix derivations of `Clone` and `Copy` for where handles are contained.
    alexcrichton committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    e965858 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a94a9f8 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    35d7184 View commit details
    Browse the repository at this point in the history
  19. Merge pull request #1 from alexcrichton/resources-basic

    Updates to host resources and `bindgen!`
    
    resources in exported functions arguments break with this commit and will be fixed in following commits.
    silesmo authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    caef98f View commit details
    Browse the repository at this point in the history
  20. Remove now-duplicate function

    This is now the same as the preexisting `generate_function_trait_sig`
    alexcrichton committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    aec8585 View commit details
    Browse the repository at this point in the history
  21. Fix classifying handles as imported or exported

    This determination happens by looking up the origin definition of a
    resource, not the leaf possibly-aliased type.
    alexcrichton committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    96036b2 View commit details
    Browse the repository at this point in the history
  22. Fix chains-of-use of resources

    Resources don't have their representation asserted since the bare type
    itself doesn't implement `ComponentType`, but otherwise generate type
    aliases the same way as other type aliases.
    alexcrichton committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    7e4117c View commit details
    Browse the repository at this point in the history
  23. Revert Cargo.lock changes

    No need to update `wit-bindgen` to 0.10.0 just yet, that'll happen in a
    future update if necessary.
    alexcrichton committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    0a2e67f View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0589f55 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Merge pull request #2 from alexcrichton/resources-basic

    More resources-related changes
    silesmo authored Aug 24, 2023
    Configuration menu
    Copy the full SHA
    ecaa9aa View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Configuration menu
    Copy the full SHA
    28ba525 View commit details
    Browse the repository at this point in the history
  2. fixed merge issue

    silesmo committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    1059eac View commit details
    Browse the repository at this point in the history