Skip to content

Backport changes to a new 1.x release branch. - #301

Merged
sunfishcode merged 5 commits into
1from
1-update
Mar 16, 2023
Merged

Backport changes to a new 1.x release branch.#301
sunfishcode merged 5 commits into
1from
1-update

Conversation

@sunfishcode

Copy link
Copy Markdown
Member

This backports everything except #297 which is the update to rustix 0.37 to a new 1.x release branch. I don't think rustix is a public dependency of cap-std, but at this moment I'm not sufficiently sure about that, so to be safe for now, I'm omitting that so that it doesn't block other patches.

Windows' `NtCreateFile` has an ability to take a directory and a
relative path, so use that to implement `open_unchecked` instead of
using path concatenation.

We still use concatenation for other functions, but this is the first
step to rewriting those to avoid it.

Fixes #226.
Always use `open_unchecked` with no access for implementing `stat` on Windows,
as that now uses the new `NtCreateFile` path.
Use `let _ = ambient_authority;` to suppress unused argument warnings
rather than naming arguments `_`, because argument names show up in the
documentation, and the fact that these arguments are unused is not part
of the public interface.
* Add a `Pool::insert_ip_net_any_port` function.

Add a function to `Pool` to allow inserting a network that can accept
any port.

* Add support for port ranges, and add some unit tests.
@sunfishcode
sunfishcode merged commit 2a4e026 into 1 Mar 16, 2023
@sunfishcode
sunfishcode deleted the 1-update branch March 16, 2023 13:56
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