1pub mod device;
8pub mod errors;
9#[cfg(feature = "ext")]
10pub mod ext;
11#[cfg(feature = "image")]
12pub mod image;
13#[cfg(feature = "input")]
14pub mod input;
15pub mod jsonrpc;
16pub mod proto;
17#[cfg(feature = "screenrecord")]
18pub mod screenrecord;
19pub mod selector;
20pub mod server;
21pub mod session;
22pub mod settings;
23pub mod swipe;
24pub mod uiobject;
25#[cfg(feature = "xpath")]
26pub mod watcher;
27#[cfg(feature = "xpath")]
28pub mod xpath;
29
30pub use device::{connect_usb, Device};
31pub use errors::{Error, Result};
32#[cfg(feature = "input")]
33pub use input::EditorAction;
34pub use proto::{Direction, DEFAULT_SERVER_PORT};
35pub use selector::Selector;
36pub use server::Server;
37pub use session::Session;
38pub use settings::Settings;
39pub use uiobject::UiObject;
40#[cfg(feature = "xpath")]
41pub use watcher::Watcher;
42
43use adbutils::AdbDevice;
44
45pub async fn connect(serial: Option<&str>) -> Result<Device> {
48 connect_usb(serial).await
49}
50
51pub async fn connect_server(dev: AdbDevice, port: u16) -> Result<Server> {
54 Server::connect(dev, port).await
55}