mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
Intended to be a cross-platform implementation of the channelmonitor::Persist trait. This adds a new lightning-persister crate, that uses the newly exposed lightning crate's test utilities. Notably, this crate is pretty small right now. However, due to future plans to add more data persistence (e.g. persisting the ChannelManager, etc) and a desire to avoid pulling in filesystem usage into the core lightning package, it is best for it to be separated out. Note: Windows necessitates the use of OpenOptions with the `write` permission enabled to `sync_all` on a newly opened channel's data file.
21 lines
555 B
TOML
21 lines
555 B
TOML
[workspace]
|
|
|
|
members = [
|
|
"lightning",
|
|
"lightning-net-tokio",
|
|
"lightning-persister",
|
|
]
|
|
|
|
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it.
|
|
# Ideally we would only do this in profile.test, but profile.test only applies to
|
|
# the test binary, not dependencies, which means most of the critical code still
|
|
# gets compiled as -O0. See
|
|
# https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
|
|
[profile.dev]
|
|
opt-level = 1
|
|
panic = "abort"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
panic = "abort"
|