diff --git a/Cargo.toml b/Cargo.toml index ca6c267..60bb4ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,13 @@ name = "phash" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +#See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lib] +crate-type = ["rlib", "staticlib", "cdylib"] + +[[bin]] +name="phash-sum" [dependencies] #atomic_refcell = "0.1.8" diff --git a/src/bin/phash-sum.rs b/src/bin/phash-sum.rs new file mode 100644 index 0000000..c7f613d --- /dev/null +++ b/src/bin/phash-sum.rs @@ -0,0 +1,7 @@ +extern crate phash; +use phash::*; + +fn main() +{ + //TODO: mmap first argument if it exists; or attempt to mmap stdin; or stream read from stdin into a ParallelDigest etc +}