diff --git a/Cargo.toml b/Cargo.toml index 922bdb53a..39ca2a6f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,4 +8,3 @@ members = [ "objc2-foundation", "tests", ] -exclude = ["objc2/tests-ios"] diff --git a/block-sys/CHANGELOG.md b/block-sys/CHANGELOG.md new file mode 100644 index 000000000..4ba02b6bc --- /dev/null +++ b/block-sys/CHANGELOG.md @@ -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. diff --git a/block-sys/Cargo.toml b/block-sys/Cargo.toml index 3e8b3e8de..e927e12af 100644 --- a/block-sys/Cargo.toml +++ b/block-sys/Cargo.toml @@ -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 "] edition = "2018" @@ -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 } diff --git a/block-sys/src/lib.rs b/block-sys/src/lib.rs index 63b24a15f..8afb76540 100644 --- a/block-sys/src/lib.rs +++ b/block-sys/src/lib.rs @@ -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")] diff --git a/block2/CHANGELOG.md b/block2/CHANGELOG.md index 18c82edfe..463dbb689 100644 --- a/block2/CHANGELOG.md +++ b/block2/CHANGELOG.md @@ -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. @@ -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`. diff --git a/block2/Cargo.toml b/block2/Cargo.toml index 8bfd1b6b1..4333e5274 100644 --- a/block2/Cargo.toml +++ b/block2/Cargo.toml @@ -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 "] edition = "2018" @@ -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" } diff --git a/block2/src/lib.rs b/block2/src/lib.rs index 52abda0dd..55c744f05 100644 --- a/block2/src/lib.rs +++ b/block2/src/lib.rs @@ -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; diff --git a/objc-sys/CHANGELOG.md b/objc-sys/CHANGELOG.md index 1f22bb2ed..c1dcd37d7 100644 --- a/objc-sys/CHANGELOG.md +++ b/objc-sys/CHANGELOG.md @@ -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` diff --git a/objc-sys/Cargo.toml b/objc-sys/Cargo.toml index 74df9de37..534c7a046 100644 --- a/objc-sys/Cargo.toml +++ b/objc-sys/Cargo.toml @@ -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 "] edition = "2018" diff --git a/objc-sys/src/lib.rs b/objc-sys/src/lib.rs index 2ca0e8f28..4017806a8 100644 --- a/objc-sys/src/lib.rs +++ b/objc-sys/src/lib.rs @@ -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. diff --git a/objc2-encode/CHANGELOG.md b/objc2-encode/CHANGELOG.md index 7b94b7f15..c2612b5d4 100644 --- a/objc2-encode/CHANGELOG.md +++ b/objc2-encode/CHANGELOG.md @@ -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`. diff --git a/objc2-encode/Cargo.toml b/objc2-encode/Cargo.toml index 63dfaf97c..598b23b8f 100644 --- a/objc2-encode/Cargo.toml +++ b/objc2-encode/Cargo.toml @@ -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 "] edition = "2018" diff --git a/objc2-encode/README.md b/objc2-encode/README.md index 625be3c4b..6e8b1b567 100644 --- a/objc2-encode/README.md +++ b/objc2-encode/README.md @@ -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" -``` diff --git a/objc2-encode/src/lib.rs b/objc2-encode/src/lib.rs index 45b0bd834..fbb5125e7 100644 --- a/objc2-encode/src/lib.rs +++ b/objc2-encode/src/lib.rs @@ -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")] diff --git a/objc2-foundation/CHANGELOG.md b/objc2-foundation/CHANGELOG.md index 308922029..981f3fb2e 100644 --- a/objc2-foundation/CHANGELOG.md +++ b/objc2-foundation/CHANGELOG.md @@ -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 diff --git a/objc2-foundation/Cargo.toml b/objc2-foundation/Cargo.toml index 3c8ec7444..8ab47a528 100644 --- a/objc2-foundation/Cargo.toml +++ b/objc2-foundation/Cargo.toml @@ -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 "] edition = "2018" @@ -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" } diff --git a/objc2-foundation/src/lib.rs b/objc2-foundation/src/lib.rs index 90e48d382..ee4e95ed0 100644 --- a/objc2-foundation/src/lib.rs +++ b/objc2-foundation/src/lib.rs @@ -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; diff --git a/objc2/CHANGELOG.md b/objc2/CHANGELOG.md index c8b5c4186..7078a6788 100644 --- a/objc2/CHANGELOG.md +++ b/objc2/CHANGELOG.md @@ -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 diff --git a/objc2/Cargo.toml b/objc2/Cargo.toml index 1277564e1..b29d9d0e8 100644 --- a/objc2/Cargo.toml +++ b/objc2/Cargo.toml @@ -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 "] edition = "2018" @@ -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] @@ -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 } diff --git a/objc2/doc.sh b/objc2/doc.sh deleted file mode 100755 index 5b251eb34..000000000 --- a/objc2/doc.sh +++ /dev/null @@ -1,41 +0,0 @@ -#! /usr/bin/env sh - -set -ev - -mkdir -p doc -cd doc - -git clone -b gh-pages git@github.com:SSheldon/rust-objc.git out -pushd out -git rm -r . -git reset HEAD . -popd - -CARGO_TOML='[package] -name = "doc" -version = "0.0.0" - -[lib] -name = "doc" -path = "doc.rs" - -[dependencies] -block = "*" -dispatch = "*" -objc = "*" -objc-encode = "*" -objc_exception = "*" -objc_test_utils = "*" -objc_id = "*" -objc-foundation = "*"' - -echo "$CARGO_TOML" > Cargo.toml -touch doc.rs -cargo doc - -cp -r target/doc/ out/ -pushd out -rm .lock -git add . -git commit -m "Updated documentation." -popd diff --git a/objc2/src/lib.rs b/objc2/src/lib.rs index c55099f82..96ac4ae1a 100644 --- a/objc2/src/lib.rs +++ b/objc2/src/lib.rs @@ -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; diff --git a/objc2/tests-ios/prelude.rs b/objc2/tests-ios/prelude.rs deleted file mode 100644 index 17c7752fc..000000000 --- a/objc2/tests-ios/prelude.rs +++ /dev/null @@ -1,9 +0,0 @@ -#[macro_use] -extern crate objc2; - -use objc2::rc::*; -use objc2::runtime::*; -pub use objc2::*; - -#[path = "../src/test_utils.rs"] -mod test_utils;