Skip to content

Commit

Permalink
refactor const_sv2 to std logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges Palauqui committed Oct 19, 2024
1 parent b8e7715 commit 166fcb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions protocols/v2/const-sv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ keywords = ["stratum", "mining", "bitcoin", "protocol"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
secp256k1 = { version = "0.28.2", default-features = false, features =["hashes", "alloc","rand","rand-std"] }
secp256k1 = { version = "0.28.2", default-features = false, features = ["hashes", "rand"] }

#[dev-dependencies]
#cbindgen = "0.16.0"

[features]
no_std = []
default = ["std"]
alloc = ["secp256k1/alloc"]
std = ["alloc", "secp256k1/rand-std"]

[package.metadata.docs.rs]
all-features = true
2 changes: 1 addition & 1 deletion protocols/v2/const-sv2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//! `channel_id`. In this case, the first 4 bytes of the payload represent the
//! `channel_id` the message is destined for.

#![cfg_attr(feature = "no_std", no_std)]
#![cfg_attr(not(feature = "std"), no_std)]

/// Identifier for the extension_type field in the SV2 frame, indicating no
/// extensions.
Expand Down

0 comments on commit 166fcb8

Please sign in to comment.