include_json 0.1.2

Parse JSON file at compile time and embed as serde_json::Value
Documentation
1
2
3
4
5
6
7
error: lone leading surrogate in hex escape at line 2 column 9 $DIR/target/tests/trybuild/include_json/../../../../tests/ui/invalid_json.json
 --> tests/ui/invalid_json.rs:4:13
  |
4 |     let _ = include_json!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../../../tests/ui/invalid_json.json"));
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `include_json` (in Nightly builds, run with -Z macro-backtrace for more info)