obfstr 0.2.4

Compiletime string constant obfuscation for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;

fn main() {
	// "Forgive me, Father, for I have sinned"
	println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");

	// Accept external source of randomness
	println!("cargo:rerun-if-env-changed=OBFSTR_SEED");

	// Ensure there's always a valid seed
	if let Err(_) = env::var("OBFSTR_SEED") {
		println!("cargo:rustc-env=OBFSTR_SEED=FIXED");
	}
}