Anki/tools
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
..
minilints lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
build Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build.bat fix: fix windows build issue (#2947) 2024-01-19 15:48:06 +10:00
clean Add a script to clean build folder 2023-07-03 17:24:27 +10:00
dmypy Migrate pylib/anki qt/aqt to group syntax (eg pylib:anki) 2023-06-15 17:17:55 +10:00
install-n2 Fix n2 missing hide-success code 2023-10-11 13:04:54 +10:00
mac-x86 Add helper script for Intel cross compile on ARM Mac 2023-04-12 15:48:31 +10:00
ninja.bat Fix Windows build 2023-07-02 15:17:29 +10:00
profile Update profiling script 2023-09-14 09:23:44 +10:00
rebuild-web Fix tools/web-watch 2023-06-20 20:40:43 +10:00
reload_webviews.py Tweaks to web-watch 2023-06-26 15:50:34 +10:00
run-qt5.14 Enable webview debugging in Qt5 scripts 2023-11-13 15:20:50 +10:00
run-qt5.15 Enable webview debugging in Qt5 scripts 2023-11-13 15:20:50 +10:00
run-qt5.15.bat Fix run-qt5.15.bat (#2569) 2023-07-10 10:35:43 +10:00
run.py Fix mpv not working out of the box in win32 source build 2023-12-06 11:34:56 +10:00
runopt Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
setup-env.bat Fix setup-env.bat (#1659) 2022-02-12 10:10:24 +10:00
unused-rust-deps Remove some unused Rust dependencies 2023-06-24 19:30:29 +10:00
web-watch Tweaks to web-watch 2023-06-26 15:50:34 +10:00