done
echo -e "\n\nTesting no-std builds"
-for DIR in lightning-invoice; do
+for DIR in lightning-invoice lightning-rapid-gossip-sync; do
cargo test -p $DIR --verbose --color always --no-default-features
# check if there is a conflict between no-std and the c_bindings cfg
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
done
echo -e "\n\nTesting no-std flags in various combinations"
-for DIR in lightning lightning-rapid-gossip-sync; do
+for DIR in lightning; do
cargo test -p $DIR --verbose --color always --no-default-features --features no-std
# check if there is a conflict between no-std and the default std feature
cargo test -p $DIR --verbose --color always --features no-std
done
-for DIR in lightning lightning-rapid-gossip-sync; do
+for DIR in lightning; do
# check if there is a conflict between no-std and the c_bindings cfg
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
done
///
/// `sync_path`: Path to the file where the gossip update data is located
///
- #[cfg(all(feature = "std", not(feature = "no-std")))]
+ #[cfg(feature = "std")]
pub fn sync_network_graph_with_file_path(
&self, sync_path: &str,
) -> Result<u32, GraphSyncError> {
}
}
-#[cfg(all(feature = "std", not(feature = "no-std")))]
+#[cfg(feature = "std")]
#[cfg(test)]
mod tests {
use std::fs;
edition = "2021"
[features]
-default = ["lightning/no-std", "lightning-rapid-gossip-sync/no-std"]
+default = ["lightning/no-std"]
[dependencies]
lightning = { path = "../lightning", default-features = false }