From d65155c5893c691c2675fc1df8bdb64302f17a08 Mon Sep 17 00:00:00 2001 From: Aaron Drew Date: Mon, 24 Oct 2022 10:41:39 +1100 Subject: [PATCH 1/2] Bump versions to avoid confusion around releases. `cargo vendor` has issues with the current type_hash dependencies. The git repository for v0.3.0 contains a version of type_hash_core labelled v0.2 but slightly different in repository labels than the v0.2 checked into crates.io. (missing repository, for instance). `cargo vendor` is pulling v0.2 from crates.io rather than using the `path = "../core"` version specified in type_hash which means it is also dropping the repository label on vendored crates but not when the crate is unvendored. I'm unclear on what should be the correct semantics here. This change just bumps all versions to circumvent any issues. It'll require a new release to be pushed to crates.io as well. --- core/Cargo.toml | 2 +- macros/Cargo.toml | 2 +- type_hash/Cargo.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index ed9a4fc..57a51c5 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "type_hash_core" -version = "0.2.0" +version = "0.3.1" authors = ["Peter Hall "] edition = "2018" license = "MIT" @@ -20,5 +20,5 @@ keywords = ["type", "struct", "hash", "macro"] categories = ["data-structures", "rust-patterns"] [dependencies] -type_hash_core = { version = "=0.2.0", path = "../core" } -type_hash_macros = { version = "=0.3.0", path = "../macros" } +type_hash_core = { version = "=0.3.1", path = "../core" } +type_hash_macros = { version = "=0.3.1", path = "../macros" } From d62e101c379bc546b07398e1c90302a6cf6e7135 Mon Sep 17 00:00:00 2001 From: Aaron Drew Date: Mon, 24 Oct 2022 10:41:39 +1100 Subject: [PATCH 2/2] Bump versions to avoid confusion around releases. `cargo vendor` has issues with the current type_hash dependencies. The git repository for v0.3.0 contains a version of type_hash_core labelled v0.2 but slightly different in repository labels than the v0.2 checked into crates.io. (missing repository, for instance). `cargo vendor` is pulling v0.2 from crates.io rather than using the `path = "../core"` version specified in type_hash which means it is also dropping the repository label on vendored crates but not when the crate is unvendored. I'm unclear on what should be the correct semantics here. This change just bumps all versions to circumvent any issues. It'll require a new release to be pushed to crates.io as well. --- core/Cargo.toml | 2 +- macros/Cargo.toml | 2 +- macros/src/lib.rs | 2 +- type_hash/Cargo.toml | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index ed9a4fc..57a51c5 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "type_hash_core" -version = "0.2.0" +version = "0.3.1" authors = ["Peter Hall ToTokens for DeriveWhereClause<'a> { fn split_generics(generics: &Generics) -> (ImplGenerics, TypeGenerics, DeriveWhereClause<'_>) { let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); - let where_clause = DeriveWhereClause(&generics, where_clause); + let where_clause = DeriveWhereClause(generics, where_clause); (impl_generics, ty_generics, where_clause) } diff --git a/type_hash/Cargo.toml b/type_hash/Cargo.toml index 9f7950f..ef8ea91 100644 --- a/type_hash/Cargo.toml +++ b/type_hash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "type_hash" -version = "0.3.0" +version = "0.3.1" authors = ["Peter Hall "] edition = "2018" license = "MIT" @@ -20,5 +20,5 @@ keywords = ["type", "struct", "hash", "macro"] categories = ["data-structures", "rust-patterns"] [dependencies] -type_hash_core = { version = "=0.2.0", path = "../core" } -type_hash_macros = { version = "=0.3.0", path = "../macros" } +type_hash_core = { version = "=0.3.1", path = "../core" } +type_hash_macros = { version = "=0.3.1", path = "../macros" }