ockam_transport_ble/
lib.rs

1//! This crate provides a BLE Transport for Ockam's Routing Protocol.
2//! Please read the support [documentation](./documentation.md) for more information.
3#![deny(
4    //missing_docs,
5    dead_code,
6    trivial_casts,
7    trivial_numeric_casts,
8    unsafe_code,
9    unused_import_braces,
10    unused_qualifications
11)]
12#![allow(unexpected_cfgs)]
13#![cfg_attr(not(feature = "std"), no_std)]
14#![cfg_attr(target = "mips", feature(asm))]
15#![cfg_attr(target = "mips", feature(asm_experimental_arch))]
16
17#[cfg(feature = "std")]
18extern crate core;
19
20#[cfg_attr(feature = "alloc", macro_use)]
21extern crate alloc;
22
23#[macro_use]
24extern crate tracing;
25
26pub mod driver;
27mod error;
28mod macros;
29mod router;
30mod transport;
31mod types;
32mod workers;
33
34use ockam_core::TransportType;
35
36pub use driver::{BleClient, BleServer};
37pub use transport::BleTransport;
38pub use types::*;
39
40/// BLE address type constant
41pub const BLE: TransportType = TransportType::new(4);