-
Notifications
You must be signed in to change notification settings - Fork 146
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
Use windows-sys 0.59.0. #378
base: main
Are you sure you want to change the base?
Conversation
… rustc-serialize, which has had a history of causing builds to print deprecation warnings.
… pull in rustc-serialize, which has had a history of causing builds to print deprecation warnings." This reverts commit 36138ca.
@qrnch-jan thanks for the PR! I don't understand the semver check error at the moment, but I'll have a look at some point (might be in a few weeks due to Christmas). Maybe it makes sense to you. |
@stappersg I appreciate your interest in this project. You have left several comments on the latest pull requests of a contributor to this project. In what way do you feel that your remarks help make the contributions better? |
It was made !Send as a side-effect of HANDLE being a [non-autotrait'ed] pointer in windows-sys 0.59.0. This led to the public PacketStream type to become !Send.
TIL about This was a further fallout from |
On Tue, Dec 17, 2024 at 12:57:04PM -0800, Wojciech Kozlowski wrote:
In what way do you feel that your remarks help make the contributions better?
That git can be used as the nice version control system it is.
Getting the git repository ready for `git bisect`, `git blame`
and just `git log`.
Groeten
Geert Stappers
--
Silence is hard to parse
|
Thanks for fixing it @qrnch-jan! Having looked at your PR, I'm wondering how important is it that you cache the handle? This seems to be the root of all your safety issues. Is there a significant performance gain in avoiding the Also, is there any user visible change? If so, can you update the CHANGELOG? |
I think that's a reasonable argument. However, we also need to acknowledge that pcap is a small repository and so the benefit from this is smaller than in a much bigger repository. Furthermore pcap has few contributors. Therefore, I think it is also important to not impose undue burden on them to avoid discouraging future contributions. I would prefer if reviews focused on the code itself and potentially the comments if they are unclear. |
On Thu, Dec 19, 2024 at 10:19:13AM -0800, Wojciech Kozlowski wrote:
@stappersg
> On Tue, Dec 17, 2024 at 12:57:04PM -0800, Wojciech Kozlowski wrote:
> > In what way do you feel that your remarks help make the contributions better?
> >
>
> That git can be used as the nice version control system it is. Getting
> the git repository ready for `git bisect`, `git blame` and just
> `git log`.
I think that's a reasonable argument.
However, we also need to acknowledge that pcap is a small repository
and so the benefit from this is smaller than in a much bigger
repository. Furthermore pcap has few contributors. Therefore, I think
it is also important to not impose undue burden on them to avoid
discouraging future contributions.
In my words: "Low standard contribution is better as no contribution"
I would prefer if reviews focused on the code itself
and potentially the comments if they are unclear.
I give up my preference for medicore contribution (for this project).
Groeten
Geert Stappers
--
Silence is hard to parse
|
Are you're asking about The issue is that the handle needs to passed to
I would like to say that there are no user-visible changes. However, there's the issue of the windows-sys I can make a note about this in the changelog though. |
Add a special note about HANDLE changes in windows-sys.
No, I mean the
The CHANGELOG looks good to me as it is then at the moment. |
I will take a look! |
Upgrade to windows-sys 0.59.
Biggest fallout that was fixed:
HANDLE
as ausize
. However, technically it's avoid*
, which is what later windows-sys crates use instead. Becausec_void
is!Send
this made it impossible to pass theHANDLE
into a the tokio thread pool. To work around this, aSend
:able newtype was introduced for the sole purpose of passing the eventHANDLE
over the thread boundary. Not pretty, but completely hidden from user.Other:
HANDLE
beingusize
. These just naively cast to*mut std::ffi::c_void
now.