| Crates.io | parselnk |
| lib.rs | parselnk |
| version | 0.1.1 |
| created_at | 2020-01-16 03:51:08.070532+00 |
| updated_at | 2022-01-28 18:46:55.93098+00 |
| description | Parse windows .lnk files in pure rust |
| homepage | https://github.com/rustysec/parselnk-rs |
| repository | https://github.com/rustysec/parselnk-rs |
| max_upload_size | |
| id | 198985 |
| size | 91,653 |
Parse Windows .lnk files in pure Rust!
Cargo.toml:From crates.io:
[dependencies]
parselnk = "0.1"
To use master branch:
[dependencies]
parselnk = { git = "https://github.com/rustysec/parselnk-rs" }
let lnk_path = std::path::Path::new(r"c:\users\me\desktop\slack.lnk");
let lnk = parselnk::Lnk::from(lnk_path).unwrap();
println!("Lnk relative path: {:?}", lnk.relative_path());
These features are enabled by default and can be toggled off
by specifying default-features = false in your Cargo.toml:
# Disable optional features
[dependencies]
parselnk = { version = "0.1", default-features = false }
chrono - exposes convenience methods for parsing windows FileTime structuresIssues and pull requests are welcome!