wandbox

Crates.iowandbox
lib.rswandbox
version0.1.3
sourcesrc
created_at2020-10-11 10:41:40.577948
updated_at2022-03-06 06:12:49.477755
descriptionAn api binding for Wandbox
homepage
repository
max_upload_size
id298305
size18,752
(Headline)

documentation

README

wandbox-rs

An api binding for Wandbox in rust

Add this to your Cargo.toml

[dependencies]
wandbox = "0.1"

Example

let wbox : Wandbox = Wandbox::new(None, None).await?;

let mut builder = crate::CompilationBuilder::new();
builder.target("gcc-6.3.0");
builder.options_str(vec!["-Wall", "-Werror"]);
builder.code("#include<iostream>\nint main()\n{\nstd::cout<<\"test\";\n}");
builder.build(&wbox)?;

let res = builder.dispatch().await.expect("Failed to lookup");

License

This project is licensed under there LGPL v3 license. This license is available in LICENSE.txt

Commit count: 0

cargo fmt