Skip to content

Commit 13f689c

Browse files
committed
fix: segfault when running napi-rs inside a Node.js worder thread under gnu linux
1 parent eb47b26 commit 13f689c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Addresses a potential segmentation fault issue that occurs when
2+
# running napi-rs within a Node.js worker thread on GNU/Linux systems.
3+
# See https://x.com/Brooooook_lyn/status/1895848334692401270
4+
[target.'cfg(target_env = "gnu")']
5+
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy