Damien Elmes
|
ff095ed57b
|
fix clippy lints for latest Rust
|
2021-06-21 13:09:36 +10:00 |
|
Damien Elmes
|
363a843d07
|
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
|
cc54a9251e
|
crate::err -> crate::error
|
2021-04-01 16:07:13 +10:00 |
|
Damien Elmes
|
791894d2d0
|
fix new clippy lints
|
2020-10-09 21:35:53 +10:00 |
|
Damien Elmes
|
0787381a99
|
login/full up/full down plugged in
|
2020-06-01 13:57:10 +10:00 |
|
Damien Elmes
|
aaed0464e5
|
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
|
e72d21e09e
|
move note code into notes.rs, add ability to rollback when unchanged
|
2020-03-20 21:15:23 +10:00 |
|
Damien Elmes
|
c97b37b7ae
|
make logging explicit, and support logging to a file
|
2020-02-29 20:44:01 +10:00 |
|
Damien Elmes
|
e26860ad04
|
don't require a media scan after media deleted inside Anki
|
2020-02-29 14:45:16 +10:00 |
|
Damien Elmes
|
afca40c83f
|
mark deletions in media DB when files are deleted
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
92b76a5ba7
|
gather field references in Rust; media check now mostly complete
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
76a61b8adf
|
hold the DB open for the duration of the check
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
f1b0431cbd
|
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
|
1ca15c10d6
|
mgr didn't need to be mutable
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
8e31068f0a
|
move change tracking into separate file
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
ef14b1a96b
|
simplify code by accumulating stats at the source
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
b21d24f6e8
|
move sync_media() into MediaManager
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
b62819092a
|
remove duplicate method
|
2020-02-17 08:40:17 +10:00 |
|
Damien Elmes
|
e764e68324
|
store sync state in a struct, and reuse ctx across methods
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
78bfbef863
|
media sync working, but unpolished
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
973d8c56d6
|
more refactoring
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
7430d3c64f
|
rearrange some methods to make structure clearer
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
6bf4b9e83e
|
port change tracking
|
2020-02-17 08:40:16 +10:00 |
|
Damien Elmes
|
9bc38647e6
|
initial rs implementation of media database
|
2020-02-17 08:40:16 +10:00 |
|