-
Notifications
You must be signed in to change notification settings - Fork 38
cap-primitives no longer builds on Nightly for Windows #270
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
Comments
|
std has recently sealed its `FileTypeExt` traits, so cap-primitives can no longer implement them for its own types. Fortunately, these traits are just used as extension traits, so we can just define our own copies of them, and implement those instead. Fixes #270.
std has recently sealed its `FileTypeExt` traits, so cap-primitives can no longer implement them for its own types. Fortunately, these traits are just used as extension traits, so we can just define our own copies of them, and implement those instead. Fixes #270.
I can confirm that #271 resolves the compilation issue for me:
|
Disregard, just needed to patch [patch.crates-io]
cap-std = { git = "https://github.com/bytecodealliance/cap-std.git", branch = "sunfishcode/file-type-ext" }
cap-primitives = { git = "https://github.com/bytecodealliance/cap-std.git", branch = "sunfishcode/file-type-ext" }
cap-fs-ext = { git = "https://github.com/bytecodealliance/cap-std.git", branch = "sunfishcode/file-type-ext" } |
std has recently sealed its `FileTypeExt` traits, so cap-primitives can no longer implement them for its own types. Fortunately, these traits are just used as extension traits, so we can just define our own copies of them, and implement those instead. Fixes #270.
Sealed ended up into 1.64.0 stable EDIT: I've summarized and continuing this in: bytecodealliance/wasmtime#4957 This is now a problem on stable now for Windows and the patch breaks it for unix. |
It doesn't break unix. The problem in that issue is that there's a mix of both 0.25.5 and 0.25.2. |
Hmm yeah this is why I hate patching as the lock can be unstable and the patch-branch essentially has to have matching version Can we do recursive point-release proper for 0.40 users to fix this ? |
If it's possible to reproduce a problem using unpatched wasi-common 0.40 and Rust stable, it may make sense to consider a point release. |
If it's (sealed FileTypeExt) not indeed in 1.64 yet this willl be most probably end up 1.65 stable given the issue was stabilised.. I traced down the exact changes in std and the intent here was to stabilise it via I'll check the release and see if libs are going to hold it or revert it... |
Not sure when Nightly introduced a change that broke the compilation of
cap-primtives
here, I'm on latest from todaycargo 1.64.0-nightly (85b500cca 2022-07-24)
.latest stable (1.62) and beta (1.63.0-beta.7) works fine.
this is the error one runs into when building with Nightly:
Repro:
cargo +nightly build --workspace
The text was updated successfully, but these errors were encountered: