diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bd858d6a9ac80..893070a3d82fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -255,7 +255,7 @@ jobs: steps: - uses: actions/checkout@master - run: | - msrv="$(perl -ne 'print if s/rust-version\s*=\s*"(.*)"/\1/g' ctest/Cargo.toml)" + msrv="$(cargo metadata --format-version 1 | jq -r --arg CRATE_NAME ctest '.packages | map(select(.name == $CRATE_NAME)) | first | .rust_version')" echo "MSRV: $msrv" echo "MSRV=$msrv" >> "$GITHUB_ENV" - name: Install Rust diff --git a/Cargo.toml b/Cargo.toml index c0b7d78120bfd..9e8048cffce70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,20 +1,16 @@ [package] name = "libc" version = "1.0.0-alpha.1" -authors = ["The Rust Project Developers"] -license = "MIT OR Apache-2.0" -readme = "README.md" -edition = "2021" -repository = "https://github.com/rust-lang/libc" -homepage = "https://github.com/rust-lang/libc" -documentation = "https://docs.rs/libc/" keywords = ["libc", "ffi", "bindings", "operating", "system"] categories = ["external-ffi-bindings", "no-std", "os"] -build = "build.rs" exclude = ["/ci/*", "/.github/*", "/.cirrus.yml", "/triagebot.toml"] -rust-version = "1.63" description = "Raw FFI bindings to platform libraries like libc." publish = false # On the main branch, we don't want to publish anything +authors = ["The Rust Project Developers"] +edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/rust-lang/libc" +rust-version = "1.63" [package.metadata.docs.rs] features = ["extra_traits"] diff --git a/ctest-test/Cargo.toml b/ctest-test/Cargo.toml index 2b79974dc7ad3..72f926e832998 100644 --- a/ctest-test/Cargo.toml +++ b/ctest-test/Cargo.toml @@ -2,9 +2,8 @@ name = "ctest-test" version = "0.1.0" authors = ["Alex Crichton "] -build = "build.rs" -edition = "2021" publish = false +edition = "2021" [build-dependencies] ctest = { path = "../ctest" } diff --git a/ctest/Cargo.toml b/ctest/Cargo.toml index ccc7efeaae6ea..1494954a105b7 100644 --- a/ctest/Cargo.toml +++ b/ctest/Cargo.toml @@ -1,16 +1,11 @@ [package] name = "ctest" version = "0.4.11" -license = "MIT OR Apache-2.0" -readme = "README.md" -repository = "https://github.com/rust-lang/libc" -homepage = "https://github.com/rust-lang/libc" -documentation = "https://docs.rs/ctest" -description = """ -Automated tests of FFI bindings. -""" +description = "Automated tests of FFI bindings." exclude = ["CHANGELOG.md"] edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/rust-lang/libc" rust-version = "1.63.0" [dependencies] diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index d1cf3a3aedd25..6dc3d2d1c14de 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,16 +1,12 @@ [package] name = "libc-test" version = "0.1.0" -edition = "2021" +description = "A test crate for the libc crate." +publish = false authors = ["The Rust Project Developers"] +edition = "2021" license = "MIT OR Apache-2.0" -build = "build.rs" -publish = false repository = "https://github.com/rust-lang/libc" -homepage = "https://github.com/rust-lang/libc" -description = """ -A test crate for the libc crate. -""" [dependencies] cfg-if = "1.0.0"