mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-25 21:42:20 +03:00
11 lines
198 B
Rust
11 lines
198 B
Rust
|
use std::{
|
||
|
fs,
|
||
|
io::{self, Write},
|
||
|
};
|
||
|
|
||
|
fn main() -> io::Result<()> {
|
||
|
fs::create_dir_all("./target")?;
|
||
|
fs::File::create("./target/mydata")?.write_all(b"hello world!\n")?;
|
||
|
Ok(())
|
||
|
}
|