diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..a43d1ed --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,7 @@ +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] + +[target.x86_64-unknown-linux-musl] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] \ No newline at end of file diff --git a/.woodpecker.yml b/.woodpecker.yml index fb86e1f..421003c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,7 +2,7 @@ pipeline: build: image: rust:1-alpine commands: - - apk add clang build-base protoc + - apk add clang build-base protoc mold - cargo build --release containerize: image: docker:23-dind