Remove unused include
s to improve portability
#2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The presence of those
include
s limits the platform support of this library. Specifically, cross-compiling towasm32-unknown-unknown
is not possible.These are only used in commented code, it seems, so this compiles without further changes. I've confirmed this by compiling against the Rust Tier 1 targets1 except for the following:
i686-pc-windows-msvc
: I'm on Linux and don't know how to cross- compile for that.i686-unknown-linux-gnu
: The required GCC version is not packaged for my distribution, and I failed to install it via other means.Some of those builds I've done locally, other indirectly, by building a version of Fornjot that includes this commit on GitHub Actions:
In addition, I compiled locally for the following targets, all of which worked without problems:
Footnotes
https://doc.rust-lang.org/rustc/platform-support.html#tier-1-with-host-tools ↩