• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use std::env;
2 use std::fs::File;
3 use std::io::prelude::*;
4 use std::path::PathBuf;
5 
main() -> std::io::Result<()>6 fn main() -> std::io::Result<()> {
7     let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
8     let mut file = File::create(out_path.join("test_content.txt"))?;
9     file.write_all(b"Test content")?;
10     Ok(())
11 }
12