typesafe-builders 0.5.0

Infallible compile-time checked builders for your structs.
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() {
	// Go upwards until we find README.md
	let mut path = std::env::current_dir().unwrap();
	while !path.join("README.md").exists() {
		path = path.parent().unwrap().to_path_buf();
	}
	path = path.join("README.md");

	println!("cargo:rustc-env=README_PATH={}", path.display());
}