sharkdp
f8f410b8ee
Simplify is_printable check, closes #78
v0.8.0
2020-06-07 15:26:07 +02:00
sharkdp
7307077a66
Run lib example on TravisCI
2020-06-07 15:14:14 +02:00
sharkdp
3ca002638c
Improve help text
2020-06-07 15:12:35 +02:00
sharkdp
ccfceaf58c
Minor formatting
2020-06-07 15:12:35 +02:00
sharkdp
751b670d5b
Fix clippy suggestions
2020-06-07 15:12:35 +02:00
sharkdp
478cc25ffd
Bump version to 0.8.0
2020-06-07 15:12:35 +02:00
sharkdp
b1c4b0bf2b
Update dependencies
2020-06-07 15:12:35 +02:00
sharkdp
1951c59b0c
Add CHANGELOG
2020-06-07 15:12:35 +02:00
Erich Gubler
ddc3a5c04a
BREAKING CHANGE: improvement: change byte counts to be a positive i64 (with newtype PositiveI64) instead of a u64 to take advantage of new skip impl for --seek with non-Seek Inputs like STDIN
...
This is technically a breaking change because it halves the upper range
of accepted values for byte counts. I thought that fine under the
assumption it will be rare for users to ever want to specify something
in the upper half of `u64`'s value range, especially considering that
this can pave the way for having negative byte offsets (instead of just
counts).
2020-06-07 11:08:01 +02:00
Erich Gubler
6d5c61b671
BREAKING CHANGE: improvement(lib): use u64 for Printer::display_offset and Squeezer::process, not usize
...
Technically a breaking change for architectures where
`size_of::<usize>() > size_of::<u64>()`, but that strikes me as
extremely unlikely.
This change is important because most file seek offsets, even on older
architectures with word sizes smaller than `u32`, accept a `u64`. In
particular, Rust's own `std` acknowledges this. So, we're actually going
against prior art in Rust by using a `usize`.
2020-06-07 11:08:01 +02:00
Erich Gubler
c5c8d1190f
BREAKING CHANGE: feat(lib): skip forward when relative forward seeks are specified on non-seekable streams
...
This is technically a breaking change, since the data and behavior of
`Input` is exposed publicly. However, it seems unlikely to me that
clients actually depended on a failure in the case that's being changed.
2020-06-07 11:08:01 +02:00
Erich Gubler
1459616d27
improvement: use or instead of unwrap_or_else for display_offset
2020-06-07 11:08:01 +02:00
Erich Gubler
8af8a94699
improvement(lib): align string literals better for black-box tests
2020-05-28 18:44:23 +02:00
Erich Gubler
07cdc97e74
improvement: replace trim_start_matches with slicing op
2020-05-28 18:43:53 +02:00
Erich Gubler
bcca1fae03
feat: add block unit and block-size option
2020-05-28 18:43:53 +02:00
Erich Gubler
48ad95efe6
feat: add units system to decimals with {k,m,g,t}[[i]b] support
2020-05-28 18:43:53 +02:00
Erich Gubler
3b3889967c
refactor: extract "0x" literal into HEX_PREFIX
2020-05-28 18:43:53 +02:00
Erich Gubler
57f1fb4dc4
BREAKING CHANGE: improvement: disallow leading '+' after "0x" prefix for u64 parse
2020-05-28 18:43:53 +02:00
Erich Gubler
ef40be0d53
improvement: fix or_fun_call lint from clippy
2020-05-28 18:43:53 +02:00
Erich Gubler
6b235b1d2e
improvement: remove unused atty import
2020-05-28 18:43:53 +02:00
notramo
7cff10b274
Added Void Linux package install to README
2020-05-26 20:03:09 +02:00
Mario Reder
5327b71215
fix review comments
2020-05-13 18:55:24 +02:00
Mario Reder
c336259159
skip option error messages and display offset
2020-05-13 18:55:24 +02:00
sharkdp
133fdd9156
Remove unnecessary RefCell, backport to Rust 1.36
2020-05-13 18:55:24 +02:00
Mario Reder
244f71691d
feat: add skip option
...
resolves #16 and #87
2020-05-13 18:55:24 +02:00
sharkdp
6f73f4c0f0
Remove custom .github folder
2020-03-16 07:55:46 +01:00
sharkdp
7843b2d038
Update links
2020-03-15 11:33:08 +01:00
David Peter
692ff64e4b
Add links to Ubuntu / Debian packages
...
closes #77
v0.7.0
2020-03-09 21:05:26 +01:00
sharkdp
1d156282da
Try -gnu
2020-03-09 20:58:50 +01:00
sharkdp
b4bdf0f85e
Re-enable Windows build
2020-03-09 20:58:50 +01:00
sharkdp
2bda250906
Bump version
2020-03-09 20:41:00 +01:00
sharkdp
f32431e552
Update dependencies
2020-03-09 20:33:08 +01:00
sharkdp
f9cb2bc872
Fix tests
2020-03-09 20:23:46 +01:00
sharkdp
f71ad1e00d
Remove Ctrl-C handler, fixes #84
2020-03-09 20:20:12 +01:00
sharkdp
3b01d0ce19
Disable Windows build
2020-01-26 08:50:55 +01:00
sharkdp
abc79396df
Add simple hexyl-as-a-library example, see #81
2020-01-26 08:12:02 +01:00
David Peter
67b6c2533d
Clarify Windows Terminal requirements
2019-10-08 20:52:54 +02:00
sharkdp
c75a882081
Update dependencies
v0.6.0
2019-10-08 20:32:56 +02:00
sharkdp
81787d0858
Bump version
2019-10-08 20:31:56 +02:00
sharkdp
8e77507686
Enable unit tests on Travis CI
2019-10-08 20:29:52 +02:00
sharkdp
9c46ced572
Enable LTO
2019-10-08 20:09:10 +02:00
sharkdp
161ddd7ea1
Only print to buffer if line is not squeezed
2019-10-08 20:09:10 +02:00
David Peter
53110bac6f
Add sponsor button as an experiment :-)
2019-10-08 18:35:09 +02:00
Tom Milligan
d64053771c
hexyl: add display offset option
2019-10-07 23:36:53 +02:00
Noah AL-Shihabi
23f199ffbd
Remove additional space found on short input
2019-10-01 20:23:57 +02:00
Tom Milligan
175847787d
fix crate import for travis tests
2019-07-17 19:31:37 +02:00
Tom Milligan
622a084ea6
run: factor out mainloop and add tests
2019-07-17 19:31:37 +02:00
Tom Milligan
4c48eedb18
printer: accept any Write as output
2019-07-17 19:31:37 +02:00
Tom Milligan
ca8970b5cc
lib: main and run in bin, everything else in lib
2019-07-17 19:31:37 +02:00
Tom Milligan
fb49b633b2
lib: created, moved bin
2019-07-17 19:31:37 +02:00