Skip to content

Commit

Permalink
feat(interop/rust-chromium): add rust-libp2p chromium WASM WebTranspo…
Browse files Browse the repository at this point in the history
…rt test

Introduced in rust-libp2p with libp2p/rust-libp2p#4015.
  • Loading branch information
mxinden committed Jul 3, 2023
1 parent 4fd3b08 commit 1dfa9aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions multidim-interop/impl/rust-chromium/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image_name := rust-chromium-v0.52
commitSha := 68e6bf9c3cd0d3317415a5ba31a62e91cba0a5d2

all: image.json

image.json: rust-libp2p-${commitSha}
cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.chromium .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@

rust-libp2p-${commitSha}: rust-libp2p-${commitSha}.zip
unzip -o rust-libp2p-${commitSha}.zip

rust-libp2p-${commitSha}.zip:
wget -O $@ "https://github.com/libp2p/rust-libp2p/archive/${commitSha}.zip"

clean:
rm image.json
rm rust-libp2p-*.zip
rm -rf rust-libp2p-*
6 changes: 6 additions & 0 deletions multidim-interop/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ export const versions: Array<Version> = [
secureChannels: ["tls", "noise"],
muxers: ["mplex", "yamux"],
},
{
id: "rust-chromium-v0.52",
transports: [{ name: "webtransport", onlyDial: true }],
secureChannels: [],
muxers: [],
},
{
id: "js-v0.41",
transports: ["tcp", "ws"],
Expand Down

0 comments on commit 1dfa9aa

Please sign in to comment.