mirror of
https://github.com/fanzeyi/cargo-play
synced 2025-02-16 16:58:23 +00:00
11 lines
226 B
Rust
11 lines
226 B
Rust
//# rand = "0.5.0"
|
|
//# dtoa = { git = "https://github.com/dtolnay/dtoa.git" }
|
|
|
|
fn main() -> std::io::Result<()> {
|
|
let mut buf = Vec::new();
|
|
dtoa::write(&mut buf, 2.71828f64)?;
|
|
|
|
println!("{:?}", buf);
|
|
|
|
Ok(())
|
|
}
|