[bt-common] LtValue trait, CodecCapabilities

Add LtValue trait and helper functions to help with defining types
that are length-type-value structure.

Add CompanyId, CodingFormat from core spec.

Migrate core::fmt::Display to std::fmt::Display for PeerId to not
conflict with core mod.

Add packet_encoding mod.

Bug: b/308483293
Tests: cargo test
Change-Id: Ie4d4e26f83f632ee93853b62a2c1f41dc2b5c8a8
Reviewed-on: https://bluetooth-review.git.corp.google.com/c/bluetooth/+/1320
Reviewed-by: Dayeong Lee <dayeonglee@google.com>
10 files changed
tree: b583e6f0d6ad100f5264c2bdcaa58f7588ab3d8e
  1. rust/
  2. OWNERS
  3. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared source libraries that can be useful for multiple Bluetooth stacks. Many of these are meant to be stack-agnostic and platform-agnostic and implement a useful part of a published Bluetooth specification.

It has been started as a repository for developing Rust crates but can be easily expanded to include libraries for other languages.

Structure

  • rust - Rust Crates