-
-
Save wirelyre/51523992e008e08d8895ebce83222dde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::env; | |
use std::fs::File; | |
use std::io::Write; | |
use std::path::Path; | |
fn main() { | |
let dest = env::var("OUT_DIR").unwrap(); | |
let mut file = File::create(&Path::new(&dest).join("ice.rs")).unwrap(); | |
writeln!(&mut file, "#[derive(Clone)] pub struct Little;").unwrap(); | |
writeln!(&mut file, "#[derive(Clone)] pub struct Big(").unwrap(); | |
for _ in 0..614 { | |
writeln!(&mut file, "Little,").unwrap(); | |
} | |
writeln!(&mut file, ");").unwrap(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include!(concat!(env!("OUT_DIR"), "/ice.rs")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment