Skip to content
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

cxx: Consider Rust target and features #607

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented Feb 10, 2025

The dependency on cxx may be gated behind a feature. We can simply enable all features for dependency resolution though.
cxxbridge-cmd also only appears with --target all so we enable all targets.

We start preferring cxxbridge-cmd, since that was recommended by dtolnay.
We still fallback to parsing the version of cxx to support older cxx versions, where the bridge version may not appear in the dependency tree.
In practice this fallback shouldn't cause any problems, since we anyway need to ensure that
cxxbridge version == cxx version.

The dependency on cxx may be gated behind a feature.
We can simply enable all features for dependency resolution
though.
cxxbridge-cmd also only appears with --target all.

We start preferring `cxxbridge-cmd`, since that was
recommended by dtolnay.
We still fallback to parsing the version of `cxx` to support
older cxx versions, where the bridge version may not appear
in the dependency tree.
In practice this fallback shouldn't cause any problems,
since we anyway need to ensure that
`cxxbridge version == cxx version`.
@jschwe jschwe merged commit fcd8b41 into corrosion-rs:master Feb 27, 2025
40 checks passed
@jschwe jschwe deleted the jschwender/cxx branch February 27, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant