Runkr is a Rust Bunkr client. You can find all the Bunkr related information here
Add the dependency to your Cargo.toml
toml
[dependencies]
runkr = { version = "0.1.*"}
The Runkr object API is really simple, you need to provide the socket address where the Bunkr daemon is listening, and then use each of the available methods to communicate with your Bunkr:
rust
fn main() {
let mut runkr = Runkr::new("/tmp/bunkr-daemon.sock");
runker.new_text_secret("mySecret", "My secret content");
let secret_content = runkr.access("mySecret").unwrap();
println!("{}", secret_content);
let del_res = runkr.delete("mySecret");
match del_res {
Ok(_) => println!("Operation success"),
Err(e) => println!("Error executing operation {}", e)
};
}
The Bunkr operations currently supported by this client: