Skip to content

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Apr 4, 2022

Similar to #138, making a few changes that will help these sys crates be more stable in the long run.

I also included most of #117 so that the code doesn't go out of date.

madsmtm added 4 commits April 4, 2022 00:37
We're using the [`links`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key) key in `objc-sys` and `block-sys` to allow the user to customize linking, and use build script output in their own build scripts.

However, these are _global_, meaning that you can't have two packages with the same key - this goes for packages with different versions.

To avoid a situation where we can't use a new breaking version of these crates because everyone would have to update at the same time (no, the semver trick can't really save us here), we change the `links` key to include the version preemptively. Once we reach version 1.0 for these crates, we can go back to having a `links` key without a version number in it.
@madsmtm madsmtm added enhancement New feature or request A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates A-block2 Affects the `block2` crate labels Apr 4, 2022
@madsmtm madsmtm added this to the objc2 v0.3 milestone Apr 4, 2022
madsmtm added 2 commits April 4, 2022 16:10
Support for ObjFW is still not enabled, see #117 for that.
A lot of functionality is not yet available in ObjFW, this is now reflected in the API.

Support for ObjFW is still not enabled, see #117 for that.
@madsmtm madsmtm merged commit 13b2c8a into master Apr 4, 2022
@madsmtm madsmtm deleted the more-stable-sys-crates branch April 4, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-block2 Affects the `block2` crate A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant