-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(web-kv): reorganize and add README.md
Signed-off-by: Roman Volosatovs <[email protected]>
- Loading branch information
1 parent
5774e2a
commit eb2a536
Showing
5 changed files
with
55 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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,23 @@ | ||
# `wasi-keyvalue` in the Web | ||
|
||
This example shows a Web app using `wasi:keyvalue` implementation provided by the server via WebTransport using wRPC. | ||
|
||
The server acts as both a direct implementor of `wasi:keyvalue` and a "proxy", which can delegate `wasi:keyvalue` calls issued by the Web client to other `wasi:keyvalue` implementations via various transports supported by wRPC. | ||
|
||
## Runing | ||
|
||
With `cargo`: | ||
|
||
``` | ||
cargo run -p wasi-keyvalue-web | ||
``` | ||
|
||
## `wasi-keyvalue` plugins | ||
|
||
To invoke other wRPC `wasi:keyvalue` plugins in "proxy" mode, for example TCP, try: | ||
|
||
``` | ||
cargo run -p wasi-keyvalue-tcp-server | ||
``` | ||
|
||
And select `wRPC/TCP` as the protocol in the UI |
This file contains 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "web-rust-keyvalue" | ||
name = "wasi-keyvalue-web" | ||
version = "0.1.0" | ||
|
||
authors.workspace = true | ||
|
This file contains 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
File renamed without changes.