haply/lib.rs
1//! Haply Robotics Client Library
2//!
3//! This crate provides a Rust interface for interacting with Haply haptic devices
4//! through the Haply Inverse Service. It supports both HTTP and WebSocket
5//! communications for device control and state management.
6
7#[cfg(test)]
8#[path = "unit_tests.rs"]
9mod unit_tests;
10
11// Public modules for external use
12pub mod device; // Core device interaction functionality
13
14pub mod interfaces; // Event channel handling and notifications
15pub mod device_model; // Data structures and models
16pub mod physics; // Physics simulation utilities
17
18pub use physics as physics_model;
19
20// Re-exports of commonly used items
21pub use interfaces::{http, websocket, events};
22
23pub use interfaces::events as events_model;
24
25pub use device::HaplyDevice;
26pub use physics::compute_total_force;
27pub use physics_model::{ Cube, Sphere };