Skip to content

Commit 5fec3f1

Browse files
authored
Merge pull request #1318 from plebhash/simplify-doc-features
simplify `[package.metadata.docs.rs]` on `protocols` crates
2 parents 651f35a + 2e8e4fd commit 5fec3f1

File tree

15 files changed

+4
-37
lines changed

15 files changed

+4
-37
lines changed

protocols/v2/binary-sv2/binary-sv2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ prop_test = ["binary_codec_sv2/prop_test", "derive_codec_sv2"]
2828
with_buffer_pool = ["binary_codec_sv2/with_buffer_pool", "derive_codec_sv2"]
2929

3030
[package.metadata.docs.rs]
31-
all-features = true
31+
features = ["core", "with_buffer_pool"]

protocols/v2/binary-sv2/no-serde-sv2/codec/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ prop_test = ["quickcheck"]
2424
with_buffer_pool = ["buffer_sv2"]
2525

2626
[package.metadata.docs.rs]
27-
all-features = true
27+
features = ["with_buffer_pool"]

protocols/v2/binary-sv2/no-serde-sv2/derive_codec/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ binary_codec_sv2 = {version = "^1.0.0", path="../codec"}
1818

1919
[lib]
2020
proc-macro = true
21-
22-
[package.metadata.docs.rs]
23-
all-features = true

protocols/v2/binary-sv2/serde-sv2/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
1717
[dependencies]
1818
serde = { version = "1.0.89", features = ["derive", "alloc"], default-features = false }
1919
buffer_sv2 = {version = "^1.0.0", path = "../../../../utils/buffer"}
20-
21-
[package.metadata.docs.rs]
22-
all-features = true

protocols/v2/codec-sv2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ with_buffer_pool = ["framing_sv2/with_buffer_pool"]
2929
no_std = []
3030

3131
[package.metadata.docs.rs]
32-
all-features = true
32+
features = ["with_buffer_pool", "noise_sv2"]

protocols/v2/const-sv2/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ homepage = "https://stratumprotocol.org"
1212
keywords = ["stratum", "mining", "bitcoin", "protocol"]
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
15-
16-
[package.metadata.docs.rs]
17-
all-features = true

protocols/v2/framing-sv2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ with_serde = ["binary_sv2/with_serde", "serde", "buffer_sv2?/with_serde"]
2929
with_buffer_pool = ["binary_sv2/with_buffer_pool", "buffer_sv2"]
3030

3131
[package.metadata.docs.rs]
32-
all-features = true
32+
features = ["with_buffer_pool"]

protocols/v2/noise-sv2/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@ const_sv2 = { version = "^3.0.0", path = "../../../protocols/v2/const-sv2"}
2222
[dev-dependencies]
2323
quickcheck = "1.0.3"
2424
quickcheck_macros = "1"
25-
26-
[package.metadata.docs.rs]
27-
all-features = true

protocols/v2/roles-logic-sv2/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ with_serde = [ "serde",
4343
prop_test = ["template_distribution_sv2/prop_test"]
4444
# Code coverage tools may conflict with the nopanic logic, so we can disable it when needed
4545
disable_nopanic = []
46-
47-
[package.metadata.docs.rs]
48-
all-features = true

protocols/v2/subprotocols/common-messages/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ serde_repr = { version= "0.1.10", optional = true }
2424
[features]
2525
with_serde = ["binary_sv2/with_serde", "serde", "serde_repr"]
2626
prop_test = ["quickcheck"]
27-
28-
[package.metadata.docs.rs]
29-
all-features = true

0 commit comments

Comments
 (0)