Skip to content

Commit d036463

Browse files
committed
add a /proxy route that uses an outgoing-request
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent f26f646 commit d036463

6 files changed

Lines changed: 638 additions & 14 deletions

File tree

guest/Cargo.lock

Lines changed: 197 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

guest/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "sample-wasi-http-rust"
3+
version = "0.0.0"
4+
edition = "2024"
5+
publish = false
6+
7+
[lib]
8+
crate-type = ["cdylib"]
9+
10+
[package.metadata.component]
11+
package = "component:sample-wasi-http-rust"
12+
# This tells cargo-component to use a special adapter, which doesn't depend on
13+
# `get-environment` or other things not present in the proxy world.
14+
proxy = true
15+
16+
[dependencies]
17+
wit-bindgen-rt = { version = "0.44.0", features = ["bitflags"] }
18+
wstd = "0.5.4"

0 commit comments

Comments
 (0)