0.1.0-0-pre.1
This commit is contained in:
17
crates/engines/engine-v1-sdl/Cargo.toml
Normal file
17
crates/engines/engine-v1-sdl/Cargo.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
# file: crates/engines/engine-v1-sdl/Cargo.toml
|
||||
# version: 1
|
||||
|
||||
[package]
|
||||
name = "engine-v1-sdl"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
authors.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[dependencies]
|
||||
engine-v1-common = { path = "../engine-v1-common" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
15
crates/engines/engine-v1-sdl/src/lib.rs
Normal file
15
crates/engines/engine-v1-sdl/src/lib.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
// file: crates/engines/engine-v1-sdl/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
//! SDL boundary for engine generation V1.
|
||||
//!
|
||||
//! The baseline intentionally contains only the boundary type. The external SDL3 dependency is introduced in the dedicated SDL integration delta.
|
||||
|
||||
mod runtime;
|
||||
|
||||
/// Re-export of the SDL runtime boundary marker.
|
||||
pub use self::runtime::SdlRuntimeBoundary;
|
||||
14
crates/engines/engine-v1-sdl/src/runtime.rs
Normal file
14
crates/engines/engine-v1-sdl/src/runtime.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// file: crates/engines/engine-v1-sdl/src/runtime.rs
|
||||
// version: 1
|
||||
|
||||
/// Marker representing the future SDL3 runtime boundary for engine V1.
|
||||
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
|
||||
pub struct SdlRuntimeBoundary;
|
||||
|
||||
impl SdlRuntimeBoundary {
|
||||
/// Returns the engine generation served by this boundary.
|
||||
#[must_use]
|
||||
pub const fn engine_generation() -> u16 {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user