winbrew_windows/
lib.rs

1#![cfg(windows)]
2#![doc = include_str!("../README.md")]
3
4mod deployment;
5#[path = "fs/mod.rs"]
6mod filesystem;
7mod font;
8mod registry;
9mod system;
10
11pub(crate) use winbrew_models as models;
12
13/// Installed application registry helpers.
14pub mod installed {
15    pub use crate::registry::{
16        AppInfo, UninstallEntry, installed_apps, installed_apps_matching,
17        read_uninstall_registry_value, uninstall_entries, uninstall_entries_matching,
18    };
19}
20
21/// System architecture, privilege, PATH, and Windows version helpers.
22pub mod host {
23    pub use crate::system::{
24        HostProfile, host_profile, is_elevated, search_path_file, windows_version_string,
25    };
26}
27
28/// User font install and removal helpers.
29pub mod fonts {
30    pub use crate::font::{install_user_font, remove_user_font, user_fonts_dir};
31}
32
33/// MSI and MSIX package helpers.
34pub mod packages {
35    pub use crate::deployment::{
36        msi_scan_inventory, msix_install, msix_installed_package_full_name, msix_remove,
37    };
38}
39
40/// Filesystem inspection and extraction helpers.
41pub mod fs {
42    pub use crate::filesystem::{PathInfo, create_extraction_target_file, inspect_path};
43}
44
45/// Deprecated compatibility alias for installed application helpers.
46#[doc(hidden)]
47#[deprecated(note = "use winbrew_windows::installed instead")]
48#[allow(deprecated)]
49pub mod apps {
50    pub use crate::registry::*;
51}
52
53/// Deprecated compatibility alias for filesystem helpers.
54#[doc(hidden)]
55#[deprecated(note = "use winbrew_windows::fs instead")]
56#[allow(deprecated)]
57pub mod paths {
58    pub use crate::filesystem::*;
59}
60
61/// Test-only registry helpers.
62#[cfg(any(test, feature = "testing"))]
63pub mod testing {
64    pub use crate::registry::{
65        UninstallEntryGuard, create_test_uninstall_entry,
66        create_test_uninstall_entry_with_install_location,
67    };
68    pub use crate::system::windows_version_string;
69}