Skip to content

Commit 9e32ff6

Browse files
authored
Merge pull request #206 from madsmtm/foundation-refactor
Improve `objc2-foundation`
2 parents 2c02ac3 + dd9d965 commit 9e32ff6

21 files changed

+1176
-660
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
# Use --no-fail-fast, except with dinghy
154154
TESTARGS: ${{ matrix.dinghy && ' ' || '--no-fail-fast' }} ${{ matrix.test-args }}
155155
SOME_FEATURES: ${{ matrix.features || 'malloc,block,exception' }}
156-
FEATURES: ${{ matrix.features || 'malloc,block,exception,catch-all,verify_message' }}
156+
FEATURES: ${{ matrix.features || 'malloc,block,exception,catch-all,verify_message,uuid' }}
157157
UNSTABLE_FEATURES: ${{ matrix.unstable-features || 'unstable-autoreleasesafe,unstable-c-unwind' }}
158158

159159
runs-on: ${{ matrix.os }}

objc2-foundation/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## Unreleased - YYYY-MM-DD
88

9+
### Added
10+
* Implement `UnwindSafe` and `RefUnwindSafe` for all objects.
11+
* Implemented `IntoIterator` for references to `NSArray`, `NSMutableArray`,
12+
`NSData` and `NSMutableData`.
13+
* Implemented `Extend` for `NSMutableArray`.
14+
* Add extra `Extend<&u8>` impl for `NSMutableData`.
15+
16+
### Fixed
17+
* Made `Debug` impls for all objects print something useful.
18+
19+
### Removed
20+
* `NSObject::hash_code`, `NSObject::is_equal` and `NSObject::description` in
21+
favour of just having the trait implementations `Hash`, `PartiqalEq` and
22+
`Debug`.
23+
924

1025
## 0.2.0-alpha.6 - 2022-07-19
1126

objc2-foundation/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ gnustep-2-1 = ["gnustep-2-0", "objc2/gnustep-2-1", "block2?/gnustep-2-1"]
4040
block2 = { path = "../block2", version = "=0.2.0-alpha.5", default-features = false, optional = true }
4141
objc2 = { path = "../objc2", version = "=0.3.0-beta.1", default-features = false }
4242

43+
# Provides methods to convert between `uuid::Uuid` and `NSUUID`
44+
uuid = { version = "1.1.2", optional = true, default-features = false }
45+
4346
[package.metadata.docs.rs]
4447
default-target = "x86_64-apple-darwin"
45-
features = ["block", "unstable-docsrs"]
48+
features = ["block", "uuid", "unstable-docsrs"]
4649

4750
targets = [
4851
# MacOS

0 commit comments

Comments
 (0)