Compare commits

...

16 Commits

Author SHA1 Message Date
Taiki Endo
87990c8245 Release 2.20.9 2023-10-19 05:16:47 +09:00
Taiki Endo
d8f82abc6e Update cargo-hack@latest to 0.6.12 2023-10-19 05:16:16 +09:00
Taiki Endo
3a10567018 Tweak scripts
features-related flags are unneeded when --no-deps is used.
2023-10-19 04:25:54 +09:00
Taiki Endo
55aaa89c2f Release 2.20.8 2023-10-19 03:15:49 +09:00
Taiki Endo
45764be6ba Update parse-changelog@latest to 0.6.4 2023-10-19 03:11:17 +09:00
Taiki Endo
cd04d6bed9 Update cargo-llvm-cov@latest to 0.5.35 2023-10-19 03:11:17 +09:00
Taiki Endo
9fa9dc1e41 codegen: Allow compiling serde and serde_derive in parallel 2023-10-18 23:22:44 +09:00
Taiki Endo
56763447c1 Release 2.20.7 2023-10-18 20:55:19 +09:00
Taiki Endo
8a192a7d6e Update cargo-hack@latest to 0.6.11 2023-10-18 20:42:26 +09:00
Taiki Endo
ac7879e9df Release 2.20.6 2023-10-18 02:27:39 +09:00
Taiki Endo
b84a67db1f Update cargo-hack@latest to 0.6.10 2023-10-18 02:27:02 +09:00
Taiki Endo
9fd87eb1c0 Release 2.20.5 2023-10-17 23:02:06 +09:00
Taiki Endo
cf6e29bacc Update cargo-llvm-cov@latest to 0.5.34 2023-10-17 22:57:00 +09:00
Taiki Endo
ae158c407e Update cargo-hack@latest to 0.6.9 2023-10-17 22:57:00 +09:00
Taiki Endo
8cc02a3e23 Release 2.20.4 2023-10-17 21:16:44 +09:00
Taiki Endo
7d35a2f35e Update cargo-udeps@latest to 0.1.43 2023-10-17 21:11:32 +09:00
8 changed files with 242 additions and 20 deletions

View File

@@ -10,6 +10,34 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.20.9] - 2023-10-18
- Update `cargo-hack@latest` to 0.6.12.
## [2.20.8] - 2023-10-18
- Update `parse-changelog@latest` to 0.6.4.
- Update `cargo-llvm-cov@latest` to 0.5.35.
## [2.20.7] - 2023-10-18
- Update `cargo-hack@latest` to 0.6.11.
## [2.20.6] - 2023-10-17
- Update `cargo-hack@latest` to 0.6.10.
## [2.20.5] - 2023-10-17
- Update `cargo-llvm-cov@latest` to 0.5.34.
- Update `cargo-hack@latest` to 0.6.9.
## [2.20.4] - 2023-10-17
- Update `cargo-udeps@latest` to 0.1.43.
## [2.20.3] - 2023-10-12
- Update `just@latest` to 1.15.0.
@@ -1301,7 +1329,13 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.20.3...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.20.9...HEAD
[2.20.9]: https://github.com/taiki-e/install-action/compare/v2.20.8...v2.20.9
[2.20.8]: https://github.com/taiki-e/install-action/compare/v2.20.7...v2.20.8
[2.20.7]: https://github.com/taiki-e/install-action/compare/v2.20.6...v2.20.7
[2.20.6]: https://github.com/taiki-e/install-action/compare/v2.20.5...v2.20.6
[2.20.5]: https://github.com/taiki-e/install-action/compare/v2.20.4...v2.20.5
[2.20.4]: https://github.com/taiki-e/install-action/compare/v2.20.3...v2.20.4
[2.20.3]: https://github.com/taiki-e/install-action/compare/v2.20.2...v2.20.3
[2.20.2]: https://github.com/taiki-e/install-action/compare/v2.20.1...v2.20.2
[2.20.1]: https://github.com/taiki-e/install-action/compare/v2.20.0...v2.20.1

View File

