Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion plugins/bazel/cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ regex = "1.9"
url = "2.4"
# Pin version 2.0.0 until rust-version includes https://github.com/rust-lang/rust/issues/119128
lol_html = "=2.0.0"
uuid = { version = "1.12.1", features = [ "v4" ] }
uuid = { version = "1.12.1", features = [ "v4", "serde" ] }
chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.140"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion plugins/samples/docs_plugin_config/tests.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
my plugin config
my plugin config
2 changes: 1 addition & 1 deletion plugins/samples/docs_plugin_config/tests.textpb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test {
name: "CheckSecret"
request_headers {
result {
log { regex: ".*secret: my plugin config\n" }
log { regex: ".*secret: my plugin config" }
}
}
}
24 changes: 24 additions & 0 deletions plugins/samples/mcp_translation/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
load("//:plugins.bzl", "proxy_wasm_plugin_cpp", "proxy_wasm_plugin_go", "proxy_wasm_plugin_rust", "proxy_wasm_tests")

licenses(["notice"]) # Apache 2

proxy_wasm_plugin_rust(
name = "plugin_rust.wasm",
srcs = ["plugin.rs"],
deps = [
"//bazel/cargo/remote:log",
"//bazel/cargo/remote:proxy-wasm",
"//bazel/cargo/remote:serde",
"//bazel/cargo/remote:serde_json",
"//bazel/cargo/remote:chrono",
"//bazel/cargo/remote:uuid",
],
)

proxy_wasm_tests(
name = "tests",
plugins = [
":plugin_rust.wasm",
],
tests = ":tests.textpb",
)
Loading