Skip to content

Commit 37bc337

Browse files
Use cargo: (universally supported) instead of cargo:: (1.80+ only) syntax for rustc-check-cfg (#581)
* Use cargo: (universally supported) instead of cargo:: (1.80+ only) syntax for rustc-check-cfg Ref: commit e67e733 Ref: #575 Closes #576 Closes nabijaczleweli/cargo-update#277 * GitHub CI for rustc 1.75 (Ubuntu LTS 24.04) * Dockerfile-musl needs to follow redirects
1 parent a09b66e commit 37bc337

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
rust: stable
1919
docker: linux64
2020
target: x86_64-unknown-linux-gnu
21+
- build: ubuntu-lts
22+
os: ubuntu-24.04
23+
rust: 1.75
24+
docker: linux64
25+
target: x86_64-unknown-linux-gnu
2126
- build: x86_64-beta
2227
os: ubuntu-latest
2328
rust: beta

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::env;
22

33
fn main() {
44
println!(
5-
"cargo::rustc-check-cfg=cfg(\
5+
"cargo:rustc-check-cfg=cfg(\
66
need_openssl_init,\
77
need_openssl_probe,\
88
)"

ci/Dockerfile-musl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get install -y --no-install-recommends \
66
musl-tools
77

88
RUN \
9-
curl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz | tar xzf - && \
9+
curl -L https://www.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz | tar xzf - && \
1010
cd openssl-1.0.2g && \
1111
CC=musl-gcc ./Configure --prefix=/openssl no-dso linux-x86_64 -fPIC && \
1212
make -j10 && \

curl-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::process::Command;
66
fn main() {
77
println!("cargo:rerun-if-changed=curl");
88
println!(
9-
"cargo::rustc-check-cfg=cfg(\
9+
"cargo:rustc-check-cfg=cfg(\
1010
libcurl_vendored,\
1111
link_libnghttp2,\
1212
link_libz,\

0 commit comments

Comments
 (0)