From da24aedc5c8679afb42ea17ebcda8755016d5eaa Mon Sep 17 00:00:00 2001 From: Avril Date: Fri, 15 Apr 2022 19:28:19 +0100 Subject: [PATCH] Started binary package: phash-sum. (skel) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for phash's current commit: Blessing − 吉 --- Cargo.toml | 8 +++++++- src/bin/phash-sum.rs | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/bin/phash-sum.rs 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 +}