[core] Detect: Marks hold on and off sets; arena-core 0.2.0 checks pass

Marks keeps one verdict per exe: on ("This is a game") or off ("This is
not a game"). detect: Launched > marked off (None) > marked on (Marked,
with the library game if any) > InstallDir. Serde writes
{"on": [...], "off": [...]} and still reads the plain array as on;
an exe in both lists is refused, MAX_MARKS counts both.

Also: collapsible-if for clippy, rustfmt, README and FORMATS updated.
Checked: cargo test -p arena-core (183 passed), clippy -D warnings,
fmt --check, check for wasm32-unknown-unknown and aarch64-linux-android.
This commit is contained in:
2026-11-26 03:27:03 +01:00
parent 43701bbadc
commit 95d031fef9
6 changed files with 251 additions and 64 deletions
+6 -2
View File
@@ -150,8 +150,12 @@ fn errors_display_without_input() {
}
fn modifiers() -> impl Strategy<Value = Modifiers> {
(any::<bool>(), any::<bool>(), any::<bool>(), any::<bool>())
.prop_map(|(ctrl, alt, shift, win)| Modifiers { ctrl, alt, shift, win })
(any::<bool>(), any::<bool>(), any::<bool>(), any::<bool>()).prop_map(|(ctrl, alt, shift, win)| Modifiers {
ctrl,
alt,
shift,
win,
})
}
fn key() -> impl Strategy<Value = Key> {