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

feat(c-api) Introduce the middleware (specifically metering) C API #2103

Merged
merged 37 commits into from
Mar 5, 2021

Commits on Feb 9, 2021

  1. 1 Configuration menu
    Copy the full SHA
    197d0f7 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2021

  1. Configuration menu
    Copy the full SHA
    d660943 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bc502b View commit details
    Browse the repository at this point in the history
  3. chore(c-api) Update headers.

    Hywan committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    fd5a9b5 View commit details
    Browse the repository at this point in the history
  4. temp

    Hywan committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    cbbdfda View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0f43391 View commit details
    Browse the repository at this point in the history
  6. fix(c-api) Fix merge conflict.

    Hywan committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    db4286d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8b30ae9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cb02694 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3b0572f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e67fd6a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8f1a4f3 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2021

  1. Configuration menu
    Copy the full SHA
    fb973b2 View commit details
    Browse the repository at this point in the history
  2. feat(c-api) Rename wasmer_module_middleware_t to `wasmer_middleware…

    …_t`.
    
    Also, move it into the `unstable::middleware` module.
    Hywan committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    31669b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    798dd88 View commit details
    Browse the repository at this point in the history
  4. doc(middlewares) Format.

    Hywan committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    e014807 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    19c0412 View commit details
    Browse the repository at this point in the history
  6. chore(c-api) Update headers.

    Hywan committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    0c4e063 View commit details
    Browse the repository at this point in the history
  7. !tmp

    Hywan committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    902f58e View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2021

  1. feat(middleware) Relax F in Metering<F> by removing Clone and `…

    …Copy`.
    
    The `F` parameter for `Metering`, and therefore for
    `FunctionMetering`, no longer requires to implement the `Clone` and
    `Copy` traits.
    Hywan committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    487c964 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7780423 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2c4f1e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0163b33 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e7c78e7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    072066a View commit details
    Browse the repository at this point in the history
  7. doc(c-api) Fix typos.

    Hywan committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    f0024c5 View commit details
    Browse the repository at this point in the history
  8. feat(c-api) Simplify the metering API.

    This patch removes the following type and functions:
    
    * `wasmer_metering_points_t`,
    * `wasmer_metering_points_delete`,
    * `wasmer_metering_points_is_exhausted`,
    * `wasmer_metering_points_t`,
    * `wasmer_metering_points_unwrap_or`.
    
    Now, `wasmer_metering_get_remaining_points` returns the number of
    points, with zero to represent `MeteringPoints::Exhausted`.
    
    The API is greatly simplified as there is no longer need to allocate
    and deallocate a `wasmer_metering_points_t` type.
    Hywan committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    4f2ba72 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f233ca4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    df0bdeb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2d20f44 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4136536 View commit details
    Browse the repository at this point in the history
  13. chore(c-api) Update headers.

    Hywan committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    96524b5 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8517547 View commit details
    Browse the repository at this point in the history
  15. feat(c-api) Return ~1 if metering are exhausted. Add `wasmer_metering…

    …_points_are_exhausted`.
    Hywan committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    1700c2d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    06a00d9 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d3f7b7e View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2021

  1. Configuration menu
    Copy the full SHA
    21ea09f View commit details
    Browse the repository at this point in the history