-
Notifications
You must be signed in to change notification settings - Fork 33
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
Gate find-system-font example behind 'fs' feature #72
Gate find-system-font example behind 'fs' feature #72
Conversation
You shouldn't be using |
In Debian packaged rust crates are tested first as |
This is an unusual view IMO. Except that this is not merely a test but an example. @NoisyCoil you could try instead |
@dhardy Thank you, but we have standardized testing in Debian. Using |
Again, the problem is that you will not be able to build most Rust libraries this way. All my libraries would fail for sure. I don't know if Rust/Cargo requires for tests/examples to compile with |
Again, you are free to reject this patch, but if you want some limited stats based on what I can see in Debian here they are. In Debian we do test all of your (and anyone's) libraries as explained above. The libraries of yours I could find using color-thief, fontdb, memmap2, pico-args, rctree, roxmltree, rustybuzz, simplecss, strict-num, svgdom, svgtypes, tiny-skia, tiny-skia-path, ttf-parser, unicode-bidi-mirroring, unicode-ccc, unicode-vo, xmlparser, xmlwriter Of these, those whose tests fail due to non-default feature testing are fontdb, roxmltree, tiny-skia-path and ttf-parser. A patch is available only for fontdb (this PR), included downstream. Since tiny-skia-path and ttf-parser require an explicit feature choice between
I don't think so. |
That's what I was talking about. If the requirement is not mandatory, then it makes sense. I will accept the patch. I was just confused with the purpose. Do you need a version bump as well? |
Thank you! No version bump needed, we can pick it up after the next upgrade. |
Hello.
cargo test --all --no-default-features
fails because thefind-system-font
example cannot compile unless thefs
feature is enabled:This PR gates the example behind said feature, so that non-default tests do not fail. Ref: https://sources.debian.org/src/rust-fontdb/0.21.0-1/debian/patches/fix-tests.patch/