Skip to content

Make new releases #78

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

Merged
merged 7 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ members = [
"objc2-foundation",
"tests",
]
exclude = ["objc2/tests-ios"]
12 changes: 12 additions & 0 deletions block-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

Notable changes to this crate will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD


## 0.0.1 - 2021-11-22

Initial release.
4 changes: 2 additions & 2 deletions block-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "block-sys"
version = "0.0.0" # Remember to update html_root_url in lib.rs
version = "0.0.1" # Remember to update html_root_url in lib.rs
authors = ["Mads Marquart <[email protected]>"]
edition = "2018"

Expand Down Expand Up @@ -47,4 +47,4 @@ winobjc = ["objc-sys/winobjc", "gnustep-1-8"]
objfw = []

[dependencies]
objc-sys = { path = "../objc-sys", optional = true }
objc-sys = { path = "../objc-sys", version = "0.1.0", optional = true }
2 changes: 1 addition & 1 deletion block-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//! [ABI]: https://clang.llvm.org/docs/Block-ABI-Apple.html

// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/block-sys/0.0.0")]
#![doc(html_root_url = "https://docs.rs/block-sys/0.0.1")]

// Ensure linkage actually happens
#[cfg(feature = "gnustep-1-7")]
Expand Down
5 changes: 4 additions & 1 deletion block2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD


## 0.2.0-alpha.1 - 2021-11-22

### Added
* Proper GNUStep support using `block-sys`. See that crate for usage.
* Export `block-sys` as `ffi` module.
Expand All @@ -14,7 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Dependency on `objc_test_utils`.

### Fixed
* `ConcreteBlock` longer allocates block descriptors on the heap.
* `ConcreteBlock` no longer allocates block descriptors on the heap.
* Better unwind safety in `ConcreteBlock::copy`.


Expand Down
11 changes: 4 additions & 7 deletions block2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "block2"
# Remember to update html_root_url in lib.rs and README.md
version = "0.2.0-alpha.0"
version = "0.2.0-alpha.1"
authors = ["Steven Sheldon", "Mads Marquart <[email protected]>"]
edition = "2018"

Expand All @@ -17,10 +17,7 @@ repository = "https://github.com/madsmtm/objc2"
documentation = "https://docs.rs/block2/"
license = "MIT"

exclude = [
"tests-ios/**",
]

[dependencies]
objc2-encode = { path = "../objc2-encode", version = "2.0.0-alpha.1" }
block-sys = { path = "../block-sys" }
# Loose dependency, because objc2-encode is not expected to change much more
objc2-encode = { path = "../objc2-encode", version = "^2.0.0-beta.0" }
block-sys = { path = "../block-sys", version = "0.0.1" }
2 changes: 1 addition & 1 deletion block2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ were to copy it twice we could have a double free.
#![warn(unreachable_pub)]
#![deny(unsafe_op_in_unsafe_fn)]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/block2/0.2.0-alpha.0")]
#![doc(html_root_url = "https://docs.rs/block2/0.2.0-alpha.1")]

extern crate std;

Expand Down
3 changes: 3 additions & 0 deletions objc-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD


## 0.1.0 - 2021-11-22

