File tree 4 files changed +7
-8
lines changed
lightning-rapid-gossip-sync
4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -75,20 +75,20 @@ grep '^max_level_' lightning/Cargo.toml | awk '{ print $1 }'| while read -r FEAT
75
75
done
76
76
77
77
echo -e " \n\nTesting no-std builds"
78
- for DIR in lightning-invoice lightning-background-processor; do
78
+ for DIR in lightning-invoice lightning-background-processor lightning-rapid-gossip-sync ; do
79
79
cargo test -p $DIR --verbose --color always --no-default-features
80
80
# check if there is a conflict between no-std and the c_bindings cfg
81
81
RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
82
82
done
83
83
84
84
echo -e " \n\nTesting no-std flags in various combinations"
85
- for DIR in lightning lightning-rapid-gossip-sync ; do
85
+ for DIR in lightning; do
86
86
cargo test -p $DIR --verbose --color always --no-default-features --features no-std
87
87
# check if there is a conflict between no-std and the default std feature
88
88
cargo test -p $DIR --verbose --color always --features no-std
89
89
done
90
90
91
- for DIR in lightning lightning-rapid-gossip-sync ; do
91
+ for DIR in lightning; do
92
92
# check if there is a conflict between no-std and the c_bindings cfg
93
93
RUSTFLAGS=" $RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
94
94
done
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ Utility to process gossip routing data from Rapid Gossip Sync Server.
11
11
12
12
[features ]
13
13
default = [" std" ]
14
- no-std = [" lightning/no-std" ]
15
- std = [" lightning/std" ]
14
+ std = []
16
15
17
16
[dependencies ]
18
17
lightning = { version = " 0.0.123-beta" , default-features = false }
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ where
143
143
///
144
144
/// `sync_path`: Path to the file where the gossip update data is located
145
145
///
146
- #[ cfg( all ( feature = "std" , not ( feature = "no-std" ) ) ) ]
146
+ #[ cfg( feature = "std" ) ]
147
147
pub fn sync_network_graph_with_file_path (
148
148
& self , sync_path : & str ,
149
149
) -> Result < u32 , GraphSyncError > {
@@ -191,7 +191,7 @@ where
191
191
}
192
192
}
193
193
194
- #[ cfg( all ( feature = "std" , not ( feature = "no-std" ) ) ) ]
194
+ #[ cfg( feature = "std" ) ]
195
195
#[ cfg( test) ]
196
196
mod tests {
197
197
use std:: fs;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version = "0.1.0"
4
4
edition = " 2021"
5
5
6
6
[features ]
7
- default = [" lightning/no-std" , " lightning-rapid-gossip-sync/no-std " ]
7
+ default = [" lightning/no-std" ]
8
8
9
9
[dependencies ]
10
10
lightning = { path = " ../lightning" , default-features = false }
You can’t perform that action at this time.
0 commit comments