Files
RedBear-OS/local/recipes/drivers/redox-driver-core/src/lib.rs
T
vasilito 7c7399e0a6 feat: recipe durability guard — prevents build system from deleting local recipes
Add guard-recipes.sh with four modes:
- --verify: check all local/recipes have correct symlinks into recipes/
- --fix: repair broken symlinks (run before builds)
- --save-all: snapshot all recipe.toml into local/recipes/
- --restore: recreate all symlinks from local/recipes/ (run after sync-upstream)

Wired into apply-patches.sh (post-patch) and sync-upstream.sh (post-sync).
This prevents the build system from deleting recipe files during
cargo cook, make distclean, or upstream source refresh.
2026-04-30 18:47:03 +01:00

33 lines
1.1 KiB
Rust

#![cfg_attr(not(feature = "std"), no_std)]
#![doc = "Core device-model traits and orchestration primitives for Red Bear OS drivers."]
#[cfg(not(any(feature = "std", feature = "alloc", test)))]
compile_error!("redox-driver-core requires either the `std` or `alloc` feature");
extern crate alloc;
/// Bus abstractions and related error types.
pub mod bus;
/// Device descriptors and bound-device state.
pub mod device;
/// Driver traits and probe outcomes.
pub mod driver;
/// Hotplug and uevent metadata types.
pub mod hotplug;
/// Device-manager orchestration.
pub mod manager;
/// Match-table primitives.
pub mod r#match;
/// Driver parameter definitions and runtime values.
pub mod params;
pub use bus::{Bus, BusError};
pub use device::{BoundDevice, Device, DeviceId, DeviceInfo};
pub use driver::{Driver, DriverError, ProbeResult};
pub use hotplug::{Uevent, UeventAction};
#[cfg(feature = "hotplug")]
pub use hotplug::{HotplugEvent, HotplugSubscription};
pub use manager::{DeviceManager, ManagerConfig, ProbeEvent};
pub use params::{DriverParams, ParamDef, ParamValue};
pub use r#match::{DriverMatch, MatchPriority, MatchTable};