Skip to content

Commit 02f3ba6

Browse files
committed
[update] target defaults.
1 parent e621348 commit 02f3ba6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/lambda-rs-platform/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ gfx-with-dx12=["dep:gfx-backend-dx12"]
4343
crate-type = ["cdylib", "rlib"]
4444
incremental = true
4545

46-
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.default_backend]
46+
[target.'cfg(all(unix, not(target_os = "macos"), not(feature = "gfx-with-opengl")))'.dependencies.default_backend]
4747
package = "gfx-backend-gl"
4848
version = "=0.9.0"
4949
optional = true
5050

51-
[target.'cfg(all(target_os = "macos"))'.dependencies.default_backend]
51+
[target.'cfg(all(target_os = "macos", not(feature = "gfx-with-metal")))'.dependencies.default_backend]
5252
package = "gfx-backend-metal"
5353
version = "=0.9.0"
5454
optional = true
5555

56-
[target.'cfg(all(windows))'.dependencies.default_backend]
56+
[target.'cfg(all(windows, not(feature = "gfx-with-dx12")))'.dependencies.default_backend]
5757
package = "gfx-backend-dx12"
5858
version = "=0.9.0"
5959
optional = true

0 commit comments

Comments
 (0)