get_env 0.1.0

Get argv and envp by hook or by crook. This library goes further than the stdlib to get arguments and environment variables, including reading from /proc/self/cmdline and similar.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![no_main]

extern crate get_env;
extern crate serde_json;

#[no_mangle]
pub extern "C" fn main(_argc: i32, _argv: *const *const u8) -> i32 {
	println!(
		"{}",
		serde_json::to_string(&(get_env::args_os(), get_env::vars_os())).unwrap()
	);
	0
}