Skip to content

Commit

Permalink
up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
splurf committed Oct 3, 2024
1 parent 334b1fa commit 67fde23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simple-home-dir"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/splurf/simple-home-dir"
Expand All @@ -10,9 +10,6 @@ keywords = ["home", "directory", "fast", "path", "lightweight"]
categories = ["accessibility"]
exclude = [".github/", ".gitignore", "LICENSE", "README.md", "tests/"]

[dev-dependencies.dirs]
version = "5.0.1"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.59.0"
features = [
Expand All @@ -27,3 +24,6 @@ features = [
[profile.release]
lto = true
codegen-units = 1

[dev-dependencies.dirs]
version = "5.0.1"
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub fn home_dir() -> Option<std::path::PathBuf> {
{
let w = unsafe { core::slice::from_raw_parts(p, Globalization::lstrlenW(p) as _) };
let o: std::ffi::OsString = std::os::windows::ffi::OsStringExt::from_wide(w);

Some(o.into())
} else {
None
Expand Down

0 comments on commit 67fde23

Please sign in to comment.