Skip to content

Commit 9af0165

Browse files
committed
Update to latest upstream deps, fewer patches
1 parent 2f6ad2e commit 9af0165

File tree

3 files changed

+61
-34
lines changed

3 files changed

+61
-34
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,15 @@ Build the WASI component:
3232
Run it via the wasmtime host:
3333

3434
```sh
35-
./client/wasi/run.sh
35+
# Makes a general rest call and gets json response
36+
./client/wasi/run.sh 3
37+
38+
# Call soroban rpc and gets general health info
39+
# Requires XLM_RPC_URL set for the RPC endpoint
40+
./client/wasi/run.sh health
41+
42+
# Call soroban rpc and gets account details
43+
# Requires XLM_RPC_URL set for the RPC endpoint
44+
# Requires XLM_ACCOUNT set for the XLM account to query
45+
./client/wasi/run.sh account
3646
```

client/wasi/wasi/Cargo.lock

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

client/wasi/wasi/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ hyper = { version = "1", features = ["client", "http1"] }
1212
hyper-util = { version = "0.1", features = ["tokio"] }
1313
http-body-util = "0.1"
1414
bytes = "1"
15-
jsonrpsee-http-client = { git = "https://github.com/warp-driver/jsonrpsee", branch = "wasip2-support", default-features = false, features = ["tls-rustcrypto"] }
16-
jsonrpsee-core = { git = "https://github.com/warp-driver/jsonrpsee", branch = "wasip2-support", features = ["client"] }
17-
soroban-rs = { git = "https://github.com/warp-driver/soroban-helpers", branch = "wasip2-support" }
15+
# branch = "wasip2-support"
16+
jsonrpsee-http-client = { git = "https://github.com/warp-driver/jsonrpsee", rev="25175f570a0be4e97a1bd4d7f1d2cbb486551a08", default-features = false, features = ["tls-rustcrypto"] }
17+
jsonrpsee-core = { git = "https://github.com/warp-driver/jsonrpsee", rev="25175f570a0be4e97a1bd4d7f1d2cbb486551a08", features = ["client"] }
18+
soroban-rs = { git = "https://github.com/warp-driver/soroban-helpers", rev = "55f1b11dcb77f64b64afae0437421e5378d07605" } # branch = "wasip2-support"
1819
serde = { version = "1", features = ["derive"] }
1920
serde_json = "1"
2021

21-
# mio with wasip2 support (not yet released to crates.io)
22-
mio = { git = "https://github.com/tokio-rs/mio", branch = "master", features = ["os-poll", "net"] }
22+
# mio with wasip2 support (just released)
23+
mio = "1.2.0"
2324

2425
# tokio with wasip2 cfg tweaks (dicej's draft branch)
25-
tokio = { git = "https://github.com/dicej/tokio", branch = "wasip2-take2", features = ["rt", "net", "io-util", "time", "macros", "sync"] }
26+
tokio = { git = "https://github.com/dicej/tokio", rev="61e5db5", features = ["rt", "net", "io-util", "time", "macros", "sync"] }
2627

2728
[patch.crates-io]
2829
# wasip2 support (not yet released)
29-
socket2 = { git = "https://github.com/rust-lang/socket2", branch = "master" }
30-
mio = { git = "https://github.com/tokio-rs/mio", branch = "master" }
31-
tokio = { git = "https://github.com/dicej/tokio", branch = "wasip2-take2" }
30+
# socket2 = { git = "https://github.com/rust-lang/socket2", tag = "v0.6.3" }
31+
tokio = { git = "https://github.com/dicej/tokio", rev="61e5db5" } # branch = "wasip2-take2"

0 commit comments

Comments
 (0)