Revert "Bring back zig-libp2p (#172)" (#173)

This reverts commit f0c82d3d816107a7a50e3f403f354b3079e3ece3.
This commit is contained in:
Marco Munizaga 2023-05-01 10:22:25 -07:00 committed by GitHub
parent 24891a7aa2
commit e4e9f985f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 35 deletions

View File

@ -2,9 +2,8 @@ GO_SUBDIRS := $(wildcard impl/go/*/.)
JS_SUBDIRS := $(wildcard impl/js/*/.)
RUST_SUBDIRS := $(wildcard impl/rust/*/.)
NIM_SUBDIRS := $(wildcard impl/nim/*/.)
ZIG_SUBDIRS := $(wildcard impl/zig/*/.)
all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS)
all: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS)
$(JS_SUBDIRS):
$(MAKE) -C $@
$(GO_SUBDIRS):
@ -13,8 +12,6 @@ $(RUST_SUBDIRS):
$(MAKE) -C $@
$(NIM_SUBDIRS):
$(MAKE) -C $@
$(ZIG_SUBDIRS):
$(MAKE) -C $@
.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) $(ZIG_SUBDIRS) all
.PHONY: $(GO_SUBDIRS) $(JS_SUBDIRS) $(RUST_SUBDIRS) $(NIM_SUBDIRS) all

View File

@ -106,10 +106,10 @@ switch (modeStr) {
console.log("Building any remaining things from image.json")
// We're building using -o image.json. This tells make to
// not bother building image.json or anything it depends on.
child_process.execSync(`make -o image.json`, { cwd: implFolder, stdio: 'inherit' })
child_process.execSync(`make -o image.json`, { cwd: implFolder })
} else {
console.log("No cache, building from scratch")
child_process.execSync(`make`, { cwd: implFolder, stdio: "inherit" })
child_process.execSync(`make`, { cwd: implFolder })
}
}
}

View File

@ -1 +0,0 @@
zig-libp2p-*

View File

@ -1,19 +0,0 @@
image_name := zig-v0.0.1
commitSha := d6c7afe0d02bf8a314547acdf0483653a9b84bea
all: image.json print-cpu-info
print-cpu-info: image.json
docker run --rm --entrypoint /app/zig/bin/zig $$(jq -r .imageID image.json) build-exe --show-builtin
image.json:
wget -O zig-libp2p-${commitSha}.zip "https://github.com/marcopolo/zig-libp2p/archive/${commitSha}.zip"
unzip -o zig-libp2p-${commitSha}.zip
cd zig-libp2p-${commitSha} && docker build -t ${image_name} -f interop/Dockerfile .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
clean:
rm -rf image.json zig-libp2p-*.zip zig-libp2p-*
.PHONY: all clean print-cpu-info

View File

@ -11,7 +11,6 @@ import jsV042 from "./impl/js/v0.42/node-image.json"
import nimv10 from "./impl/nim/v1.0/image.json"
import chromiumJsV041 from "./impl/js/v0.41/chromium-image.json"
import chromiumJsV042 from "./impl/js/v0.42/chromium-image.json"
import zigv001 from "./impl/zig/v0.0.1/image.json"
export type Version = {
id: string,
@ -115,11 +114,4 @@ export const versions: Array<Version> = [
secureChannels: ["noise"],
muxers: ["mplex", "yamux"],
},
{
id: "zig-v0.0.1",
containerImageID: zigv001.imageID,
transports: ["quic-v1"],
secureChannels: [],
muxers: [],
},
]