Skip to content

Commit 12d6562

Browse files
committed
created changelog in prepartion for v5.
1 parent ced4f8e commit 12d6562

2 files changed

Lines changed: 83 additions & 53 deletions

File tree

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
### 5.0.0
2+
3+
#### Breaking
4+
5+
Reworked error handling by creating img_diff own Result & Error types.
6+
7+
#### Dependencies
8+
9+
- updated image@0.21.2 to image@0.22.2
10+
- updated criterion@0.2.11 to criterion@0.3.0
11+
- updated structopt@0.2.18 to structopt@0.3.6
12+
- updated predicates@1.0.1 to predicates@1.0.2
13+
- updated assert_cmd@0.11.1 to assert_cmd@0.12.0
14+
- swapped tempdir@0.3.7 (deprecated) to tempfile@3.1.0
15+
16+
#### CI
17+
18+
Dropped FreeBSD support (following on cross)
19+
20+
### 4.0.0
21+
22+
Removed Dssim and a bunch of other dependencies.
23+
24+
Now the value shown is a percentage. More details above.
25+
26+
Uniform value no matter the image type.
27+
28+
### 3.0.2
29+
30+
Fixed some issues and migrated to using tools as recommended by the CLI WG
31+
32+
- Migrated to StructOpt
33+
- Migrated to assert_cmd
34+
- Added human friendly panic
35+
36+
Removed all unwraps and provide error messages.
37+
38+
Updated dependencies.
39+
40+
More typo fixes.
41+
42+
Updated future features with things from the CLI WG suggestions.
43+
44+
### 3.0.1
45+
46+
Formatted using cargo fmt.
47+
48+
Fixed clippy issues.
49+
50+
Fixed typos and updated docs.
51+
52+
Updated dependencies.
53+
54+
### 3.0.0
55+
56+
Removed Multi-threaded flag making that the default.
57+
58+
Upgraded to Rust Edition 2018

README.md

Lines changed: 25 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,58 @@ Rust based Command line tool to diff images in 2 structurally similar folders an
1111
The value outputted represent a percentage of how much the amount of pixel data differs from the hightest possible value for that given image in each pixel.
1212

1313
## Future Features
14-
* Support multiple format's of images (JPEG).
15-
* Allow for a threshold to output diff file.
14+
15+
- Support multiple format's of images (JPEG).
16+
- Allow for a threshold to output diff file.
1617

1718
### From the CLI WG
18-
* Revise stdout & stderr efficiency (avoid flush by using a stream).
19-
* Add logging (log crate)
20-
* Add Progress bar (indicatif crate)
21-
* Add types of output (convey crate)
22-
* Generate a man page (clap crate)
19+
20+
- Revise stdout & stderr efficiency (avoid flush by using a stream).
21+
- Add logging (log crate)
22+
- Add Progress bar (indicatif crate)
23+
- Add types of output (convey crate)
24+
- Generate a man page (clap crate)
2325

2426
## Usage
2527

2628
img_diff -s path\to\images -d path\to\images\to\compare -f path\to\output\diff\images
2729

2830
Will go trough all the files in the -s dir and subdirectories and compare them to the ones in the -d outputting diff files if a difference is found to -f dir.
2931

30-
-v
32+
-v
3133

3234
enables verbose mode and output to stderr in case of a difference found.
3335

34-
3536
## Usage in CI
36-
img_diff -s path\to\images -d path\to\images\to\compare -f path\to\output\diff\images -v 2> results/output.txt
37+
38+
img_diff -s path\to\images -d path\to\images\to\compare -f path\to\output\diff\images -v 2> results/output.txt
3739

3840
This will enable verbose output and enable the results of failed comparisons to be put into output.txt
3941
We can use this to enable CI with
40-
41-
if [[ -s results/output.txt ]]; then exit 1; else exit 0; fi
42+
if [[ -s results/output.txt ]]; then exit 1; else exit 0; fi
4243

4344
## Compile from source
45+
4446
git clone https://github.com/Mike-Neto/img_diff.git
4547
cd img_diff
4648
cargo build --release
4749

4850
## Build all files
49-
cargo build && cargo test && cargo test --benches
51+
52+
cargo build && cargo test && cargo test --benches
5053
cargo +beta build && cargo +beta test && cargo +beta test --benches
51-
cargo +nightly build && cargo +nightly test && cargo +nightly test --benches
54+
cargo +nightly build && cargo +nightly test && cargo +nightly test --benches
5255

5356
## Test
54-
cargo test
57+
58+
cargo test
5559

5660
## Docs
61+
5762
cargo doc --open
5863

5964
## Crate
65+
6066
[Crates.io](https://crates.io/crates/img_diff)
6167

6268
## Download
@@ -68,6 +74,7 @@ You need [Rust](https://www.rust-lang.org)
6874
You can also download a binary release for your platform on [github releases](https://github.com/Mike-Neto/img_diff/releases/latest)
6975

7076
## Publish process
77+
7178
cargo bump (major|minor|patch)
7279
git commit -m "v4.0.0"
7380
git tag -a v4.0.0 -m "v4.0.0"
@@ -77,9 +84,11 @@ You can also download a binary release for your platform on [github releases](ht
7784
## Benchmarking and Profiling
7885

7986
### Dependencies
87+
8088
sudo apt install valgrind kcachegrind
8189

8290
### Local Benchmarks
91+
8392
Will run all all benchmarks against local data.
8493

8594
cargo clean
@@ -89,50 +98,13 @@ Will run all all benchmarks against local data.
8998
cargo bench
9099

91100
### Profiling changes
101+
92102
cargo bench img_diff/subtract
93103
# Check for the binary name which will then be used as input bellow
94104
valgrind --tool=callgrind --dump-instr=yes --collect-jumps=yes --simulate-cache=yes target/release/deps/bench-f72b65412859cf2f --bench img_diff/subtract
95105
# Check for the above output file name
96106
kcachegrind callgrind.out.20282
97107

98-
99-
## Changelog
100-
101-
### From 3.0.2
102-
Removed Dssim and a bunch of other dependencies.
103-
104-
Now the value shown is a percentage. More details above.
105-
106-
Uniform value no matter the image type.
107-
108-
### From 3.0.1
109-
Fixed some issues and migrated to using tools as recommended by the CLI WG
110-
* Migrated to StructOpt
111-
* Migrated to assert_cmd
112-
* Added human friendly panic
113-
114-
Removed all unwraps and provide error messages.
115-
116-
Updated dependencies.
117-
118-
More typo fixes.
119-
120-
Updated future features with things from the CLI WG suggestions.
121-
122-
### From 3.0.0
123-
Formatted using cargo fmt.
124-
125-
Fixed clippy issues.
126-
127-
Fixed typos and updated docs.
128-
129-
Updated dependencies.
130-
131-
### From 2.1.0
132-
Removed Multi-threaded flag making that the default.
133-
134-
Upgraded to Rust Edition 2018
135-
136108
## License
137109

138110
Copyright 2018 Miguel Mendes

0 commit comments

Comments
 (0)