forked from auracaster/bumble_mirror
Further adventures in porting tools to Rust to flesh out the supported API. These tools didn't feel like `example`s, so I made a top level `bumble` CLI tool that hosts them all as subcommands. I also moved the usb probe not-really-an-`example` into it as well. I'm open to suggestions on how best to organize the subcommands to make them intuitive to explore with `--help`, and how to leave room for other future tools. I also adopted the per-OS project data dir for a default firmware location so that users can download once and then use those .bin files from anywhere without having to sprinkle .bin files in project directories or reaching inside the python package dir hierarchy.
34 lines
1.3 KiB
Rust
34 lines
1.3 KiB
Rust
// Copyright 2023 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Rust API for [Bumble](https://github.com/google/bumble).
|
|
//!
|
|
//! Bumble is a userspace Bluetooth stack that works with more or less anything that uses HCI. This
|
|
//! could be physical Bluetooth USB dongles, netsim, HCI proxied over a network from some device
|
|
//! elsewhere, etc.
|
|
//!
|
|
//! It also does not restrict what you can do with Bluetooth the way that OS Bluetooth APIs
|
|
//! typically do, making it good for prototyping, experimentation, test tools, etc.
|
|
//!
|
|
//! Bumble is primarily written in Python. Rust types that wrap the Python API, which is currently
|
|
//! the bulk of the code, are in the [wrapper] module.
|
|
|
|
#![deny(missing_docs, unsafe_code)]
|
|
|
|
pub mod wrapper;
|
|
|
|
pub mod adv;
|
|
|
|
pub(crate) mod internal;
|