dflemstr / rq

Record Query - A tool for doing record analysis and transformation
Apache License 2.0
2.28k stars 57 forks source link

Bump yaml-rust dependency 0.4.3 → 0.4.5 #219

Closed DeeUnderscore closed 3 years ago

DeeUnderscore commented 3 years ago

Currently, there is a bug with yaml output when rq is compiled with Rust 1.53.0:

$ echo '{"a": "a"}' | RUST_BACKTRACE=1 rq -jY
thread 'main' panicked at 'attempted to leave type `linked_hash_map::Node<yaml_rust::yaml::Yaml, yaml_rust::yaml::Yaml>` uninitialized, which is invalid', /build/rustc-1.53.0-src/library/core/src/mem/mod.rs:660:9
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: serde::ser::Serializer::collect_map
   4: <record_query::value::yaml::Sink<W> as record_query::value::Sink>::write
   5: rq::run_source_sink
   6: rq::run
   7: rq::main

This appears to be related to yaml-rust (see chyh1990/yaml-rust#167), and bumping yaml-rust to 0.4.5 seems to solve it.