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

Disable default link feature on core-graphics-types #330

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

MarijnS95
Copy link
Contributor

When the link feature was forwarded to core-graphics-types in its update in #297, it wasn't taken into account that the feature was enabled by default in https://togithub.com/servo/core-foundation-rs/pull/608, leading to the link feature to always remain enabled even if default-features are disabled on the metal crate.

Disable the link feature by default on core-graphics-types, and rely on our (default-enabled) link feature to turn it back on from inside metal.

When the `link` feature was forwarded to `core-graphics-types` in its
update in gfx-rs#297, it wasn't taken
into account that  the feature was enabled by default in
https://togithub.com/servo/core-foundation-rs/pull/608, leading to the
`link` feature to always remain enabled even if `default-features` are
**disabled** on the `metal` crate.

Disable the `link` feature by default on `core-graphics-types`, and rely
on our (default-enabled) `link` feature to turn it back on from inside
`metal`.
MarijnS95 added a commit to Traverse-Research/saxaboom that referenced this pull request Jul 16, 2024
Since we're only using a few types from the `metal` crate, this helper
library has no reason or need to link against framework libraries (i.e.
we don't call global static functions on them).  Disable the `link`
feature on the `metal` crate, but note that for now this won't disable
it on the `core-graphics-types` crate until
gfx-rs/metal-rs#330 is merged.
@cwfitzgerald cwfitzgerald merged commit 0e1918b into gfx-rs:master Jul 17, 2024
2 checks passed
@MarijnS95 MarijnS95 deleted the disable-link branch July 17, 2024 20:44
MarijnS95 added a commit to Traverse-Research/saxaboom that referenced this pull request Jul 23, 2024
Since we're only using a few types from the `metal` crate, this helper
library has no reason or need to link against framework libraries (i.e.
we don't call global static functions on them).  Disable the `link`
feature on the `metal` crate, but note that for now this won't disable
it on the `core-graphics-types` crate until
gfx-rs/metal-rs#330 is merged.
github-merge-queue bot pushed a commit to Traverse-Research/saxaboom that referenced this pull request Jul 23, 2024
Since we're only using a few types from the `metal` crate, this helper
library has no reason or need to link against framework libraries (i.e.
we don't call global static functions on them). Disable the `link`
feature on the `metal` crate.

> [!CAUTION]
> For now this won't disable it on the `core-graphics-types` crate until
gfx-rs/metal-rs#330 is merged.
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.

2 participants