Skip to content

Commit ff82009

Browse files
committed
Fix compilation fearures on macos.
1 parent 84d6558 commit ff82009

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ default = ["wayland"]
1212
wayland = ["processing_render/wayland"]
1313
x11 = ["processing_render/x11"]
1414
webcam = ["dep:processing_webcam"]
15-
cuda = ["dep:processing_cuda"]
15+
cuda = ["dep:processing_cuda", "processing_cuda/cuda"]
1616

1717
[workspace]
1818
resolver = "3"

crates/processing_cuda/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ edition = "2024"
77
workspace = true
88

99
[features]
10-
default = ["cuda-11040"]
11-
cuda-11040 = ["bevy_cuda/cuda-11040"]
10+
default = []
11+
cuda = ["dep:bevy_cuda", "bevy_cuda/cuda-11040"]
1212

1313
[dependencies]
1414
bevy = { workspace = true }
15-
bevy_cuda = { workspace = true }
15+
bevy_cuda = { workspace = true, optional = true }
1616
processing_core = { workspace = true }
1717
processing_render = { workspace = true }

crates/processing_cuda/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "cuda")]
2+
13
use bevy::prelude::*;
24
use bevy::render::RenderApp;
35
use bevy::render::render_resource::{Texture, TextureFormat};

crates/processing_pyo3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ wayland = ["processing/wayland", "processing_glfw/wayland"]
1616
static-link = ["processing_glfw/static-link"]
1717
x11 = ["processing/x11"]
1818
webcam = ["processing/webcam", "dep:processing_webcam"]
19-
cuda = ["dep:processing_cuda", "processing/cuda"]
19+
cuda = ["dep:processing_cuda", "processing_cuda/cuda", "processing/cuda"]
2020

2121
[dependencies]
2222
pyo3 = { workspace = true, features = ["experimental-inspect", "multiple-pymethods"] }

0 commit comments

Comments
 (0)