conf-embed 0.1.1

An experimental Rust crate for embedding user configuration (or anything really) in the executable of the program.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io;
use std::process;

fn main() -> io::Result<()> {
	println!("Current config: '{}'", conf_embed::get_config()?);

	println!("Enter a new config:");

	let mut buf = String::new();
	io::stdin().read_line(&mut buf)?;

	println!("Setting new config...");
	conf_embed::new_config(&buf)?;
	println!("Config set, exiting.");
	process::exit(0);
}