title: Deserialize file using serde_json at compile time
body: <p>At the beginning of my program, I read data from a file:</p>
  
  <pre class="lang-rust prettyprint-override"><code>let file = std::fs::File::open("data/games.json").unwrap();
  let data: Games = serde_json::from_reader(file).unwrap();
  </code></pre>
  
  <p>I would like to know how it would be possible to do this at compile time for the following reasons:</p>
  
  <ol>
  <li>Performance: no need to deserialize at runtime</li>
  <li>Portability: the program can be run on any machine without the need to have the json file containing the data with it.</li>
  </ol>
  
  <p>I might also be useful to mention that, the data can be read only which means the solution can store it as static.</p>