Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix wasm + no-std cargo interactions#864

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
jbr wants to merge11 commits intoasync-rs:masterfromjbr:tmp-no-cache-in-ci

Conversation

jbr
Copy link
Contributor

@jbrjbr commentedAug 25, 2020
edited
Loading

This started as an extension of#863 disabling the build cache in ci and turned into an investigation of a cargo bug that pulls in wasm deps for no-std, breaking ci. The proposed fix in this pr alsocloses#823

@jbr
Copy link
ContributorAuthor

jbr commentedAug 25, 2020
edited
Loading

@dignifiedquire It seems like this sledgehammer-fix resolves the macos issue, but I think the no-std failure is real. I get it locally as well.

Edit: I think maybe this is a cargo bug? 🙃

$ cargo check --no-default-features --features alloc --target thumbv7m-none-eabi -Z avoid-dev-deps --verbose       Fresh pin-project-lite v0.1.7    Checking futures-core v0.3.5     Running`rustc --crate-name futures_core --edition=2018 /Users/jbr/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata -Cembed-bitcode=no -C debuginfo=2 --cfg'feature="alloc"' --cfg'feature="default"' --cfg'feature="std"' -C metadata=6587bfddd05ac72e -C extra-filename=-6587bfddd05ac72e --out-dir /Users/jbr/code/async-std/target/thumbv7m-none-eabi/debug/deps --target thumbv7m-none-eabi -L dependency=/Users/jbr/code/async-std/target/thumbv7m-none-eabi/debug/deps -L dependency=/Users/jbr/code/async-std/target/debug/deps --cap-lints allow`error[E0463]: can't find crate for `std`

note the--cfg 'feature="std"' — that makes no sense. Somehow--no-default-features is getting ignored andstd is getting added back in???

Further digging:
Disabling the target_arch = "wasm32" dependencies and dev-dependencies lines fixes no-std. Somehow they're getting enabled even though they shouldn't be active.

Proposed fix:

This PR includes changes that would fix several issues in async-std regarding wasm, but has a cost: Wasm users will have to enable a mandatorywasm feature. This also would address the issue where wasm deps were getting pulled in on non-wasm platforms (#823)

@jbrjbr changed the titletemporary: no cache in cino cache in ci & fix wasm + no-std cargo interactionsAug 25, 2020
@jbrjbr marked this pull request as ready for reviewAugust 25, 2020 06:35
@jbrjbr changed the titleno cache in ci & fix wasm + no-std cargo interactionsfix wasm + no-std cargo interactionsAug 26, 2020
@dignifiedquire
Copy link
Member

Got it back working without introducing a feature, so closing this#863

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

async std unstable feature compiles wasm crates on non-wasm arch
2 participants
@jbr@dignifiedquire

[8]ページ先頭

©2009-2025 Movatter.jp