Skip to content

Commit 26e1d68

Browse files
Separate time functionality into dedicated feature flag
- Add 'time' feature flag to allow disabling time-dependent functionality - Include 'time' in default features - Allow users to disable SystemTime::now without disabling all std features - Follows pattern established in other crates (e.g., lightning-transaction-sync) - Improves compatibility with WASM environments
1 parent 830ffa0 commit 26e1d68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning-liquidity/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ categories = ["cryptography::cryptocurrencies"]
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[features]
17-
default = ["std"]
17+
default = ["std", "time"]
1818
std = ["lightning/std"]
19+
time = []
1920
backtrace = ["dep:backtrace"]
2021

2122
[dependencies]
@@ -46,4 +47,5 @@ check-cfg = [
4647
"cfg(c_bindings)",
4748
"cfg(backtrace)",
4849
"cfg(ldk_bench)",
50+
"cfg(time)",
4951
]

0 commit comments

Comments
 (0)