include_json 0.1.2

Parse JSON file at compile time and embed as serde_json::Value
Documentation
1
2
3
4
5
use include_json::include_json;

fn main() {
    let _ = include_json!("tests/relativepath.json");
}