Macro std::include_bytes
Reads a file during compilation and returns its contents as a string slice.
Example
// Cheating quine
use std::{include_bytes, file};
let source = include_bytes!(file!());
print!("{}", source);
Run this example
Reads a file during compilation and returns its contents as a string slice.
// Cheating quine
use std::{include_bytes, file};
let source = include_bytes!(file!());
print!("{}", source);
Run this example