Windows shell replacement in Rust: taskbar, file manager, NTFS search, task manager, disk cleaner. One installer exe.
Rust
//! Default component selection for the installer window and `install all`.
pub(crate) const RUST_EXPLORER: &str = "rust-explorer";
pub(crate) fn selected_by_default(name: &str, installed: bool) -> bool {
name != RUST_EXPLORER || installed
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn fresh_install_does_not_replace_explorer_by_default() {
assert!(!selected_by_default(RUST_EXPLORER, false));
assert!(selected_by_default("topbar", false));
assert!(selected_by_default("rust-search", false));
}
#[test]
fn existing_rust_explorer_is_selected_for_gui_updates() {
assert!(selected_by_default(RUST_EXPLORER, true));
}
}