Damien Elmes
|
64ebc32b3d
|
tidy up Rust imports
rustfmt can do this automatically, but only when run with a nightly
toolchain, so it needs to be manually done for now - see rslib/rusfmt.toml
|
2021-04-18 18:38:54 +10:00 |
|
Damien Elmes
|
094e4ad461
|
crate::err -> crate::error
|
2021-04-01 16:07:13 +10:00 |
|
Damien Elmes
|
c96784c0eb
|
fix new clippy lints
|
2020-10-09 21:35:53 +10:00 |
|
Damien Elmes
|
0e5b7da62a
|
login/full up/full down plugged in
|
2020-06-01 13:57:10 +10:00 |
|
Damien Elmes
|
ee6d7f82e7
|
rework progress handling
- client now polls status instead of backend pushing it
- supports multiple threads
- update throttling happens in one place
|
2020-06-01 13:57:10 +10:00 |
|
Damien Elmes
|
47c142a74c
|
move note code into notes.rs, add ability to rollback when unchanged
|
2020-03-20 21:15:23 +10:00 |
|
Damien Elmes
|
ba4fe71eba
|
make logging explicit, and support logging to a file
|
2020-02-29 20:44:01 +10:00 |
|
Damien Elmes
|
801c5fcc40
|
don't require a media scan after media deleted inside Anki
|
2020-02-29 14:45:16 +10:00 |
|
Damien Elmes
|
23483b0a57
|
mark deletions in media DB when files are deleted
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
fabfcb0338
|
gather field references in Rust; media check now mostly complete
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
3350b4fa69
|
hold the DB open for the duration of the check
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
cee8d4b789
|
DB check
Working, but should be refactored so media DB not re-opened
each time a file is renamed.
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
ce241f9756
|
mgr didn't need to be mutable
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
e5f9ed5a5b
|
move change tracking into separate file
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
5fe1bfc5b4
|
simplify code by accumulating stats at the source
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
4289f7a02a
|
move sync_media() into MediaManager
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
4c8ceeb809
|
remove duplicate method
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
5e5906f183
|
store sync state in a struct, and reuse ctx across methods
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
f20b5b8db6
|
media sync working, but unpolished
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
ec8a91b493
|
more refactoring
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
10f64d54b8
|
rearrange some methods to make structure clearer
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
96f0a5cc3c
|
port change tracking
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
056c2d3fd1
|
initial rs implementation of media database
|
2020-02-17 08:40:16 +10:00 |
|