| Crates.io | wandbox |
| lib.rs | wandbox |
| version | 0.1.3 |
| created_at | 2020-10-11 10:41:40.577948+00 |
| updated_at | 2022-03-06 06:12:49.477755+00 |
| description | An api binding for Wandbox |
| homepage | |
| repository | |
| max_upload_size | |
| id | 298305 |
| size | 18,752 |
An api binding for Wandbox in rust
Add this to your Cargo.toml
[dependencies]
wandbox = "0.1"
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");
This project is licensed under there LGPL v3 license. This license is available in LICENSE.txt