rust/bt-gatt: Refactor CharacteristicProperties to be zero-allocation

Use a static slice of CharacteristicProperty instead of Vec to avoid
allocation. Update all callsites to use this.

While here, define convenience types for common sets of properties.

Test: ./presubmit.sh

Change-Id: Ic6eb4d3e6413d7d9b3d03cf7a461c93e7a275cf7
Reviewed-on: https://bluetooth-review.googlesource.com/c/bluetooth/+/3760
13 files changed
tree: 71e589cee294ec75bc4eabd688ff3cb6c70fc3dd
  1. .agents/
  2. docs/
  3. infra/
  4. rust/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. GEMINI.md
  9. LICENSE
  10. OWNERS
  11. PATENTS
  12. presubmit.sh
  13. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared libraries and tools that can be useful for multiple Bluetooth stacks.

These tools and libraries are meant to be:

  • Stack-agnostic and platform-agnostic
  • Implement a useful subset of a published Bluetooth specification.

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

What is this not?

It is not a full Bluetooth stack. Google has two officially open-source Bluetooth stacks:

Structure

  • rust - Rust Crates
  • docs - General documentation (documentation for each library/tool is included in their directories)