28 Commits

Author SHA1 Message Date
Adam Lesperance 0c7b05fec9 Fix get_metadata on windows
The MetadataExt functions are nightly-only right now so we need to call
the windows api ourselves to get the device number.  The winapi_util
package has a nice wrapper to do this for us.

The get_device function doesn't appear to be used anywhere so I removed
it.
2020-01-21 00:06:41 -06:00
andy.boot 352c0f7d90 Increment version number 2020-01-19 09:32:49 +00:00
andy.boot 350d695f7c Add num_cpus as Cargo dependency
Will be used to detect single core computers which crash Jwalk
2020-01-18 21:57:11 +00:00
andy.boot a36eec6cae Increment version number 2019-12-30 21:40:30 +00:00
andy.boot da61b15715 Upgrade libraries. Fix assert_cli
New assert_cli library requires we cast the param passed to 'is()' as
it can no longer cast implicitly. I am guessing this is because it is
due to confusion between whether to cast to u8 or str
2019-12-30 21:23:53 +00:00
andy.boot b934445e04 Pin jwalk to dependency version
https://github.com/jessegrosjean/jwalk/issues/13
Having raised the above issue I don't want it fixed in a minor version
as I have added a work around
2019-12-23 15:48:38 +00:00
andy.boot 7e47d5b47a Increment version number 2019-12-08 23:36:48 +00:00
Xavier L'Heureux 86b3cccaf6 perf(IO): use parallel walkdir (jwalk) for super faster traversal 2019-11-26 08:31:52 -05:00
Adam Lesperance a1ece05af5 Testing deps should only be used when testing 2019-11-21 00:05:53 -06:00
Adam Lesperance cef2c588b7 Latest deps 2019-11-20 23:05:57 -06:00
andy.boot 9a9cbefd3d Provide version information with -V
clap does most of this for you - I had forgotten to wire it up
https://github.com/bootandy/dust/issues/33

increment build version
2019-11-02 00:42:57 +00:00
Matt Vertescher 99003cbba9 Upgrade to the 2018 edition 2019-10-26 15:19:07 -04:00
andy.boot 0effaa7fd7 Increment version 2019-10-08 21:05:37 +01:00
Bob 7ac01e8166 Increment version number 2019-10-01 22:18:36 +01:00
bootandy fd68330815 Update cargo lock 2019-07-01 22:25:06 +01:00
andy.boot 6a86e8befd Increment version number 2018-05-09 11:46:42 +01:00
andy.boot 6e2e5761d8 Increment version 2018-04-27 12:46:27 +01:00
andy.boot 24c97ef92f Rewrite to use walkdir instead of recursion
Advised to use walkdir by burntsushi as using recursion on file systems
can blow the stack.

walkdir is slower but allows the code to be cleaner and more reliable

Also experimented with ignore but locking the hashmap resulted in
similar performance to walkdir but with much uglier code.
2018-04-24 14:53:47 +01:00
andy.boot 0c5b08e1d2 Change package name to du-dust
The binary is still called dust. Sadly dust was taken on crates.io.
This change should allow us to send this crate to crates.io
2018-04-18 13:40:52 +01:00
bootandy b8ad44b7f0 increment version 2018-04-06 20:49:22 +01:00
bootandy 1a34bc3198 Integration tests
Several tests for recursive dirs, hard & soft links.
Tests use the tempfile project.

Personally I find the tests hard to read. Am considering adding a
'--no-color' output option as this will make the tests much more
readable. (Currently we have to call format_string to get the matching
colors and if a test fails the diff is very hard to read).
2018-04-06 20:44:02 +01:00
bootandy 5c6165da8a First integration test
This test needs neatening but it is the first example of a working
integration test
2018-04-05 14:45:04 +01:00
bootandy f39b09e79c increment version (0.2.1 already tagged) 2018-04-05 14:45:04 +01:00
bootandy 285fd62850 increment version 2018-04-03 19:53:37 +01:00
Joe Ardent 8fa83e3836 First step of refactor done. 2018-03-21 10:55:03 -07:00
Joe Ardent 7fa2ce3434 start of refactor 2018-03-21 10:55:03 -07:00
bootandy 9f5fe4d01e clean up 2018-03-16 16:14:09 -04:00
bootandy 8356cc6e1b hacking away on an experiment 2018-03-16 15:51:44 -04:00