ci: fix doc.yml (#213)

* types: remove borsh/serde

* blockchain: re-add optional serde

* doc.yml: remove `-D warnings`
This commit is contained in:
hinto-janai 2024-07-04 10:52:51 -04:00 committed by GitHub
parent a8b58fa4db
commit 71131a4836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 7 deletions

View file

@ -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.

1
Cargo.lock generated
View file

@ -508,6 +508,7 @@ dependencies = [
"pretty_assertions",
"proptest",
"rayon",
"serde",
"tempfile",
"thread_local",
"tokio",

View file

@ -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 }

View file

@ -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