mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-24 11:26:03 +00:00
fix feature cfgs
This commit is contained in:
parent
374bc77cfb
commit
1ad8b34941
3 changed files with 0 additions and 6 deletions
|
@ -22,7 +22,6 @@ hex-literal = { workspace = true, optional = true }
|
|||
paste = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
monero-serai = { workspace = true }
|
||||
hex = { workspace = true, features = ["std"] }
|
||||
pretty_assertions = { workspace = true }
|
||||
|
||||
|
|
|
@ -18,13 +18,10 @@ macro_rules! generate_genesis_consts {
|
|||
$(
|
||||
#[doc = concat!(stringify!([<$network:camel>]), " data.")]
|
||||
pub mod [<$network:lower>] {
|
||||
#[cfg(feature = "monero-serai")]
|
||||
use monero_serai::{block::Block, transaction::Transaction};
|
||||
#[cfg(feature = "monero-serai")]
|
||||
use std::sync::LazyLock;
|
||||
|
||||
#[doc = concat!("The ", stringify!([<$network:lower>]), " genesis block in [`Block`] form.")]
|
||||
#[cfg(feature = "monero-serai")]
|
||||
pub static GENESIS_BLOCK: LazyLock<Block> =
|
||||
LazyLock::new(|| Block::read(&mut GENESIS_BLOCK_BYTES).unwrap());
|
||||
|
||||
|
@ -41,7 +38,6 @@ macro_rules! generate_genesis_consts {
|
|||
pub const GENESIS_BLOCK_HASH_BYTES: [u8; 32] = hex_literal::hex!($block_hash);
|
||||
|
||||
#[doc = concat!("The ", stringify!([<$network:lower>]), " genesis block in [`Transaction`] form.")]
|
||||
#[cfg(feature = "monero-serai")]
|
||||
pub static GENESIS_TX: LazyLock<Transaction> =
|
||||
LazyLock::new(|| Transaction::read(&mut GENESIS_TX_BYTES).unwrap());
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ cfg_if::cfg_if! {
|
|||
// Used in test modules.
|
||||
if #[cfg(test)] {
|
||||
use hex as _;
|
||||
use monero_serai as _;
|
||||
use pretty_assertions as _;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue