Skip to content

Commit

Permalink
Remove deprecated "apple" Cargo feature
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 15, 2025
1 parent 65fd4a7 commit 2125d2c
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 29 deletions.
3 changes: 3 additions & 0 deletions crates/block2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* **BREAKING**: Converted function signatures into using `extern "C-unwind"`.
This allows unwinding through blocks.

### Removed
* **BREAKING**: Removed the deprecated `apple` Cargo feature flag.


## 0.5.1 - 2024-05-21

Expand Down
3 changes: 0 additions & 3 deletions crates/block2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ default = ["std"]
std = ["alloc"]
alloc = []

# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []

# Link to libBlocksRuntime from compiler-rt.
compiler-rt = ["objc2/unstable-compiler-rt"] # TODO: fix this

Expand Down
4 changes: 2 additions & 2 deletions crates/header-translator/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ impl ItemTree {
.into_iter()
}

/// Required Cargo.toml features in [dependencies] table.
/// Required Cargo.toml features in `[dependencies]` table.
///
/// Returns (crate, required_feature) pairs.
pub fn required_crate_features<'config>(
Expand Down Expand Up @@ -774,7 +774,7 @@ impl ItemTree {
crate_features.into_iter()
}

/// The Cargo.toml features that will be enabled in [features] table.
/// The Cargo.toml features that will be enabled in `[features]` table.
///
/// Returns (feature, enabled_feature) pairs.
pub fn enabled_features(
Expand Down
3 changes: 0 additions & 3 deletions crates/objc2-proc-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ workspace = true
[features]
default = []

# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []

# Runtime selection (for future compatibility)
gnustep-1-7 = []
gnustep-1-8 = ["gnustep-1-7"]
Expand Down
1 change: 1 addition & 0 deletions crates/objc2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
`IdIntoIterator`, as well as their methods. Use the renamed traits instead.
* **BREAKING**: Removed the ability to implement `ClassType` manually, to make
it easier to evolve the API going forwards.
* **BREAKING**: Removed the deprecated `apple` Cargo feature flag.

### Fixed
* Remove an incorrect assertion when adding protocols to classes in an unexpected
Expand Down
3 changes: 0 additions & 3 deletions crates/objc2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ unstable-arbitrary-self-types = []
# Uses the nightly derive_coerce_pointee feature to make conversions more ergonomic.
unstable-coerce-pointee = []

# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []

# Compile for GNUStep's libobjc2
#
# `unstable-static-class` is always enabled on GNUStep, as it fails to link in
Expand Down
3 changes: 0 additions & 3 deletions framework-crates/objc2-app-kit/Cargo.modified.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[features]
# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []

# Runtime selection. See `objc2` for details.
gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7", "objc2-foundation/gnustep-1-7", "objc2-core-data?/gnustep-1-7", "objc2-quartz-core?/gnustep-1-7"]
gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8", "objc2-foundation/gnustep-1-8", "objc2-core-data?/gnustep-1-8", "objc2-quartz-core?/gnustep-1-8"]
Expand Down
1 change: 0 additions & 1 deletion framework-crates/objc2-app-kit/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions framework-crates/objc2-core-data/Cargo.modified.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[features]
# No-op, deprecated
apple = []
gnustep-1-7 = []
gnustep-1-8 = []
gnustep-1-9 = []
Expand Down
1 change: 0 additions & 1 deletion framework-crates/objc2-core-data/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions framework-crates/objc2-core-image/Cargo.modified.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[features]
# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []

# Runtime selection. See `objc2` for details.
gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7", "objc2-foundation/gnustep-1-7"]
gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8", "objc2-foundation/gnustep-1-8"]
Expand Down
1 change: 0 additions & 1 deletion framework-crates/objc2-core-image/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions framework-crates/objc2-foundation/Cargo.modified.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ required-features = [
]

[features]
# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []

# Runtime selection. See `objc2` for details.
gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7"]
gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8"]
Expand Down
1 change: 0 additions & 1 deletion framework-crates/objc2-foundation/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions framework-crates/objc2-quartz-core/Cargo.modified.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
description = "Bindings to the QuartzCore/CoreAnimation framework"

[features]
# No-op, deprecated
apple = []
gnustep-1-7 = []
gnustep-1-8 = []
gnustep-1-9 = []
Expand Down
1 change: 0 additions & 1 deletion framework-crates/objc2-quartz-core/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2125d2c

Please sign in to comment.