mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
... for ChannelError and APIMisuseError Before this commit, When rl returns error, we don't know The actual parameter which caused the error. By returning parameterised `String` instead of predefined `&'static str`, We can give a caller improved error message. TestLogger now has two additional methods 1. `assert_log_contains` which checks the logged messsage has how many entry which includes the specified string as a substring. 2. `aasert_log_regex` mostly the same with `assert_log_contains` but it is more flexible that caller specifies regex which has to be satisfied instead of just a substring. For regex, tests now includes `regex` as dev-dependency.
31 lines
961 B
TOML
31 lines
961 B
TOML
[package]
|
|
name = "lightning"
|
|
version = "0.0.11"
|
|
authors = ["Matt Corallo"]
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/rust-bitcoin/rust-lightning/"
|
|
description = """
|
|
A Bitcoin Lightning library in Rust.
|
|
Does most of the hard work, without implying a specific runtime, requiring clients implement basic network logic, chain interactions and disk storage.
|
|
Still missing tons of error-handling. See GitHub issues for suggested projects if you want to contribute. Don't have to bother telling you not to use this for anything serious, because you'd have to build a client around it to even try.
|
|
"""
|
|
|
|
[features]
|
|
fuzztarget = ["bitcoin/fuzztarget"]
|
|
# Unlog messages superior at targeted level.
|
|
max_level_off = []
|
|
max_level_error = []
|
|
max_level_warn = []
|
|
max_level_info = []
|
|
max_level_debug = []
|
|
|
|
[dependencies]
|
|
bitcoin = "0.23"
|
|
|
|
[dev-dependencies.bitcoin]
|
|
version = "0.23"
|
|
features = ["bitcoinconsensus"]
|
|
|
|
[dev-dependencies]
|
|
hex = "0.3"
|
|
regex = "0.1.80"
|