@@ -2,10 +2,114 @@
"rust_crate": "cargo-hack",
"template": null,
"latest": {
"version": "0.6.8"
"version": "0.6.12"
},
"0.6": {
"version": "0.6.8"
"version": "0.6.12"
},
"0.6.12": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.12/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "e5eacdd5e420ec79c9490c8e4b8868ff84c3818cd9f7c93795dae8ac88fa60ba"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.12/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "9558afab9b0c311635e27acc86e21e791ee5cedb44292ce5a7261082aef1d1d2"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.12/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "8817a2fcb5442d84001a18c615c37162d89b539005ebc1497df263c39a450592"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.12/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "466382fabb571dd71d4229eee35e4da2ecb3b3a3c2e28a05972f27129a472bab"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.12/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "2c03d4418382599670772df4b8063ce9d0882c7fbf03a9d7eff68cc172b1b88a"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.12/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "9e15a18977c5f71a8162282f1b5dd9a7ae4c9ba8222640a567ef757bb8e317e8"
}
},
"0.6.11": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.11/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "b1caecd3cdb0aa2ecf5981bd3ca7736fc9931fa8500674b49ca9d816e416cf7a"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.11/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "6819242f22bb219b9955dccc2075b4edf3b11b28b362e9c219789ff829878524"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.11/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "8cb102297aecad58454ac6f70773908ab68e89a0585c2fbf23bb103c44466bdb"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.11/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "dcd8d5b7e8baa1a449beef0dd43c6c9fb724c950febb5a3f0ffa3bb326f18918"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.11/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "c30a4842af20ff8edff34a5d72e1f8b193156f6625840e0a8451af2a6995ffaf"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.11/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "a8ff741f14968ec74f518b9ce427c3c3ae78e97b87f7d5ef3d76bb61aefd8cd3"
}
},
"0.6.10": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.10/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "61396b1c1b96faecccdf2af78e91a0f015c161573debbd3a92f36452cf0736bf"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.10/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "44564f6deec6e514d30e6b18e0c5ac5d8c444a5cfce6216d747ef0b1ca57fea1"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.10/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "ac37e52f6bd0e55a34386d57f96f3b1e5ef72e2f844d701c128ec14dab64ea6a"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.10/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "872fffcdb7cbb1e66c5d7c9e292bb28458a8e575b400d768842a46a181fc76f1"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.10/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "e3d9a5cbee1f0a91e07721ac483525f98e0887ed9ba8058de55449cf71b9aa2f"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.10/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "e77a9ddcc0df20f254354d7cc3c2992908e1621a471e1c43df55b47867153582"
}
},
"0.6.9": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.9/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "4be65b3c79683d4846ef16bf7b3d53f585076ab708f53a5ec0698f7c8f690ceb"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.9/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "e478a9ebccf092e7590647f2d8deb80089c46fa2023d00c22cd569add98f017f"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.9/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "d53025b3b46fa2b67a192bc63508a3efc81011799bd107790615bded974fe2fd"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.9/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "8843746d9edc9ec342c7e23cabff801ba6e9bb3f5fb7019d75a82b05fce566f9"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.9/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "af11df14efd96bc28621ae89019ac9fff48daa80c526d2cb8ccd7e4a748bf882"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.9/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "5bb0b04244ed9a621ce76148103de1e9e25d5db77744391cddeefa5860f45cf2"
}
},
"0.6.8": {
"x86_64_linux_musl": {

View File

@@ -18,10 +18,44 @@
}
},
"latest": {
"version": "0.5.33"
"version": "0.5.35"
},
"0.5": {
"version": "0.5.33"
"version": "0.5.35"
},
"0.5.35": {
"x86_64_linux_musl": {
"checksum": "21e7d42185f8eae113508ec2b8c3bfdd22c6293bb6b0ccd74ab0bd21153dc3b4"
},
"x86_64_macos": {
"checksum": "dca22baa597f337ee78f5418b19bb2367108da77cb430be30febd55901537a2f"
},
"x86_64_windows": {
"checksum": "45b21cd8b0f89b6ee5ad3093fcb542cf8c41ce86e36e89b7a26166c9f7792e47"
},
"aarch64_linux_musl": {
"checksum": "56c69758d6bb493dba53a2ac21343a983d22ca677d9ecfe8a4bb66fd185013e8"
},
"aarch64_macos": {
"checksum": "28525454f2fe26ad8eba301134aeff305348b4e143ebdb62f07f2c93db1eb347"
}
},
"0.5.34": {
"x86_64_linux_musl": {
"checksum": "2d312925ea2178de060b5628c899f44f6a162ce621a87de8c3aa0658573f9641"
},
"x86_64_macos": {
"checksum": "f36ffdc068216d65618bced4213177a22f9fae8539070acdff4b84757940c98f"
},
"x86_64_windows": {
"checksum": "62dc60bfb3cde60e59840c72caafe698dfe0d01c63544a31df1d8c40fc924906"
},
"aarch64_linux_musl": {
"checksum": "96ea303a801f640a205c3e53bd240ee22c51e02a4feb90ab879882ed9b774247"
},
"aarch64_macos": {
"checksum": "81eb3dc6dec49c1eb1a9eb5cbdd40395dbf62541be655c4df3ebb09276a5c0b1"
}
},
"0.5.33": {
"x86_64_linux_musl": {

View File

@@ -31,10 +31,30 @@
}
},
"latest": {
"version": "0.1.42"
"version": "0.1.43"
},
"0.1": {
"version": "0.1.42"
"version": "0.1.43"
},
"0.1.43": {
"x86_64_linux_musl": {
"checksum": "325d25f63df833d2fbacaee71997a628088ddc2c5f73c0c0a93ebacb3b773d16"
},
"x86_64_macos": {
"checksum": "f569ddb4c5a3ca5b881219df860bdb589fb9fcdf091a7eac69dc69ef2b69f39b"
},
"x86_64_windows": {
"checksum": "d25982e539042e919a4a8da82028f5922ce8d891c89ea7e3754545beb383b94e"
},
"aarch64_linux_musl": {
"checksum": "456b5a24f702bf33ddb96d96e79fe22b60d295fd4777de4b46b91807bfb3c50e"
},
"aarch64_macos": {
"checksum": "29896a416e4d57426ab67df05d50a909ce749c727b7d6c041116e5254e97e882"
},
"aarch64_windows": {
"checksum": "75782b445a16311643a31d68e252a526a21c9d525923fdd8b09f5e0bd6f7107c"
}
},
"0.1.42": {
"x86_64_linux_musl": {

View File

@@ -2,10 +2,36 @@
"rust_crate": "parse-changelog",
"template": null,
"latest": {
"version": "0.6.3"
"version": "0.6.4"
},
"0.6": {
"version": "0.6.3"
"version": "0.6.4"
},
"0.6.4": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.4/parse-changelog-x86_64-unknown-linux-musl.tar.gz",
"checksum": "df2d97039ede5d93785a801a5d998627ba28bc5d2b092d6602356f7aa9149706"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.4/parse-changelog-x86_64-apple-darwin.tar.gz",
"checksum": "071cd442ad95ea97f14b71cf005558ee08ec33b76e0456c933c6ed9f9033cf16"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.4/parse-changelog-x86_64-pc-windows-msvc.tar.gz",
"checksum": "200bd6074d65e715aee01ea44be992081409c95bd6f852dc59327a14882f820b"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.4/parse-changelog-aarch64-unknown-linux-musl.tar.gz",
"checksum": "ca6d8407b30647465ecc9188f0b1ee83479f05ed378db504ddbe666e15612409"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.4/parse-changelog-aarch64-apple-darwin.tar.gz",
"checksum": "2d3ad67d62a806d2f62e741a53375900e886cb8d414c804cd8c6bb596fb4f06d"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/parse-changelog/releases/download/v0.6.4/parse-changelog-aarch64-pc-windows-msvc.tar.gz",
"checksum": "e206f5699322ed0e2b91d14b26687cf2040be863dd035490ae68ada19872b416"
}
},
"0.6.3": {
"x86_64_linux_musl": {

View File

@@ -10,7 +10,8 @@ flate2 = "1"
fs-err = "2"
minisign-verify = "0.2"
semver = { version = "1", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
serde = "1"
serde_derive = "1"
serde_json = "1"
sha2 = "0.10"
tar = "0.4"

View File

@@ -17,7 +17,11 @@ use std::{
use anyhow::{bail, Context as _, Result};
use fs_err as fs;
use serde::{Deserialize, Serialize};
use serde::{
de::{self, Deserialize, Deserializer},
ser::{Serialize, Serializer},
};
use serde_derive::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
fn main() -> Result<()> {
@@ -617,7 +621,7 @@ impl FromStr for Version {
impl Serialize for Version {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
S: Serializer,
{
String::serialize(&self.to_string(), serializer)
}
@@ -625,10 +629,9 @@ impl Serialize for Version {
impl<'de> Deserialize<'de> for Version {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,
D: Deserializer<'de>,
{
use serde::de::Error as _;
String::deserialize(deserializer)?.parse().map_err(D::Error::custom)
String::deserialize(deserializer)?.parse().map_err(de::Error::custom)
}
}
@@ -799,7 +802,7 @@ impl HostPlatform {
}
mod github {
use serde::Deserialize;
use serde_derive::Deserialize;
// https://api.github.com/repos/<repo>/releases
pub type Releases = Vec<Release>;
@@ -821,7 +824,7 @@ mod github {
}
mod crates_io {
use serde::Deserialize;
use serde_derive::Deserialize;
// https://crates.io/api/v1/crates/<crate>
#[derive(Debug, Deserialize)]
@@ -839,7 +842,7 @@ mod crates_io {
}
mod cargo_manifest {
use serde::Deserialize;
use serde_derive::Deserialize;
#[derive(Debug, Deserialize)]
pub struct Manifest {

View File

@@ -114,7 +114,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
done
# Make sure that public Rust crates don't contain executables.
failed_files=''
metadata=$(cargo metadata --format-version=1 --all-features --no-deps)
metadata=$(cargo metadata --format-version=1 --no-deps)
has_public_crate=''
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
@@ -314,7 +314,7 @@ if [[ -f .cspell.json ]]; then
if [[ "${manifest_path}" != "Cargo.toml" ]] && ! grep -Eq '\[workspace\]' "${manifest_path}"; then
continue
fi
metadata=$(cargo metadata --format-version=1 --all-features --no-deps --manifest-path "${manifest_path}")
metadata=$(cargo metadata --format-version=1 --no-deps --manifest-path "${manifest_path}")
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
dependencies+="$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})" | jq -r '.dependencies[].name')"$'\n'
done