### Changed
* **BREAKING**: Use feature flags `apple`, `gnustep-X-Y` or `winobjc` to
specify the runtime you're using, instead of the `RUNTIME_VERSION`
Expand Down
2 changes: 1 addition & 1 deletion objc-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "objc-sys"
version = "0.0.1" # Remember to update html_root_url in lib.rs
version = "0.1.0" # Remember to update html_root_url in lib.rs
authors = ["Mads Marquart <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion objc-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#![allow(clippy::upper_case_acronyms)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![doc(html_root_url = "https://docs.rs/objc-sys/0.0.1")]
#![doc(html_root_url = "https://docs.rs/objc-sys/0.1.0")]

// TODO: Replace `extern "C"` with `extern "C-unwind"` where applicable.
// See https://rust-lang.github.io/rfcs/2945-c-unwind-abi.html.
Expand Down
3 changes: 3 additions & 0 deletions objc2-encode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD


## 2.0.0-beta.0 - 2021-11-22

### Added
* **BREAKING**: Add `Encoding::LongDouble`, `Encoding::FloatComplex`,
`Encoding::DoubleComplex` and `Encoding::LongDoubleComplex`.
Expand Down
2 changes: 1 addition & 1 deletion objc2-encode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "objc2-encode"
# Remember to update html_root_url in lib.rs and README.md
version = "2.0.0-alpha.1"
version = "2.0.0-beta.0"
authors = ["Steven Sheldon", "Mads Marquart <[email protected]>"]
edition = "2018"

Expand Down
8 changes: 0 additions & 8 deletions objc2-encode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,3 @@ assert_eq!(i32::ENCODING.to_string(), "i");
See the [`examples`] folder for more complex usage.

[`examples`]: https://github.com/madsmtm/objc2/tree/master/objc2-encode/examples


## Installation

```toml
[dependencies]
objc2-encode = "1.1.0"
```
2 changes: 1 addition & 1 deletion objc2-encode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#![warn(unreachable_pub)]
#![deny(unsafe_op_in_unsafe_fn)]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-encode/2.0.0-alpha.1")]
#![doc(html_root_url = "https://docs.rs/objc2-encode/2.0.0-beta.0")]

#[cfg(doctest)]
#[doc = include_str!("../README.md")]
Expand Down
2 changes: 2 additions & 0 deletions objc2-foundation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD

## 0.2.0-alpha.2 - 2021-11-22

### Added
* **BREAKING**: Added associated `Ownership` type to `INSObject` to specify
whether the type can be mutated or not. `NSString` is a prime example of a
Expand Down
9 changes: 5 additions & 4 deletions objc2-foundation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "objc2-foundation"
version = "0.2.0-alpha.1" # Remember to update html_root_url in lib.rs
version = "0.2.0-alpha.2" # Remember to update html_root_url in lib.rs
authors = ["Steven Sheldon", "Mads Marquart <[email protected]>"]
edition = "2018"

Expand All @@ -24,6 +24,7 @@ default = ["block"]
block = ["block2"]

[dependencies]
block2 = { path = "../block2", version = "=0.2.0-alpha.0", optional = true }
objc2 = { path = "../objc2", version = "=0.3.0-alpha.3" }
objc-sys = { path = "../objc-sys", version = "0.0.1" }
# Exact dependencies, because block2 and objc2 are expected to change
block2 = { path = "../block2", version = "=0.2.0-alpha.1", optional = true }
objc2 = { path = "../objc2", version = "=0.3.0-alpha.4" }
objc-sys = { path = "../objc-sys", version = "0.1.0" }
2 changes: 1 addition & 1 deletion objc2-foundation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO: #![warn(missing_docs)]
#![deny(unsafe_op_in_unsafe_fn)]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-foundation/0.2.0-alpha.1")]
#![doc(html_root_url = "https://docs.rs/objc2-foundation/0.2.0-alpha.2")]

extern crate alloc;
extern crate std;
Expand Down
7 changes: 5 additions & 2 deletions objc2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD


## 0.3.0-alpha.4 - 2021-11-22

### Added
* **BREAKING**: GNUStep users must specify the appropriate feature flag on
`objc-sys` for the version they're using.
* **BREAKING**: GNUStep users must depend on, and specify the appropriate
feature flag on `objc-sys` for the version they're using.
* Moved `objc_exception` crate into `exception` module (under feature flag).
* Added support for `_Complex` types.
* Added `rc::SliceId`, `rc::SliceIdMut` and `rc::DefaultId` helper traits for
Expand Down
12 changes: 4 additions & 8 deletions objc2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "objc2"
version = "0.3.0-alpha.3" # Remember to update html_root_url in lib.rs
version = "0.3.0-alpha.4" # Remember to update html_root_url in lib.rs
authors = ["Steven Sheldon", "Mads Marquart <[email protected]>"]
edition = "2018"

Expand All @@ -16,11 +16,6 @@ repository = "https://github.com/madsmtm/objc2"
documentation = "https://docs.rs/objc2/"
license = "MIT"

exclude = [
"doc.sh",
"tests-ios/**",
]

build = "build.rs"

[features]
Expand All @@ -34,8 +29,9 @@ unstable_autoreleasesafe = []

[dependencies]
malloc_buf = "1.0"
objc-sys = { path = "../objc-sys", version = "0.0.1" }
objc2-encode = { path = "../objc2-encode", version = "2.0.0-alpha.1" }
objc-sys = { path = "../objc-sys", version = "0.1.0" }
# Loose dependency, because objc2-encode is not expected to change much more
objc2-encode = { path = "../objc2-encode", version = "^2.0.0-beta.0" }

[build-dependencies]
cc = { version = "1", optional = true }
41 changes: 0 additions & 41 deletions objc2/doc.sh

This file was deleted.

2 changes: 1 addition & 1 deletion objc2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The bindings can be used on Linux or *BSD utilizing the
#![warn(unreachable_pub)]
#![deny(unsafe_op_in_unsafe_fn)]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2/0.3.0-alpha.3")]
#![doc(html_root_url = "https://docs.rs/objc2/0.3.0-alpha.4")]

extern crate alloc;
extern crate std;
Expand Down
9 changes: 0 additions & 9 deletions objc2/tests-ios/prelude.rs

This file was deleted.