From 587c330dde53dcd281c546467c949d01caaa4eaa Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 11 Sep 2025 13:36:52 +1000 Subject: [PATCH 1/3] minifest: Remove homepage `homepage` is meaningless if it just points to the repo. And from the docs: A value should only be set for homepage if there is a dedicated website for the crate other than the source repository or API documentation. Do not make homepage redundant with either the documentation or repository values. --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f565a5933..4d6d7d21b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,6 @@ version = "0.31.1" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra " ] license = "CC0-1.0" -homepage = "https://github.com/rust-bitcoin/rust-secp256k1/" repository = "https://github.com/rust-bitcoin/rust-secp256k1/" documentation = "https://docs.rs/secp256k1/" description = "Rust wrapper library for Pieter Wuille's `libsecp256k1`. Implements ECDSA and BIP 340 signatures for the SECG elliptic curve group secp256k1 and related utilities." From 5b0e0ff8bfdf158b307f086d20c837dd80ba03c6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 11 Sep 2025 13:38:52 +1000 Subject: [PATCH 2/3] manifest: Add excludes Add `exclude` to `package` section so the `tests` and `contrib` directories do not get packaged up and sent to crates.io. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 4d6d7d21b..91c092407 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ keywords = [ "crypto", "ECDSA", "secp256k1", "libsecp256k1", "bitcoin" ] readme = "README.md" edition = "2021" rust-version = "1.63.0" +exclude = ["tests", "contrib"] [package.metadata.docs.rs] all-features = true From 95d21cdbfaa97e33e2c27062719177e812d2c0b6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 11 Sep 2025 13:40:14 +1000 Subject: [PATCH 3/3] manifest: Move package.metadata As we do in `rust-bitcoin` put the `package.metadata` config down belov `dev-dependencies`. Justification is that its not that meaningful so throw it down out the way. --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 91c092407..7bff8fada 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,10 +13,6 @@ edition = "2021" rust-version = "1.63.0" exclude = ["tests", "contrib"] -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - [features] default = ["std"] std = ["alloc", "secp256k1-sys/std", "rand?/std", "rand?/std_rng", "rand?/thread_rng"] @@ -48,6 +44,10 @@ serde_test = "1.0.19" bincode = "1.3.3" hex_lit = "0.1.1" +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + [target.wasm32-unknown-unknown.dev-dependencies] wasm-bindgen-test = "0.3" getrandom = { version = "0.3", features = ["wasm_js"] }