Anki/rslib/src/notetype
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
..
cardgen.rs Dependency updates (#3403) 2024-09-04 12:21:50 +07:00
checks.rs lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
cloze_styling.css Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
emptycards.rs Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
fields.rs Add support for tagging + protecting fields 2023-09-17 14:03:42 +10:00
header.tex move latex header and styling into separate files 2020-05-12 21:13:33 +10:00
merge.rs Cloze notetype merges (#2912) 2023-12-28 18:01:23 +10:00
mod.rs lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
notetypechange.rs Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
render.rs Update to Rust 1.75 2024-01-05 14:28:23 +10:00
restore.rs Add image occlusion to stock notetypes 2023-10-22 11:00:39 +10:00
schema11.rs Fix error after notetype merge + downgrade 2024-01-12 15:16:27 +10:00
schemachange.rs Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
service.rs Update to Rust 1.74, and update most Rust deps 2023-11-27 13:34:42 +10:00
stock.rs Add image occlusion to stock notetypes 2023-10-22 11:00:39 +10:00
styling.css Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
templates.rs Fix Renaming note fields not updating custom browser appearance (#3245) 2024-06-24 08:39:56 +01:00
undo.rs Refactor error handling (#2136) 2022-10-21 18:02:12 +10:00