hjson-rust
hjson-rust copied to clipboard
Hjson for Rust
testing the from_slice function with valid utf8 gave me this error: thread '' panicked at 'attempt to subtract with overflow', /home/capitol/project/hjson-rust/hjson/src/de.rs:294:22 complete stacktrace: ``` #0 0x55a627176731 in __sanitizer_print_stack_trace /rustc/llvm/src/llvm-project/compiler-rt/lib/asan/asan_stack.cpp:86:3 #1...
Hi I found that the from_slice function panics if the input isn't a valid utf8 string instead of returning an error value. Can be reproduced with this unit test: ```...
The linked-hash-map crate release 0.5.3 contained a critical bugfix; older releases might stop working when the compiler is able to better detect misuses of uninitialized memory (https://github.com/rust-lang/rust/pull/71274). Would be great...
Error occured after I passed a string that contains integer/float in the body. ### Error ``` thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax("trailing characters", 1, 3)',...
Example: ```hjson { foo: { /bar/: /baz/bak foo: /fnord } } ``` becomes: ```json { "foo": { "bar/": "baz/bak", "foo": "fnord" } } ``` :/
See https://github.com/hjson/hjson/issues/74