diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 340ec590..8ed932ab 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -10,8 +10,8 @@ on: env: # Show colored output in CI. CARGO_TERM_COLOR: always - # Fail on documentation warnings, generate an index page. - RUSTDOCFLAGS: '-D warnings --cfg docsrs --show-type-layout --enable-index-page -Zunstable-options' + # Generate an index page. + RUSTDOCFLAGS: '--cfg docsrs --show-type-layout --enable-index-page -Zunstable-options' jobs: # Build documentation. diff --git a/Cargo.lock b/Cargo.lock index d8628217..809bdf28 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -508,6 +508,7 @@ dependencies = [ "pretty_assertions", "proptest", "rayon", + "serde", "tempfile", "thread_local", "tokio", diff --git a/storage/blockchain/Cargo.toml b/storage/blockchain/Cargo.toml index 8a882142..fe242bc0 100644 --- a/storage/blockchain/Cargo.toml +++ b/storage/blockchain/Cargo.toml @@ -31,6 +31,7 @@ curve25519-dalek = { workspace = true } cuprate-pruning = { path = "../../pruning" } monero-serai = { workspace = true, features = ["std"] } paste = { workspace = true } +serde = { workspace = true, optional = true } # `service` feature. crossbeam = { workspace = true, features = ["std"], optional = true } diff --git a/types/src/blockchain.rs b/types/src/blockchain.rs index 5a09ca3d..4a280bec 100644 --- a/types/src/blockchain.rs +++ b/types/src/blockchain.rs @@ -9,11 +9,6 @@ use std::{ ops::Range, }; -#[cfg(feature = "borsh")] -use borsh::{BorshDeserialize, BorshSerialize}; -#[cfg(feature = "serde")] -use serde::{Deserialize, Serialize}; - use crate::types::{ExtendedBlockHeader, OutputOnChain, VerifiedBlockInformation}; //---------------------------------------------------------------------------------------------------- ReadRequest