playdate_device/
lib.rs

1#![allow(trivial_bounds)]
2#![feature(trivial_bounds)]
3#![feature(error_generic_member_access)]
4#![feature(exit_status_error)]
5#![feature(associated_type_defaults)]
6#![cfg_attr(feature = "tracing", allow(unused_braces))]
7
8#[macro_use]
9#[cfg(feature = "tracing")]
10extern crate tracing;
11
12#[macro_use]
13#[cfg(not(feature = "tracing"))]
14extern crate log;
15
16pub extern crate serialport;
17
18pub mod error;
19pub mod serial;
20pub mod usb;
21pub mod device;
22pub mod mount;
23
24pub mod send;
25pub mod install;
26pub mod run;
27
28pub mod interface;
29
30pub mod retry;
31
32
33pub const VENDOR_ID: u16 = 0x1331;
34pub const PRODUCT_ID_DATA: u16 = 0x5740;
35pub const PRODUCT_ID_STORAGE: u16 = 0x5741;