Skip to content

process: add allocation-free getcwd_raw into caller Buffer<u8> - #1728

Open
koshea wants to merge 1 commit into
bytecodealliance:mainfrom
koshea:getcwd-raw
Open

koshea wants to merge 1 commit into
bytecodealliance:mainfrom
koshea:getcwd-raw

Conversation

@koshea

@koshea koshea commented Nov 4, 2026

Copy link
Copy Markdown

Adds rustix::process::getcwd_raw and GETCWD_RAW_SUPPORTED so callers with bounded/no-allocation constraints on the Linux-raw backend can read the current working directory directly into a caller-provided Buffer<u8> without heap allocation or exponential growth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant