Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Hermit cfg(unix) #649

Open
m-mueller678 opened this issue Dec 11, 2024 · 1 comment
Open

Make Hermit cfg(unix) #649

m-mueller678 opened this issue Dec 11, 2024 · 1 comment

Comments

@m-mueller678
Copy link

Currently, the standard library implements std::os::hermit::ffi::{OsStrExt,OsStringExt} traits, which have the same interface as the those exported under std::os::unix for other platforms. Re-exporting them under the same path would make many more crates compatible with hermit.

@mkroening mkroening transferred this issue from hermit-os/rust-std-hermit Dec 11, 2024
@mkroening mkroening changed the title Re-export OsStrExt and OsStringExt as unix Make Hermit cfg(unix) Dec 11, 2024
@mkroening
Copy link
Member

This is because Hermit is not a Unix OS. It is becoming more and more similar, but historically, Hermit was not cfg(unix) in rustc.

We could think about making Hermit cfg(unix), but that would be a larger undertaking because we would have to gauge the ecosystem implications of all crates using Hermit as if it was a proper Unix system.

For the meantime, adjusting those crates for cases where you need OsStrExt is easier.

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

No branches or pull requests

2 participants