Skip to content

Commit 6c6dd3e

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 17c469c commit 6c6dd3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-liquidity/Cargo.toml

Lines changed: 2 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 = ["std"]
1920
backtrace = ["dep:backtrace"]
2021

2122
[dependencies]

0 commit comments

Comments
 (0)