Skip to content

Commit b22781c

Browse files
committed
Allow unstable-darwin-objc in examples to enable recursively
There isn't stability issues with this, since we don't ship the examples. And this more clearly shows what users would want to do.
1 parent 3478b6f commit b22781c

File tree

6 files changed

+33
-5
lines changed

6 files changed

+33
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/app/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ name = "hello_world_app"
1919
path = "hello_world_app.rs"
2020

2121
[features]
22-
unstable-darwin-objc = []
22+
unstable-darwin-objc = [
23+
"objc2/unstable-darwin-objc",
24+
"objc2-app-kit/unstable-darwin-objc",
25+
"objc2-foundation/unstable-darwin-objc",
26+
]
2327

2428
[dependencies]
2529
objc2 = "0.6.2"

examples/audio/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ name = "speech_synthesis"
1010
path = "speech_synthesis.rs"
1111

1212
[features]
13-
unstable-darwin-objc = []
13+
unstable-darwin-objc = [
14+
"objc2/unstable-darwin-objc",
15+
"objc2-foundation/unstable-darwin-objc",
16+
]
1417

1518
[dependencies]
1619
objc2 = "0.6.2"

examples/metal/Cargo.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ name = "default_xcode_game"
1414
path = "default_xcode_game/main.rs"
1515

1616
[features]
17-
unstable-darwin-objc = []
17+
unstable-darwin-objc = [
18+
"objc2/unstable-darwin-objc",
19+
"objc2-app-kit/unstable-darwin-objc",
20+
"objc2-core-foundation/unstable-darwin-objc",
21+
"objc2-foundation/unstable-darwin-objc",
22+
"objc2-metal-kit/unstable-darwin-objc",
23+
"objc2-metal/unstable-darwin-objc",
24+
"objc2-model-io/unstable-darwin-objc",
25+
"objc2-quartz-core/unstable-darwin-objc",
26+
]
1827

1928
[dependencies]
2029
objc2 = "0.6.2"
@@ -65,6 +74,7 @@ objc2-core-foundation = { version = "0.3.1", default-features = false, features
6574
"std",
6675
"CFCGTypes",
6776
] }
77+
objc2-quartz-core = { version = "0.3.1", default-features = false, features = [] }
6878

6979
[target.'cfg(target_os = "macos")'.dependencies]
7080
objc2-app-kit = { version = "0.3.1", default-features = false, features = [

examples/testing/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ name = "ui_test"
1414
path = "ui_test.rs"
1515

1616
[features]
17-
unstable-darwin-objc = []
17+
unstable-darwin-objc = [
18+
"objc2/unstable-darwin-objc",
19+
"objc2-foundation/unstable-darwin-objc",
20+
"objc2-xc-test/unstable-darwin-objc",
21+
"objc2-xc-ui-automation/unstable-darwin-objc",
22+
]
1823

1924
[dependencies]
2025
objc2 = "0.6.2"

examples/webkit/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ name = "browser"
1010
path = "browser.rs"
1111

1212
[features]
13-
unstable-darwin-objc = []
13+
unstable-darwin-objc = [
14+
"objc2/unstable-darwin-objc",
15+
"objc2-app-kit/unstable-darwin-objc",
16+
"objc2-foundation/unstable-darwin-objc",
17+
"objc2-web-kit/unstable-darwin-objc",
18+
]
1419

1520
[dependencies]
1621
objc2 = "0.6.2"

0 commit comments

Comments
 (0)