Skip to content

Commit ef97e33

Browse files
committed
fix pddb in doc-deps target
1 parent b663929 commit ef97e33

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

services/pddb/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ board-baosor = [
115115
] # Precursor form factor
116116
# board-dabao is not a valid target as it lacks external SPI flash
117117

118+
doc-deps = []
119+
118120
# when selected, physical disk addresses are set to 64 bits, otherwise, they are 32 bits.
119121
# 32 bit addressing is recommended for Precursor, as its disk is only 128MiB and it has limited RAM for bookkeeping.
120122
u64_pa = []

services/pddb/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -750,14 +750,14 @@ impl Pddb {
750750
};
751751
// this is a two-phase query, because it's quite likely that the number of keys can be very large in a
752752
// dict.
753-
#[cfg(feature = "gen1")]
753+
#[cfg(any(feature = "gen1"))]
754754
let token = [
755755
self.trng.get_u32().unwrap(),
756756
self.trng.get_u32().unwrap(),
757757
self.trng.get_u32().unwrap(),
758758
self.trng.get_u32().unwrap(),
759759
];
760-
#[cfg(feature = "gen2")]
760+
#[cfg(any(feature = "gen2", feature = "doc-deps"))]
761761
let token = xous::create_server_id().unwrap().to_array();
762762
let request = PddbDictRequest {
763763
basis_specified: basis_name.is_some(),
@@ -873,7 +873,7 @@ impl Pddb {
873873
self.trng.get_u32().unwrap(),
874874
self.trng.get_u32().unwrap(),
875875
];
876-
#[cfg(feature = "gen2")]
876+
#[cfg(any(feature = "gen2", feature = "doc-deps"))]
877877
let token = xous::create_server_id().unwrap().to_array();
878878
let request = PddbDictRequest {
879879
basis_specified: basis_name.is_some(),

0 commit comments

Comments
 (0)