Skip to content

non-exhaustive patterns: File(_) and SharedFile(_, _) not covered #826

Answered by tronical
bobbbay asked this question in Q&A
Discussion options

You must be logged in to vote

hi @bobbbay! I can reproduce the issue now. What's happening is that the compiler pulls in resvg, which in turn also pulls in the fontdb crate and enables the file system access feature of the crate. The SixtyFPS compiler is built for your host architecture and the core library and the GL renderer (that's the one that's failing to compile) is built for wasm32-unknown-unknown (by wasm-pack).

There are two ways that the cargo dependency resolver deals with this cross-compilation scenario where the fontdb crate is needed by two different builds with different features:

(1) When using edition = "2018" in Cargo.toml, the dependency resolver will merge all the features, regardless of the target…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ogoffart
Comment options

@tronical
Comment options

@bobbbay
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tronical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants