mirror of https://github.com/sotrh/learn-wgpu
commit
588a5442c5
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "md-builder"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
markdown = "0.3.0"
|
||||
rayon = "1.7.0"
|
||||
thiserror = "1.0.40"
|
@ -0,0 +1,28 @@
|
||||
use std::path::Path;
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
#[error("Error processing file: {0}")]
|
||||
Io(#[from] std::io::Error),
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
let dir_path = match std::env::args().skip(1).next() {
|
||||
Some(s) => s,
|
||||
None => {
|
||||
println!("Usage: md-builder 'directory with markdown'");
|
||||
std::process::exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
let dir = std::fs::read_dir(dir_path)?;
|
||||
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn process_file<P: AsRef<Path>>(path: P) -> Result<(), Error> {
|
||||
let path = path.as_ref();
|
||||
Ok(())
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
fn main() {
|
||||
pong::start();
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue