Anki/rslib/src/backend
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
..
adding.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
ankidroid.rs Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
ankihub.rs Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
ankiweb.rs Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
card_rendering.rs Don't lock collection while generating TTS 2023-10-26 11:45:17 +10:00
collection.rs Drop legacy schema option 2023-09-06 15:49:14 +10:00
config.rs load balancer! (#3230) 2024-08-17 12:50:54 +07:00
dbproxy.rs Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
error.rs Add support for custom certificates (#3203) 2024-05-24 10:57:54 +01:00
i18n.rs Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
import_export.rs Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
mod.rs lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
ops.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
sync.rs Add support for custom certificates (#3203) 2024-05-24 10:57:54 +01:00