From 1975e3f88974a608c3b48a31c82ac74f8e22df85 Mon Sep 17 00:00:00 2001 From: Abros Date: Wed, 22 Nov 2023 22:33:46 +0000 Subject: [PATCH] Added rust-libp2p v0.53 --- .../impl/rust-chromium/v0.53/Makefile | 20 +++++++++++++++++++ transport-interop/impl/rust/v0.53/Makefile | 20 +++++++++++++++++++ transport-interop/versions.ts | 16 +++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 transport-interop/impl/rust-chromium/v0.53/Makefile create mode 100644 transport-interop/impl/rust/v0.53/Makefile diff --git a/transport-interop/impl/rust-chromium/v0.53/Makefile b/transport-interop/impl/rust-chromium/v0.53/Makefile new file mode 100644 index 000000000..c9425d7e5 --- /dev/null +++ b/transport-interop/impl/rust-chromium/v0.53/Makefile @@ -0,0 +1,20 @@ +image_name := rust-v0.53 +commitSha := 7f4ba690e87a867403f6266d8ee7d7db5e7a15bc + +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-* diff --git a/transport-interop/impl/rust/v0.53/Makefile b/transport-interop/impl/rust/v0.53/Makefile new file mode 100644 index 000000000..43c2739e0 --- /dev/null +++ b/transport-interop/impl/rust/v0.53/Makefile @@ -0,0 +1,20 @@ +image_name := rust-v0.53 +commitSha := 7f4ba690e87a867403f6266d8ee7d7db5e7a15bc + +all: image.json + +image.json: rust-libp2p-${commitSha} + cd rust-libp2p-${commitSha} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f interop-tests/Dockerfile.native . + 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-* diff --git a/transport-interop/versions.ts b/transport-interop/versions.ts index 57f8f4bd8..36acf0937 100644 --- a/transport-interop/versions.ts +++ b/transport-interop/versions.ts @@ -62,12 +62,28 @@ export const versions: Array = [ secureChannels: ["tls", "noise"], muxers: ["mplex", "yamux"], }, + { + id: "rust-v0.53", + transports: ["ws", "tcp", "quic-v1", "webrtc-direct"], + secureChannels: ["tls", "noise"], + muxers: ["mplex", "yamux"], + }, { id: "rust-chromium-v0.52", transports: [{ name: "webtransport", onlyDial: true }], secureChannels: [], muxers: [], }, + { + id: "rust-chromium-v0.53", + "transports": [ + { "name": "webtransport", "onlyDial": true }, + { "name": "webrtc-direct", "onlyDial": true }, + { "name": "ws", "onlyDial": true } + ], + "secureChannels": ["noise"], + "muxers": ["mplex", "yamux"] + }, { id: "js-v0.45", transports: ["tcp", "ws", { name: "wss", onlyDial: true }],