Skip to content

Commit

Permalink
Add Rust v0.53 release
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Nov 16, 2023
1 parent a87f0ad commit 3071f8b
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image_name := rust-master
commitSha := 461209ab1ba6b8e2a653ca354a5aad38802a35f9
image_name := rust-v0.53
commitSha := caf9da4a69f1cce8183d4b17c792476ee44c37bc

all: image.json

Expand Down
3 changes: 1 addition & 2 deletions hole-punch-interop/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ export type Version = {

export const versions: Array<Version> = [
{
id: "rust-master",
id: "rust-v0.53",
transports: ["tcp", "quic"],
containerImageID: readImageId("./impl/rust/master/image.json"),
} as Version,
].map((v: Version) => (typeof v.containerImageID === "undefined" ? ({ ...v, containerImageID: readImageId(canonicalImagePath(v.id)) }) : v))

Expand Down
20 changes: 20 additions & 0 deletions transport-interop/impl/rust-chromium/v0.53/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image_name := rust-v0.53
commitSha := caf9da4a69f1cce8183d4b17c792476ee44c37bc

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-*
20 changes: 20 additions & 0 deletions transport-interop/impl/rust/v0.53/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image_name := rust-v0.53
commitSha := caf9da4a69f1cce8183d4b17c792476ee44c37bc

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-*
16 changes: 16 additions & 0 deletions transport-interop/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,28 @@ export const versions: Array<Version> = [
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 }],
Expand Down

0 comments on commit 3071f8b

Please sign in to comment.