Skip to content

Commit 56f6a51

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

5 files changed

Lines changed: 44 additions & 30 deletions

File tree

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/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -euo pipefail
33

44
cd "$(dirname "$0")/wasi"
55

6-
RUSTFLAGS="--cfg tokio_unstable" cargo +nightly build --target wasm32-wasip2 --release
6+
RUSTFLAGS="--cfg tokio_unstable" cargo build --target wasm32-wasip2 --release

client/wasi/wasi/Cargo.lock

Lines changed: 24 additions & 13 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: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,13 @@ 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="8a1a7f45c29227c2b92c010e9b870723e0f444d4", default-features = false, features = ["tls-rustcrypto"] }
17+
jsonrpsee-core = { git = "https://github.com/warp-driver/jsonrpsee", rev="8a1a7f45c29227c2b92c010e9b870723e0f444d4", features = ["client"] }
18+
soroban-rs = { git = "https://github.com/warp-driver/soroban-helpers", rev = "afc5a819ec65d427a775f0cf392fc7f699a1ae49" }
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"] }
23-
24-
# 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-
27-
[patch.crates-io]
28-
# 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" }
22+
# tokio and mio with wasip2 support (just released)
23+
mio = "1.2.0"
24+
tokio = { version = "1.51.0", features = ["rt", "net", "io-util", "time", "macros", "sync"] }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly"
2+
channel = "1.94.0"
33
targets = ["wasm32-wasip2"]

0 commit comments

Comments
 (0)