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: No such file or directory (os error 2) $DIR/target/tests/trybuild/include_json/nonexistent.json
 --> tests/ui/no_such_file.rs:4:13
  |
4 |     let _ = include_json!(concat!(env!("CARGO_MANIFEST_DIR"), "/nonexistent.json"));
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `include_json` (in Nightly builds, run with -Z macro-backtrace for more info)