From 2e8e4fdb406686a3c7918bf8ff54faaacc6c4cf0 Mon Sep 17 00:00:00 2001 From: plebhash Date: Mon, 23 Dec 2024 09:35:36 +0300 Subject: [PATCH] avoid publishing protocols crates with all-features.. publishing with all-features is overengineering: - no_std is being deprecated - with_serde will be deprecated soon - for crates with relevant features, we specifically list them for publishing --- protocols/v2/binary-sv2/binary-sv2/Cargo.toml | 2 +- protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml | 2 +- protocols/v2/binary-sv2/no-serde-sv2/derive_codec/Cargo.toml | 3 --- protocols/v2/binary-sv2/serde-sv2/Cargo.toml | 3 --- protocols/v2/codec-sv2/Cargo.toml | 2 +- protocols/v2/const-sv2/Cargo.toml | 3 --- protocols/v2/framing-sv2/Cargo.toml | 2 +- protocols/v2/noise-sv2/Cargo.toml | 3 --- protocols/v2/roles-logic-sv2/Cargo.toml | 3 --- protocols/v2/subprotocols/common-messages/Cargo.toml | 3 --- protocols/v2/subprotocols/job-declaration/Cargo.toml | 3 --- protocols/v2/subprotocols/mining/Cargo.toml | 3 --- protocols/v2/subprotocols/template-distribution/Cargo.toml | 3 --- protocols/v2/sv2-ffi/Cargo.toml | 3 --- utils/buffer/Cargo.toml | 3 --- 15 files changed, 4 insertions(+), 37 deletions(-) diff --git a/protocols/v2/binary-sv2/binary-sv2/Cargo.toml b/protocols/v2/binary-sv2/binary-sv2/Cargo.toml index 8501104d26..bb1522f2c2 100644 --- a/protocols/v2/binary-sv2/binary-sv2/Cargo.toml +++ b/protocols/v2/binary-sv2/binary-sv2/Cargo.toml @@ -28,4 +28,4 @@ prop_test = ["binary_codec_sv2/prop_test", "derive_codec_sv2"] with_buffer_pool = ["binary_codec_sv2/with_buffer_pool", "derive_codec_sv2"] [package.metadata.docs.rs] -all-features = true +features = ["core", "with_buffer_pool"] \ No newline at end of file diff --git a/protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml b/protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml index 459ccd2a14..57d8878d9e 100644 --- a/protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml +++ b/protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml @@ -24,4 +24,4 @@ prop_test = ["quickcheck"] with_buffer_pool = ["buffer_sv2"] [package.metadata.docs.rs] -all-features = true \ No newline at end of file +features = ["with_buffer_pool"] \ No newline at end of file diff --git a/protocols/v2/binary-sv2/no-serde-sv2/derive_codec/Cargo.toml b/protocols/v2/binary-sv2/no-serde-sv2/derive_codec/Cargo.toml index 3c9459c522..142926fd9b 100644 --- a/protocols/v2/binary-sv2/no-serde-sv2/derive_codec/Cargo.toml +++ b/protocols/v2/binary-sv2/no-serde-sv2/derive_codec/Cargo.toml @@ -18,6 +18,3 @@ binary_codec_sv2 = {version = "^1.0.0", path="../codec"} [lib] proc-macro = true - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file diff --git a/protocols/v2/binary-sv2/serde-sv2/Cargo.toml b/protocols/v2/binary-sv2/serde-sv2/Cargo.toml index 1478788151..06eea1da86 100644 --- a/protocols/v2/binary-sv2/serde-sv2/Cargo.toml +++ b/protocols/v2/binary-sv2/serde-sv2/Cargo.toml @@ -17,6 +17,3 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"] [dependencies] serde = { version = "1.0.89", features = ["derive", "alloc"], default-features = false } buffer_sv2 = {version = "^1.0.0", path = "../../../../utils/buffer"} - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file diff --git a/protocols/v2/codec-sv2/Cargo.toml b/protocols/v2/codec-sv2/Cargo.toml index 753d12d63f..4886746986 100644 --- a/protocols/v2/codec-sv2/Cargo.toml +++ b/protocols/v2/codec-sv2/Cargo.toml @@ -29,4 +29,4 @@ with_buffer_pool = ["framing_sv2/with_buffer_pool"] no_std = [] [package.metadata.docs.rs] -all-features = true \ No newline at end of file +features = ["with_buffer_pool", "noise_sv2"] \ No newline at end of file diff --git a/protocols/v2/const-sv2/Cargo.toml b/protocols/v2/const-sv2/Cargo.toml index 2500976029..e98a654592 100644 --- a/protocols/v2/const-sv2/Cargo.toml +++ b/protocols/v2/const-sv2/Cargo.toml @@ -12,6 +12,3 @@ homepage = "https://stratumprotocol.org" keywords = ["stratum", "mining", "bitcoin", "protocol"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[package.metadata.docs.rs] -all-features = true diff --git a/protocols/v2/framing-sv2/Cargo.toml b/protocols/v2/framing-sv2/Cargo.toml index 51b78a4735..8ce6896eb4 100644 --- a/protocols/v2/framing-sv2/Cargo.toml +++ b/protocols/v2/framing-sv2/Cargo.toml @@ -29,4 +29,4 @@ with_serde = ["binary_sv2/with_serde", "serde", "buffer_sv2?/with_serde"] with_buffer_pool = ["binary_sv2/with_buffer_pool", "buffer_sv2"] [package.metadata.docs.rs] -all-features = true +features = ["with_buffer_pool"] \ No newline at end of file diff --git a/protocols/v2/noise-sv2/Cargo.toml b/protocols/v2/noise-sv2/Cargo.toml index ed6a970a02..3ec58c1120 100644 --- a/protocols/v2/noise-sv2/Cargo.toml +++ b/protocols/v2/noise-sv2/Cargo.toml @@ -22,6 +22,3 @@ const_sv2 = { version = "^3.0.0", path = "../../../protocols/v2/const-sv2"} [dev-dependencies] quickcheck = "1.0.3" quickcheck_macros = "1" - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file diff --git a/protocols/v2/roles-logic-sv2/Cargo.toml b/protocols/v2/roles-logic-sv2/Cargo.toml index e83ed3c451..060e7f1ffe 100644 --- a/protocols/v2/roles-logic-sv2/Cargo.toml +++ b/protocols/v2/roles-logic-sv2/Cargo.toml @@ -43,6 +43,3 @@ with_serde = [ "serde", prop_test = ["template_distribution_sv2/prop_test"] # Code coverage tools may conflict with the nopanic logic, so we can disable it when needed disable_nopanic = [] - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file diff --git a/protocols/v2/subprotocols/common-messages/Cargo.toml b/protocols/v2/subprotocols/common-messages/Cargo.toml index bd4f498e3e..c9d282f5c7 100644 --- a/protocols/v2/subprotocols/common-messages/Cargo.toml +++ b/protocols/v2/subprotocols/common-messages/Cargo.toml @@ -24,6 +24,3 @@ serde_repr = { version= "0.1.10", optional = true } [features] with_serde = ["binary_sv2/with_serde", "serde", "serde_repr"] prop_test = ["quickcheck"] - -[package.metadata.docs.rs] -all-features = true diff --git a/protocols/v2/subprotocols/job-declaration/Cargo.toml b/protocols/v2/subprotocols/job-declaration/Cargo.toml index 015f82b500..e937c07922 100644 --- a/protocols/v2/subprotocols/job-declaration/Cargo.toml +++ b/protocols/v2/subprotocols/job-declaration/Cargo.toml @@ -19,6 +19,3 @@ const_sv2 = {version = "^3.0.0", path = "../../const-sv2"} [features] with_serde = ["binary_sv2/with_serde", "serde"] - -[package.metadata.docs.rs] -all-features = true diff --git a/protocols/v2/subprotocols/mining/Cargo.toml b/protocols/v2/subprotocols/mining/Cargo.toml index 19f0028b9b..bb1b82f868 100644 --- a/protocols/v2/subprotocols/mining/Cargo.toml +++ b/protocols/v2/subprotocols/mining/Cargo.toml @@ -25,6 +25,3 @@ quickcheck_macros = "1" [features] with_serde = ["binary_sv2/with_serde", "serde"] - -[package.metadata.docs.rs] -all-features = true diff --git a/protocols/v2/subprotocols/template-distribution/Cargo.toml b/protocols/v2/subprotocols/template-distribution/Cargo.toml index b438bbf896..fdb90470e3 100644 --- a/protocols/v2/subprotocols/template-distribution/Cargo.toml +++ b/protocols/v2/subprotocols/template-distribution/Cargo.toml @@ -23,6 +23,3 @@ quickcheck_macros = { version = "1", optional=true } [features] with_serde = ["binary_sv2/with_serde", "serde"] prop_test = ["quickcheck"] - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file diff --git a/protocols/v2/sv2-ffi/Cargo.toml b/protocols/v2/sv2-ffi/Cargo.toml index ac56a159fa..78afed321b 100644 --- a/protocols/v2/sv2-ffi/Cargo.toml +++ b/protocols/v2/sv2-ffi/Cargo.toml @@ -27,6 +27,3 @@ quickcheck_macros = "1" [features] with_serde = [] prop_test = ["binary_sv2/prop_test", "common_messages_sv2/prop_test", "template_distribution_sv2/prop_test"] - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file diff --git a/utils/buffer/Cargo.toml b/utils/buffer/Cargo.toml index a90e9c9ea3..ff46bbbf23 100644 --- a/utils/buffer/Cargo.toml +++ b/utils/buffer/Cargo.toml @@ -33,6 +33,3 @@ harness = false debug = [] fuzz = [] with_serde = ["serde"] - -[package.metadata.docs.rs] -all-features = true \ No newline at end of file