Damien Elmes
b396313fe5
Update Rust deps ( #2332 )
...
* Temporarily disable hakari
* Upgrade compatible deps except Chrono
* Update semver-incompatible crates
* Re-enable hakari
* Update licenses & cargo-deny
* Fix new clippy lints
* Update to latest Rust
2023-01-18 22:24:29 +10:00
Damien Elmes
7216032e82
Switch Rust import style ( #2330 )
...
* Prepare to switch Rust import style
* Run nightly format
Closes #2320
* Clean up a few imports
* Enable comment wrapping
* Wrap comments
2023-01-18 21:39:55 +10:00
Damien Elmes
786eef6d79
Minor Rust cleanups ( #2272 )
...
* Run cargo +nightly fmt
* Latest prost-build includes clippy workaround
* Tweak Rust protobuf imports
- Avoid use of stringify!(), as JetBrains editors get confused by it
- Stop merging all protobuf symbols into a single namespace
* Remove some unnecessary qualifications
Found via IntelliJ lint
* Migrate some asserts to assert_eq/ne
* Remove mention of node_modules exclusion
This no longer seems to be necessary after migrating away from Bazel,
and excluding it means TS/Svelte files can't be edited properly.
2022-12-16 21:40:27 +10:00
Damien Elmes
553cadce56
Update to latest rules_rust and Rust 1.64
2022-09-24 11:12:58 +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
b00c62455a
handle missing deck ID in templates
...
https://github.com/ankidroid/Anki-Android/issues/7512
2021-01-25 16:47:23 +10:00
Damien Elmes
bdf6e2b87d
handle negative review times in sync
2020-08-07 15:02:03 +10:00
Damien Elmes
176ab312da
handle some instances of floats when an integer is expected during sync
2020-08-03 17:47:15 +10:00
Damien Elmes
bca49bd054
load/save note types in backend
...
This allows us to normalize bad data, and is the first step towards
splitting note types into separate tables.
2020-04-08 10:05:07 +10:00
Damien Elmes
089a68eb43
move deck conf handling to backend
2020-03-30 14:39:46 +10:00