Anki/rslib/src/sync/collection
a.r d9969a9f4f
lazy_static → once_cell → stabilized versions (#3447)
* Anki: Replace lazy_static with once_cell

Unify to once_cell, lazy_static's replacement. The latter in unmaintained.

* Anki: Replace once_cell with stabilized LazyCell / LazyLock as far as possible

Since 1.80: https://github.com/rust-lang/rust/issues/109736 and https://github.com/rust-lang/rust/pull/98165

Non-Thread-Safe Lazy → std::cell::LazyCell https://doc.rust-lang.org/nightly/std/cell/struct.LazyCell.html

Thread-safe SyncLazy → std::sync::LazyLock https://doc.rust-lang.org/nightly/std/sync/struct.LazyLock.html

The compiler accepted LazyCell only in minilints.

The final use in rslib/src/log.rs couldn't be replaced since get_or_try_init has not yet been standardized: https://github.com/rust-lang/rust/issues/109737

* Declare correct MSRV (dae)

Some of our deps require newer Rust versions, so this was misleading.

Updating the MSRV also allows us to use .inspect() on Option now
2024-09-30 23:35:06 +10:00
..
changes.rs Refactor progress handling (#2549) 2023-06-19 13:48:32 +10:00
chunks.rs Store desired retention in card data 2023-09-23 15:42:42 +10:00
download.rs Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
finish.rs Refactor progress handling (#2549) 2023-06-19 13:48:32 +10:00
graves.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
meta.rs Refactor media sync handling (#2647) 2023-09-10 13:22:20 +10:00
mod.rs Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
normal.rs Refactor media sync handling (#2647) 2023-09-10 13:22:20 +10:00
progress.rs Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
protocol.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
sanity.rs Rename sanity check fields avoid conflict with outer span 2023-06-26 15:04:58 +10:00
start.rs Refactor progress handling (#2549) 2023-06-19 13:48:32 +10:00
status.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
tests.rs lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
upload.rs Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00