-
Notifications
You must be signed in to change notification settings - Fork 49
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
Request for new version release of autogenerated frameworks #656
Comments
Huh, I was wondering about that, thanks for investigating! Do you know if there's a bug on Cargo's issue tracker for it?
Hmm, the problem with that is that it'll bump MSRV in a patch version, which I'm not really sure is something that's a good idea? See also #203. In general, I will argue (and feel free to disagree here) that this is a small enough bug (the effect is that the lockfile is a bit larger and Cargo downloads a bit more) that it doesn't really warrant a new release? Though it is a problem I'd like to resolve in future releases (I don't dare give you a timeline on that, though).
Hmm... I'm a bit conflicted on how to solve this, because on one hand it seems to be the norm in the ecosystem to auto-enable same-named features on dependencies, but on the other hand, perhaps it is better that we don't auto-enable such unneeded features? Like, I could imagine a user wanting Related to #627. Let me stew on it a bit. |
I believe this is rust-lang/cargo#10801.
If these crates were meant to be widely compiled on Linux, I might be more inclined to agree but even the macOS package managers keep I don't personally consider MSRV to be a breaking change so I tend to just make sure the odds of people noticing it are low to be polite (in crates on 1.x.x I will release a minor version as a "polite marker", but that option isn't present here). In the end, this is your crate though!
For the most part I agree. I think the weird no-std support is strange but this isn't a dealbreaker for me; I can internally explain that the crates aren't actually being compiled so they don't warrant much thought or scrutiny.
Of course 👍 |
Unless it's currently required. Part of #656.
Unless it's currently required. Part of #656.
Hello,
I was updating
objc2-app-kit
in preperation for addingobjc2-ui-kit
toarboard
for iOS support and ran into a snag. Due to a longstandingcargo
bug, something in the new0.2.2
versions of these framework crates has started to pull unnecessary frameworks (such asobjc2-cloud-kit
) into the lockfile, even though they aren't built. I believe this is because of the weak dependencies used by thestd
feature.To work around this I was disabling the
std
feature in my imports (so not even a weak dependency exists) but compilingobjc2-ui-kit
with this configuration fails because of a hardcoded import ofstd::os::raw::c_ulong
. This was fixed by ec058b3 a few weeks ago, but hasn't made its way to crates.io yet. Would it be possible to make a release with these changes if time permits?FWIW this seems to have added
objc2-metal
andobjc2-quartz-core
toobjc2-app-kit
's lockfile contents unconditionally. It might be because of of thebitflags
weak feature interacting withobjc2-foundation
, maybe? None of theNSPasteboard
,NSPasteboardItem
, orNSImage
features directly use them but this TOML results in them appearing in the lockfile (uncompiled) nontheless:The text was updated successfully, but these errors were encountered: