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
Release v0.4.5 did a break change #308
Comments
I've yanked v0.4.5 for now. |
socket2 v0.4.5 has been yanked (rust-lang/socket2#308). This reverts commit 9004d9c.
socket2 v0.4.5 has been yanked (rust-lang/socket2#308). This reverts commit 9004d9c. Signed-off-by: Oliver Gould <ver@buoyant.io>
socket2 v0.4.5 has been yanked (rust-lang/socket2#308). This reverts commit 9004d9c. Signed-off-by: Oliver Gould <ver@buoyant.io>
socket2 v0.4.5 has been yanked (rust-lang/socket2#308). This reverts commit 9004d9c. Signed-off-by: Oliver Gould <ver@buoyant.io>
* opencensus: Include empty generated protobuf (#1676) prost generates empty files for google protobuf types. This change adds these generated files so that they are not regenerated on `make test`. Signed-off-by: Oliver Gould <ver@buoyant.io> * build(deps): bump rustls from 0.20.5 to 0.20.6 (#1679) Bumps [rustls](https://github.com/rustls/rustls) from 0.20.5 to 0.20.6. - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md) - [Commits](rustls/rustls@v/0.20.5...v/0.20.6) --- updated-dependencies: - dependency-name: rustls dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Revert "build(deps): bump socket2 from 0.4.4 to 0.4.5 (#1654)" (#1681) socket2 v0.4.5 has been yanked (rust-lang/socket2#308). This reverts commit 9004d9c. Signed-off-by: Oliver Gould <ver@buoyant.io> * build(deps): bump EmbarkStudios/cargo-deny-action from 1.2.17 to 1.3.0 (#1678) Bumps [EmbarkStudios/cargo-deny-action](https://github.com/EmbarkStudios/cargo-deny-action) from 1.2.17 to 1.3.0. - [Release notes](https://github.com/EmbarkStudios/cargo-deny-action/releases) - [Commits](EmbarkStudios/cargo-deny-action@3481b77...b655a95) --- updated-dependencies: - dependency-name: EmbarkStudios/cargo-deny-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump clang-sys from 1.3.1 to 1.3.2 (#1680) Bumps [clang-sys](https://github.com/KyleMayes/clang-sys) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/KyleMayes/clang-sys/releases) - [Changelog](https://github.com/KyleMayes/clang-sys/blob/master/CHANGELOG.md) - [Commits](https://github.com/KyleMayes/clang-sys/commits) --- updated-dependencies: - dependency-name: clang-sys dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Simplify admin server feature-flagging in #1642 * Rather than push feature flagging down into the `serve` logic, we can avoid even matching the logs.json endpoint when the feature isn't disabled. This avoids the need for conditional feature gatingc in the handler. * The log module is split into two submodules: level and stream. The stream module is feature-gated. This allows to extract function-local defintions into the module, which simplifies scoping and makes things easier to read (imo). Signed-off-by: Oliver Gould <ver@buoyant.io> * bump thingbuf to 1.0.3 Signed-off-by: Oliver Gould <ver@buoyant.io> * to_stream => into_stream Signed-off-by: Oliver Gould <ver@buoyant.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@Thomasdezeeuw I am working on shifting |
Sounds good, but unfortunately we still can't make a breaking change in a v0.4.x release, so the switch to window_sys will have to go into v0.5. |
Oh yeah, no problem, just wanted to inform you about the change in dns-lookup |
As noted in <rust-lang#308>, switching from winapi to windows-sys was a breaking change as we expose some of the winapi types that are different in windows-sys. This reverts the following commits: * "Relax windows-sys dependency version" 81056b9. * "Support Socket::(set_)recv_tos on Windows" 242e087. * "Replace winapi with windows-sys" aeb6c2d. We'll make this switch in v0.5 instead.
As noted in <#308>, switching from winapi to windows-sys was a breaking change as we expose some of the winapi types that are different in windows-sys. This reverts the following commits: * "Relax windows-sys dependency version" 81056b9. * "Support Socket::(set_)recv_tos on Windows" 242e087. * "Replace winapi with windows-sys" aeb6c2d. We'll make this switch in v0.5 instead.
For future reference, since socket2 is exposing the SOCKADDR type from the underlying windows_sys library via getaddrinfo/getnameinfo, any change to SOCKADDR in windows_sys will also change the SOCKADDR that socket2 uses. Apparently windows_sys has changed SOCKADDR A Few Times recently, which means the exact subversion of windows_sys needs to match in libraries using socket2. Since both windows_sys and socket2 are version 0.X.Y, I'd suggest that anybody using these libraries hard code socket2 and windows_sys versions explicitly. We'll likely need to wait till both libraries are version 1.0 before we can get stable APIs. |
Those changes are just aliases for the same underlying types. The actual layout of the struct is fixed as any changes to it would break ABI compatibility with Windows' system calls. So I don't think this is an issue. Relying on 0.x libraries, especially exposing them in the public API as socket2 does, isn't great, but having to maintain these (public) types/type aliases ourselves wouldn't be an improvement either. |
Socket2 exposes definitions from windows_sys, which has changed the definition of SOCKADDR a few times. Pin socket2 and windows_sys until they reach 1.0 and get a stable API.
The PR "Replace
winapi
dependency withwindows-sys
" (#303) breaks public apis, causedns-lookup
are failed to compile on windows keeperofdakeys/dns-lookup#22.dns-lookup
callsgetnameinfo
fromwinapi
, but nowsocket2
exportsSockAddr
fromwindows-sys
, which are incompatible withSockAddr
fromwinapi
.The text was updated successfully, but these errors were encountered: