Skip to content

Add minimal support for Hermit OS - #1672

Draft
xtqqczze wants to merge 9 commits into
bytecodealliance:mainfrom
xtqqczze:hermit
Draft

Add minimal support for Hermit OS#1672
xtqqczze wants to merge 9 commits into
bytecodealliance:mainfrom
xtqqczze:hermit

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Contributes to #1012.

The changes allow compilation with the following configurations:

  • --no-default-features
  • --features default

using the x86_64-unknown-hermit target and -Zbuild-std=std,core,alloc,panic_abort.

Depends on #1674.
Depends on #1673.
Depends on #1676.

Blocked on rust-lang/libc#5460 for no_std support.

@xtqqczze
xtqqczze marked this pull request as ready for review September 3, 2026 18:00
@xtqqczze
xtqqczze force-pushed the hermit branch 2 times, most recently from 67b7cfe to 3ab8d44 Compare September 4, 2026 00:12
@xtqqczze
xtqqczze marked this pull request as draft September 5, 2026 22:14
@xtqqczze
xtqqczze force-pushed the hermit branch 2 times, most recently from ea4ff35 to d8f0955 Compare September 6, 2026 12:50
@xtqqczze

This comment was marked as duplicate.

@xtqqczze

This comment was marked as duplicate.

@xtqqczze

This comment was marked as duplicate.

The `SYSPROTO_EVENT` and `SYSPROTO_CONTROL` constants are only available
on macOS, see rust-lang/libc#5158.
The `AF_SYS_CONTROL` constant is only available on macOS, see rust-lang/libc#5158.
tvOS and watchOS do not provide `fork`, so the `utimensat` fallback cannot be implemented on these platforms. Return `NOSYS` instead.
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