0.1.0-0-pre.1
This commit is contained in:
13
crates/engines/engine-v1-platform-api/src/lib.rs
Normal file
13
crates/engines/engine-v1-platform-api/src/lib.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
// file: crates/engines/engine-v1-platform-api/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
//! Platform service contracts shared by engine generation V1.
|
||||
|
||||
mod service;
|
||||
|
||||
/// Re-export of the minimal platform service capability enumeration.
|
||||
pub use self::service::PlatformCapability;
|
||||
17
crates/engines/engine-v1-platform-api/src/service.rs
Normal file
17
crates/engines/engine-v1-platform-api/src/service.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
// file: crates/engines/engine-v1-platform-api/src/service.rs
|
||||
// version: 1
|
||||
|
||||
/// Platform capabilities that may have different implementations per target.
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum PlatformCapability {
|
||||
/// Advertising integration.
|
||||
Advertising,
|
||||
/// In-app billing integration.
|
||||
Billing,
|
||||
/// Native share integration.
|
||||
Sharing,
|
||||
/// Haptic feedback integration.
|
||||
Haptics,
|
||||
/// Online leaderboard integration.
|
||||
Leaderboard,
|
||||
}
|
||||
Reference in New Issue
Block a user