ridiculous refactor to allow enums to be dbus strings for better TS generation

This commit is contained in:
Luke D. Jones
2023-06-27 21:16:13 +12:00
parent fca7d23a31
commit 7b17a13ce7
43 changed files with 1516 additions and 267 deletions

View File

@@ -33,3 +33,27 @@ pub mod error;
pub mod usb;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
// #[cfg(feature = "typescript")]
// #[cfg(test)]
// mod tests {
// use crate::usb::{AnimShutdown, Brightness, AnimSleeping, AnimAwake,
// AnimBooting}; use crate::{AnimeType, Animations, DeviceState};
// use ts_rs::SingleFileExporter;
// #[test]
// fn test_singlefile() {
// let out = SingleFileExporter::new(false)
// .and::<AnimeType>()
// .and::<Animations>()
// .and::<DeviceState>()
// .and::<Brightness>()
// .and::<AnimShutdown>()
// .and::<AnimSleeping>()
// .and::<AnimAwake>()
// .and::<AnimBooting>()
// .finish()
// .unwrap();
// println!("{out}");
// assert_eq!(out, "");
// }
// }