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

[cap-primitives] add support for illumos #369

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

sunshowers
Copy link
Contributor

Get the cap-primitives library building and passing all tests on illumos. There were just a couple of minor tweaks required.

I also ran into an issue where the minimum version of ipnet required was too old, so I took the liberty to bump it to 2.5.0 which has IpNet::new.

The note in dir_entry.rs is copied over from Rust's std: https://doc.rust-lang.org/std/fs/struct.DirEntry.html#method.file_type

Get the cap-primitives library building and passing all tests on illumos. There
were just a couple of minor tweaks required.

I also ran into an issue where the minimum version of `ipnet` required was too
old, so I took the liberty to bump it to 2.5.0 which has `IpNet::new`.

The note in `dir_entry.rs` is copied over from Rust's std:
https://doc.rust-lang.org/std/fs/struct.DirEntry.html#method.file_type
&["/dev/ttyv0", "/dev/pts/0"]
} else if cfg!(target_os = "illumos") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure about Solaris here so I left this as illumos. The other bits I'm reasonably sure are okay on Solaris.

@sunfishcode sunfishcode merged commit ef0c8ac into bytecodealliance:main Oct 30, 2024
22 checks passed
@sunfishcode
Copy link
Member

Looks good, thanks!

@sunfishcode
Copy link
Member

This is now released in cap-std 3.4.0.

@sunshowers sunshowers deleted the illumos branch October 30, 2024 22:00
@sunshowers
Copy link
Contributor Author

Thank you!

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.

2 participants