1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00

Update configure_me_codegen

Improves developer experience by outputting nice error messages when
compiled with `--features=configure_me_codegen/spanned`.
This commit is contained in:
Martin Habovstiak 2022-11-17 00:59:17 +01:00
parent e14497ce80
commit 8547eed46a
4 changed files with 5 additions and 9 deletions

4
Cargo.lock generated
View File

@ -208,9 +208,9 @@ dependencies = [
[[package]] [[package]]
name = "configure_me_codegen" name = "configure_me_codegen"
version = "0.4.2" version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9aa65df44cc55922b4e22f49939727156a8de25492bf6bd2462a75afc5e155d6" checksum = "981fb98983781be95b91dc4ce7c178ae000f91350d783d43d1ce8adc4963c91f"
dependencies = [ dependencies = [
"cargo_toml", "cargo_toml",
"fmt2io", "fmt2io",

View File

@ -49,7 +49,7 @@ default-features = false
features = ["zstd", "snappy"] features = ["zstd", "snappy"]
[build-dependencies] [build-dependencies]
configure_me_codegen = "0.4.2" configure_me_codegen = "0.4.3"
[dev-dependencies] [dev-dependencies]
tempfile = "3.3" tempfile = "3.3"

View File

@ -1,5 +1,3 @@
extern crate configure_me_codegen; fn main() {
configure_me_codegen::build_script_auto().unwrap_or_else(|error| error.report_and_exit())
fn main() -> Result<(), configure_me_codegen::Error> {
configure_me_codegen::build_script_auto()
} }

View File

@ -16,8 +16,6 @@ pub const ELECTRS_VERSION: &str = env!("CARGO_PKG_VERSION");
const DEFAULT_SERVER_ADDRESS: [u8; 4] = [127, 0, 0, 1]; // by default, serve on IPv4 localhost const DEFAULT_SERVER_ADDRESS: [u8; 4] = [127, 0, 0, 1]; // by default, serve on IPv4 localhost
mod internal { mod internal {
#![allow(unused)]
#![allow(clippy::cognitive_complexity)]
#![allow(clippy::enum_variant_names)] #![allow(clippy::enum_variant_names)]
#![allow(clippy::unnecessary_lazy_evaluations)] #![allow(clippy::unnecessary_lazy_evaluations)]
#![allow(clippy::useless_conversion)] #![allow(clippy::useless_conversion)]