Skip to content

Commit

Permalink
Update to 0.15.19 and use threadsafe-setenv. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode authored Nov 14, 2023
1 parent 6bbac12 commit d94f01d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = ["/.github", "ci"]
keywords = ["linux"]

[dependencies]
c-gull = { version = "0.15.18", default-features = false, features = ["eyra"] }
c-gull = { version = "0.15.19", default-features = false, features = ["eyra"] }

[dev-dependencies]
assert_cmd = "2.0.12"
Expand All @@ -33,11 +33,10 @@ which = "5.0.0"
core_simd = { git = "https://github.com/rust-lang/portable-simd" }

[features]
default = ["be-std", "lock-environ"]
default = ["be-std", "threadsafe-setenv"]

# This enables use of an `RwLock` within `getenv`, `setenv`, and related
# functions, to make them thread-safe.
lock-environ = ["c-gull/lock-environ"]
# This makes `setenv` and friends thread-safe by leaking memory.
threadsafe-setenv = ["c-gull/threadsafe-setenv"]

# Enable logging of program and thread startup and shutdown.
log = ["c-gull/log"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Other examples include
Why use Eyra?

- It fixes Rust's [`set_var` unsoundness issue]. The environment-variable
implementation uses an `RwLock` internally (it is optional, but enabled by
implementation leaks memory internally (it is optional, but enabled by
default), so `setenv` etc. are thread-safe.

- [Whole-program LTO], including the libc. This sometimes produces smaller
Expand Down

0 comments on commit d94f01d

Please sign in to comment.