From 1a44e8c506b0a0f3a9228859ad06602825a15f28 Mon Sep 17 00:00:00 2001 From: Gabriele Vernetti Date: Mon, 14 Oct 2024 18:32:18 +0200 Subject: [PATCH] enable `all-feature` flag for rust-docs --- common/Cargo.toml | 3 +++ protocols/v1/Cargo.toml | 3 +++ protocols/v2/binary-sv2/binary-sv2/Cargo.toml | 3 +++ protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml | 3 +++ .../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 | 7 ++++--- protocols/v2/const-sv2/Cargo.toml | 3 +++ protocols/v2/framing-sv2/Cargo.toml | 4 +++- 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 | 2 ++ roles/roles-utils/network-helpers/Cargo.toml | 3 +++ roles/roles-utils/rpc/Cargo.toml | 3 +++ utils/bip32-key-derivation/Cargo.toml | 3 +++ utils/buffer/Cargo.toml | 3 +++ utils/error-handling/Cargo.toml | 3 +++ utils/key-utils/Cargo.toml | 3 +++ 22 files changed, 66 insertions(+), 4 deletions(-) diff --git a/common/Cargo.toml b/common/Cargo.toml index 3b9d7cc2c..b2a01f0ec 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -9,3 +9,6 @@ repository = "https://github.com/stratum-mining/stratum" [dependencies] bitcoin = {version="0.29.1",optional=true} secp256k1 = { version = "0.28.2", default-features = false, features =["alloc","rand","rand-std"] } + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v1/Cargo.toml b/protocols/v1/Cargo.toml index bdea8d493..1b4f9e382 100644 --- a/protocols/v1/Cargo.toml +++ b/protocols/v1/Cargo.toml @@ -27,3 +27,6 @@ binary_sv2 = { version = "^1.0.0", path = "../v2/binary-sv2/binary-sv2"} [dev-dependencies] quickcheck = "1" quickcheck_macros = "1" + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v2/binary-sv2/binary-sv2/Cargo.toml b/protocols/v2/binary-sv2/binary-sv2/Cargo.toml index d3882c01b..ea4da3f51 100644 --- a/protocols/v2/binary-sv2/binary-sv2/Cargo.toml +++ b/protocols/v2/binary-sv2/binary-sv2/Cargo.toml @@ -26,3 +26,6 @@ core = ["binary_codec_sv2", "derive_codec_sv2"] with_serde = ["serde_sv2", "serde"] 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 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 77894f4e6..c853b5666 100644 --- a/protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml +++ b/protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml @@ -22,3 +22,6 @@ no_std = [] default = ["no_std"] prop_test = ["quickcheck"] with_buffer_pool = ["buffer_sv2"] + +[package.metadata.docs.rs] +all-features = true \ 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 0653daf3d..a5ac3de99 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,3 +18,6 @@ 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 3f551f824..082018420 100644 --- a/protocols/v2/binary-sv2/serde-sv2/Cargo.toml +++ b/protocols/v2/binary-sv2/serde-sv2/Cargo.toml @@ -20,3 +20,6 @@ buffer_sv2 = {version = "^1.0.0", path = "../../../../utils/buffer"} [features] no_std = [] + +[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 092bcb986..4617eef10 100644 --- a/protocols/v2/codec-sv2/Cargo.toml +++ b/protocols/v2/codec-sv2/Cargo.toml @@ -20,9 +20,10 @@ const_sv2 = { version = "2.0.0", path = "../../../protocols/v2/const-sv2"} buffer_sv2 = { version = "1.0.0", path = "../../../utils/buffer"} tracing = { version = "0.1"} - - [features] with_serde = ["binary_sv2/with_serde", "serde", "framing_sv2/with_serde", "buffer_sv2/with_serde"] with_buffer_pool = ["framing_sv2/with_buffer_pool"] -no_std = [] \ No newline at end of file +no_std = [] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v2/const-sv2/Cargo.toml b/protocols/v2/const-sv2/Cargo.toml index 8030a1fcd..e532cfa59 100644 --- a/protocols/v2/const-sv2/Cargo.toml +++ b/protocols/v2/const-sv2/Cargo.toml @@ -21,3 +21,6 @@ secp256k1 = { version = "0.28.2", default-features = false, features =["hashes", [features] no_std = [] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v2/framing-sv2/Cargo.toml b/protocols/v2/framing-sv2/Cargo.toml index 7e39d8cee..0140a9a58 100644 --- a/protocols/v2/framing-sv2/Cargo.toml +++ b/protocols/v2/framing-sv2/Cargo.toml @@ -13,7 +13,6 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] serde = { version = "1.0.89", default-features = false, optional = true } const_sv2 = { version = "^2.0.0", path = "../../../protocols/v2/const-sv2"} @@ -24,3 +23,6 @@ buffer_sv2 = { version = "^1.0.0", path = "../../../utils/buffer", optional=true no_std = [] 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 \ No newline at end of file diff --git a/protocols/v2/noise-sv2/Cargo.toml b/protocols/v2/noise-sv2/Cargo.toml index 432b894dd..21b5715b9 100644 --- a/protocols/v2/noise-sv2/Cargo.toml +++ b/protocols/v2/noise-sv2/Cargo.toml @@ -22,3 +22,6 @@ const_sv2 = { version = "^2.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 077c246fd..4bf81c84a 100644 --- a/protocols/v2/roles-logic-sv2/Cargo.toml +++ b/protocols/v2/roles-logic-sv2/Cargo.toml @@ -44,3 +44,6 @@ 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 5891becfc..43035d917 100644 --- a/protocols/v2/subprotocols/common-messages/Cargo.toml +++ b/protocols/v2/subprotocols/common-messages/Cargo.toml @@ -25,3 +25,6 @@ serde_repr = {version= "0.1.10", optional=true} no_std = [] with_serde = ["binary_sv2/with_serde", "serde", "serde_repr"] prop_test = ["quickcheck"] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v2/subprotocols/job-declaration/Cargo.toml b/protocols/v2/subprotocols/job-declaration/Cargo.toml index 79093ce17..aceaf2145 100644 --- a/protocols/v2/subprotocols/job-declaration/Cargo.toml +++ b/protocols/v2/subprotocols/job-declaration/Cargo.toml @@ -20,3 +20,6 @@ const_sv2 = {version = "^2.0.0", path = "../../../../protocols/v2/const-sv2"} [features] no_std = [] with_serde = ["binary_sv2/with_serde", "serde"] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v2/subprotocols/mining/Cargo.toml b/protocols/v2/subprotocols/mining/Cargo.toml index a5bda914d..fa3d1db22 100644 --- a/protocols/v2/subprotocols/mining/Cargo.toml +++ b/protocols/v2/subprotocols/mining/Cargo.toml @@ -26,3 +26,6 @@ quickcheck_macros = "1" [features] no_std = [] with_serde = ["binary_sv2/with_serde", "serde"] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/protocols/v2/subprotocols/template-distribution/Cargo.toml b/protocols/v2/subprotocols/template-distribution/Cargo.toml index 21c30c297..142aebb36 100644 --- a/protocols/v2/subprotocols/template-distribution/Cargo.toml +++ b/protocols/v2/subprotocols/template-distribution/Cargo.toml @@ -24,3 +24,6 @@ quickcheck_macros = { version = "1", optional=true } no_std = [] 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 35ca76a65..9b9e23ca5 100644 --- a/protocols/v2/sv2-ffi/Cargo.toml +++ b/protocols/v2/sv2-ffi/Cargo.toml @@ -29,3 +29,5 @@ quickcheck_macros = "1" 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/roles/roles-utils/network-helpers/Cargo.toml b/roles/roles-utils/network-helpers/Cargo.toml index 46d3fc532..a25bb1257 100644 --- a/roles/roles-utils/network-helpers/Cargo.toml +++ b/roles/roles-utils/network-helpers/Cargo.toml @@ -31,3 +31,6 @@ async_std = ["async-std", "async-channel", "binary_sv2", "codec_sv2"] with_tokio = ["tokio", "async-channel", "binary_sv2", "codec_sv2"] with_serde = ["binary_sv2/with_serde", "serde", "codec_sv2/with_serde"] with_buffer_pool = ["codec_sv2/with_buffer_pool"] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/roles/roles-utils/rpc/Cargo.toml b/roles/roles-utils/rpc/Cargo.toml index db5c0f02d..c71e7fba9 100644 --- a/roles/roles-utils/rpc/Cargo.toml +++ b/roles/roles-utils/rpc/Cargo.toml @@ -23,3 +23,6 @@ base64 = "0.21.5" hyper = { version = "1.1.0", features = ["full"] } hyper-util = { version = "0.1", features = ["full"] } http-body-util = "0.1" + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/utils/bip32-key-derivation/Cargo.toml b/utils/bip32-key-derivation/Cargo.toml index 5b5749e60..83704eef5 100644 --- a/utils/bip32-key-derivation/Cargo.toml +++ b/utils/bip32-key-derivation/Cargo.toml @@ -25,3 +25,6 @@ slip132 = "0.10" [dev-dependencies] toml = { version = "0.5.6", git = "https://github.com/diondokter/toml-rs", default-features = false, rev = "c4161aa" } + +[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 1effc249e..279a00cfa 100644 --- a/utils/buffer/Cargo.toml +++ b/utils/buffer/Cargo.toml @@ -33,3 +33,6 @@ harness = false debug = [] fuzz = [] with_serde = ["serde"] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/utils/error-handling/Cargo.toml b/utils/error-handling/Cargo.toml index 05a606b98..19d9c4352 100644 --- a/utils/error-handling/Cargo.toml +++ b/utils/error-handling/Cargo.toml @@ -10,3 +10,6 @@ homepage = "https://stratumprotocol.org" repository = "https://github.com/stratum-mining/stratum" license = "MIT + Apache-2.0" keywords = ["stratum", "mining", "bitcoin", "protocol"] + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file diff --git a/utils/key-utils/Cargo.toml b/utils/key-utils/Cargo.toml index b6c13b86a..bc25b7bee 100644 --- a/utils/key-utils/Cargo.toml +++ b/utils/key-utils/Cargo.toml @@ -29,3 +29,6 @@ serde = { version = "1.0.89", features = ["derive","alloc"], default-features = [dev-dependencies] toml = { version = "0.5.6", git = "https://github.com/diondokter/toml-rs", default-features = false, rev = "c4161aa" } + +[package.metadata.docs.rs] +all-features = true \ No newline at end of file