Skip to content

Commit 4681477

Browse files
committed
[add] initial scaffolding.
1 parent e894456 commit 4681477

7 files changed

Lines changed: 27 additions & 0 deletions

File tree

crates/lambda-rs-platform/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,11 @@ wgpu-with-vulkan = ["wgpu"]
4848
wgpu-with-metal = ["wgpu", "wgpu/metal"]
4949
wgpu-with-dx12 = ["wgpu", "wgpu/dx12"]
5050
wgpu-with-gl = ["wgpu", "wgpu/webgl"]
51+
52+
# ---------------------------------- AUDIO ------------------------------------
53+
54+
# Umbrella features (disabled by default)
55+
audio = ["audio-device"]
56+
57+
# Granular feature flags (disabled by default)
58+
audio-device = []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#![allow(clippy::needless_return)]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![allow(clippy::needless_return)]
2+
3+
pub mod device;

crates/lambda-rs-platform/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ pub mod shader;
1515
#[cfg(feature = "wgpu")]
1616
pub mod wgpu;
1717
pub mod winit;
18+
19+
#[cfg(feature = "audio-device")]
20+
pub mod cpal;

crates/lambda-rs/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ with-wgpu-metal=["with-wgpu", "lambda-rs-platform/wgpu-with-metal"]
3232
with-wgpu-dx12=["with-wgpu", "lambda-rs-platform/wgpu-with-dx12"]
3333
with-wgpu-gl=["with-wgpu", "lambda-rs-platform/wgpu-with-gl"]
3434

35+
# ---------------------------------- AUDIO ------------------------------------
36+
37+
# Umbrella features (disabled by default)
38+
audio = ["audio-output-device"]
39+
40+
# Granular feature flags (disabled by default)
41+
audio-output-device = []
42+
3543
# ------------------------------ RENDER VALIDATION -----------------------------
3644
# Granular, opt-in validation flags for release builds. Debug builds enable
3745
# all validations unconditionally via `debug_assertions`.

crates/lambda-rs/src/audio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#![allow(clippy::needless_return)]

crates/lambda-rs/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ pub mod runtime;
2020
pub mod runtimes;
2121
pub mod util;
2222

23+
#[cfg(feature = "audio-output-device")]
24+
pub mod audio;
25+
2326
/// The logging module provides a simple logging interface for Lambda
2427
/// applications.
2528
pub use logging;

0 commit comments

Comments
 (0)