-
Notifications
You must be signed in to change notification settings - Fork 5.3k
wasm: Add Wasmtime as a new runtime #13932
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ae297be
wasm: add wasmtime runtime
mathetake ac09b65
add build files for wasmtime/c-api
mathetake 3f62cc6
fix doc checks
mathetake 6c37091
update proxy-wasm-cpp-host
mathetake 4b4f8b2
remove unnecessary wasmtime features
mathetake eb72994
add wasmtime to dictionary
mathetake a67720a
define ENVOY_WASM_WASMTIME
mathetake 893a914
define=wasmtime in bazel.compile_time_options
mathetake 28aefc4
fix format
mathetake a871b14
update wasmtime to 0.21.0
mathetake b156df5
use wasm-c-api archive
mathetake 6a8d023
Update cpp-host
mathetake 58e0a03
review: wasmtime -> Wasmtime, update proxy-wasm-cpp-host
mathetake 660257a
review: drop "all", cleanup BUILD file.
PiotrSikora b066ad8
review: add missing file.
PiotrSikora e0c3cf1
Update proxy-wasm-cpp-host
mathetake 6d83c0f
review: don't build V8 with other runtimes.
PiotrSikora 21de783
review: update examples.
PiotrSikora c7a7eb9
Merge pull request #1 from PiotrSikora/wasmtime-all
mathetake b7d6930
Update proxy-wasm-cpp-host: point to origin
mathetake 2c5dc57
Update release date of proxy-wasm-cpp-host
mathetake ec4d2dd
Add wasmtime test in bazel.compile_time_options CI target
mathetake b00c82a
Review: clean up proxy-wasm-cpp-host BUILD file
mathetake c39664e
Fix style
mathetake e4fa56e
Review: specify wasm runtimes explicitly in ci, and fix release dates…
mathetake 6ed3a2b
Fix typo in bazel build in bazel.compile_time_options target
mathetake c779e33
Fix typo in bazel build in bazel.compile_time_options target: 2
mathetake 1a6bf15
Style: remove unnecessary white spaces
mathetake 4b314c5
Review: fix release dates of proxy-wasm-cpp-{host,sdk}
mathetake 2dbbd26
Review: Build wasmtime first
mathetake 2e38d03
Review: Remove bazel build for wasmtime
mathetake 98f7f3e
Merge upstream
mathetake 0210faa
Review: Add comment about wasm-c-api's version
mathetake File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| cc_library( | ||
| name = "wasmtime_lib", | ||
| hdrs = [ | ||
| "include/wasm.h", | ||
| ], | ||
| defines = [ | ||
| "ENVOY_WASM_WASMTIME", | ||
| ], | ||
| include_prefix = "wasmtime", | ||
| deps = [ | ||
| "@com_github_wasmtime//:rust_c_api", | ||
| ], | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library") | ||
| load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| cc_library( | ||
| name = "helpers_lib", | ||
| srcs = [ | ||
| "crates/runtime/src/helpers.c", | ||
| ], | ||
| visibility = ["//visibility:private"], | ||
| ) | ||
|
|
||
| rust_library( | ||
| name = "rust_c_api", | ||
| srcs = glob(["crates/c-api/src/**/*.rs"]), | ||
| crate_root = "crates/c-api/src/lib.rs", | ||
| crate_type = "staticlib", | ||
| edition = "2018", | ||
| proc_macro_deps = [ | ||
| "@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros", | ||
| ], | ||
| deps = [ | ||
| ":helpers_lib", | ||
| "@proxy_wasm_cpp_host//bazel/cargo:anyhow", | ||
| "@proxy_wasm_cpp_host//bazel/cargo:env_logger", | ||
| "@proxy_wasm_cpp_host//bazel/cargo:once_cell", | ||
| "@proxy_wasm_cpp_host//bazel/cargo:wasmtime", | ||
| ], | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.