Skip to content

Commit a50572c

Browse files
committed
fix: forward models3d + image-extras from all platform crates
Same break class as the web fix one commit back: every platform crate compiles bloom-shared with default-features = false, so the EN-014 gates removed EngineState.models from all of them while their model FFI stayed unconditional (build-linux CI failure; windows/android/ ios/tvos would fail identically, they're just not in CI). Mirror the macos feature block everywhere.
1 parent 824e2c4 commit a50572c

5 files changed

Lines changed: 25 additions & 5 deletions

File tree

native/android/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ name = "bloom_android"
88
crate-type = ["staticlib", "cdylib"]
99

1010
[features]
11-
default = ["jolt"]
11+
default = ["jolt", "models3d", "image-extras"]
1212
jolt = ["bloom-shared/jolt"]
13+
# EN-014 — see native/shared/Cargo.toml. Default-on so existing games are
14+
# unaffected; pure-2D games opt out via Perry feature forwarding.
15+
models3d = ["bloom-shared/models3d"]
16+
image-extras = ["bloom-shared/image-extras"]
1317

1418
[dependencies]
1519
bloom-shared = { path = "../shared", default-features = false, features = ["mp3"] }

native/ios/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ name = "bloom_ios"
88
crate-type = ["staticlib"]
99

1010
[features]
11-
default = ["jolt"]
11+
default = ["jolt", "models3d", "image-extras"]
1212
jolt = ["bloom-shared/jolt"]
13+
# EN-014 — see native/shared/Cargo.toml. Default-on so existing games are
14+
# unaffected; pure-2D games opt out via Perry feature forwarding.
15+
models3d = ["bloom-shared/models3d"]
16+
image-extras = ["bloom-shared/image-extras"]
1317

1418
# Match perry-runtime's panic strategy so the final perry-driven link
1519
# doesn't see two copies of rust_eh_personality (and friends) from two

native/linux/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ name = "bloom_linux"
88
crate-type = ["staticlib"]
99

1010
[features]
11-
default = ["jolt"]
11+
default = ["jolt", "models3d", "image-extras"]
1212
jolt = ["bloom-shared/jolt"]
13+
# EN-014 — see native/shared/Cargo.toml. Default-on so existing games are
14+
# unaffected; pure-2D games opt out via Perry feature forwarding.
15+
models3d = ["bloom-shared/models3d"]
16+
image-extras = ["bloom-shared/image-extras"]
1317

1418
[dependencies]
1519
bloom-shared = { path = "../shared", default-features = false, features = ["mp3"] }

native/tvos/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ name = "bloom_tvos"
88
crate-type = ["staticlib"]
99

1010
[features]
11-
default = ["jolt"]
11+
default = ["jolt", "models3d", "image-extras"]
1212
jolt = ["bloom-shared/jolt"]
13+
# EN-014 — see native/shared/Cargo.toml. Default-on so existing games are
14+
# unaffected; pure-2D games opt out via Perry feature forwarding.
15+
models3d = ["bloom-shared/models3d"]
16+
image-extras = ["bloom-shared/image-extras"]
1317

1418
# Match perry-runtime's panic strategy so the final perry-driven link
1519
# doesn't see two copies of rust_eh_personality (and friends) from two

native/windows/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ crate-type = ["staticlib"]
1616
# Games that need bloom/physics on Windows must opt in explicitly until the
1717
# perry side gains a way to thread `cargo:rustc-link-search` through to the
1818
# final link line.
19-
default = []
19+
default = ["models3d", "image-extras"]
2020
jolt = ["bloom-shared/jolt"]
21+
# EN-014 — see native/shared/Cargo.toml. Default-on so existing games are
22+
# unaffected; pure-2D games opt out via Perry feature forwarding.
23+
models3d = ["bloom-shared/models3d"]
24+
image-extras = ["bloom-shared/image-extras"]
2125

2226
[dependencies]
2327
bloom-shared = { path = "../shared", default-features = false, features = ["mp3"] }

0 commit comments

Comments
 (0)