core-foundation-rs icon indicating copy to clipboard operation
core-foundation-rs copied to clipboard

Remove `link` feature?

Open madsmtm opened this issue 8 months ago • 3 comments

Linking with -weak_framework is recently possible on nightly:

#![feature(link_arg_attribute)]

#[link(name = "-weak_framework", kind = "link-arg", modifiers = "+verbatim")]
#[link(name = "CoreFoundation", kind = "link-arg", modifiers = "+verbatim")]
extern "C" {}

This works even if declared in a binary crate that depends on something that has the normal #[link(name = "CoreFoundation", kind = "framework")].

Given that, maybe we should consider removing the link feature again?

madsmtm avatar Dec 05 '23 14:12 madsmtm