Skip to content

Commit

Permalink
Merge pull request #71 from mastfissh/cross-compile
Browse files Browse the repository at this point in the history
Cross compile
  • Loading branch information
mastfissh authored Jan 31, 2022
2 parents eede923 + 4d77da7 commit 5a5f929
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
brew install cairo
- uses: actions/checkout@master
- name: Run tests
run: cargo test --all
run: cargo test --all --features gui
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ lto = "thin"
walkdir = "2"
rayon = "1.5"
structopt = "0.3"
druid = "0.7"
crossbeam-channel = "0.5"
typed-arena = "2"
seahash = "4.1.0"
dashmap = "4.0.2"
druid = {version = "0.7",optional = true}

[lib]
name = "dupelib"
Expand All @@ -27,6 +27,10 @@ path = "src/lib.rs"
[dev-dependencies]
criterion = "0.3"


[[bench]]
name = "my_benchmark"
harness = false

[features]
gui = ["druid"]
1 change: 1 addition & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[target.armv7-unknown-linux-gnueabihf]
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
This detects files that are byte for byte identical. Useful for freeing up space if you have a badly organized pile of media files.

This should use multiple cores and tries to optimize for speed by using multiple passes. Accessing filesystem metadata is cheap, so first it traverses the filesystem to find files with the same size. If it finds multiple files with the same filesize, then it hashes the contents of the file. The CLI version should run on windows, linux and macos. The GUI version has been tested with windows and linux - not sure if it works on macos.

To create an ARM compatible binary, run
```sh
cross build --bin cli --release --target armv7-unknown-linux-gnueabihf
```

0 comments on commit 5a5f929

Please sign in to comment.