Crates.io | wincent |
lib.rs | wincent |
version | |
source | src |
created_at | 2024-10-29 13:43:51.776203 |
updated_at | 2024-12-03 14:52:30.231703 |
description | A library for handling windows quick access |
homepage | |
repository | https://github.com/Hellager/wincent-rs |
max_upload_size | |
id | 1427021 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Wincent is a rust library for managing Windows quick access functionality, providing comprehensive control over your file system's quick access content.
Add the following to your Cargo.toml
:
[dependencies]
wincent = "*"
use wincent::get_quick_access_items;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// List all current quick access items
let quick_access_items = get_quick_access_items()?;
for item in quick_access_items {
println!("Quick Access items: {:?}", item);
}
Ok(())
}
use wincent::remove_from_recent_files;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Remove a specific path from quick access
match remove_from_recent_files("C:\\path\\to\\file.txt").await {
Ok(()) => println!("File removed from recent files."),
Err(e) => eprintln!("Error removing file from recent files: {:?}", e),
}
Ok(())
}
use wincent::{QuickAccess, set_visiable};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// hide Frequent Folders
match set_visible(QuickAccess::FrequentFolders, true) {
Ok(_) => println!("Successfully set visibility for Frequent Folders."),
Err(e) => eprintln!("Failed to set visibility: {:?}", e),
}
Ok(())
}
The library uses Rust's Result
type for comprehensive error management, allowing precise handling of potential issues during quick access manipulation.
git checkout -b wincent/amazing-feature
)git commit -m 'feat: Add some amazing feature'
)git push origin wincent/amazing-feature
)# Clone the repository
git clone https://github.com/Hellager/wincent-rs.git
cd wincent-rs
# Install development dependencies
cargo build
cargo test
This library interacts with system-level Quick Access functionality. Always ensure you have appropriate permissions and create backups before making significant changes.
If you encounter any issues or have questions, please file an issue on our GitHub repository.
Distributed under the MIT License. See LICENSE
for more information.
Developed with 🦀 by @Hellager