[package]
name = "ockam_transport_ble"
version = "0.7.0"
authors = ["Ockam Developers"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://github.com/ockam-network/ockam"
repository = "https://github.com/ockam-network/ockam/tree/develop/implementations/rust/ockam/ockam_transport_ble"
readme = "README.md"
keywords = ["ockam", "crypto", "network", "bluetooth", "ble"]
categories = ["cryptography", "asynchronous", "authentication", "embedded", "network-programming"]
description = """
Bluetooth Low Energy (BLE) Transport for the Ockam Routing Protocol.
"""
exclude = [
"DEVELOP.md",
"LICENSE"
]
autoexamples = false
publish = true
[features]
default = ["std", "use_btleplug", "ockam/software_vault"]
std = [
"ockam/std",
"ockam_core/std",
"ockam_node/std",
"ockam_transport_core/std",
"tracing/default",
"uuid",
]
no_std = [
"ockam/no_std",
"ockam_core/no_std",
"ockam_node/no_std",
"ockam_transport_core/no_std",
"heapless",
"nb",
]
alloc = [
"ockam/alloc",
"ockam_core/alloc",
"ockam_node/alloc",
"ockam_transport_core/alloc",
]
use_bluetooth_hci = [ "bluetooth-hci", "bluenrg" ]
use_btleplug = [ "btleplug" ]
atsame54 = [
"embedded-hal",
"atsame54_xpro",
]
stm32f4 = [
"embedded-hal",
"stm32f4xx-hal",
]
stm32h7 = [
"embedded-hal",
"stm32h7xx-hal",
"stm32-device-signature/stm32h75x",
]
pic32 = [
"embedded-hal",
"pic32-hal",
]
pic32mx1xxfxxxb = ["pic32", "pic32-hal/pic32mx1xxfxxxb"]
pic32mx2xxfxxxb = ["pic32", "pic32-hal/pic32mx2xxfxxxb"]
[dependencies]
ockam = { path = "../ockam", version = "^0.52.0", default_features = false }
ockam_core = { path = "../ockam_core", version = "^0.51.0", default_features = false }
ockam_node = { path = "../ockam_node", version = "^0.51.0", default_features = false }
ockam_executor = { path = "../ockam_executor", version = "^0.19.0", default_features = false }
ockam_transport_core = { path = "../ockam_transport_core", version = "^0.24.0", default_features = false }
futures = { version = "0.3.19", default-features = false }
futures-util = { version = "0.3.19", default-features = false, features = ["alloc", "async-await-macro", "sink"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
tracing = { version = "0.1", default_features = false }
btleplug = { version = "0.9.0", optional = true }
uuid = { version = "0.8.2", optional = true }
bluenrg = { version = "0.1.0", default-features = false, features = ["ms"], optional = true }
bluetooth-hci = { version = "0.1.0", default-features = false, features = ["version-4-1"], optional = true }
nb = { version = "1.0.0", optional = true }
heapless = { version = "0.7.7", optional = true }
atsame54_xpro = { version = "0.2.0", optional = true }
embedded-hal = { version = "0.2.3", optional = true }
stm32-device-signature = { version = "0.3.3", optional = true }
stm32f4xx-hal = { version = "0.9.0", features = ["rt", "stm32f407"], optional = true }
stm32h7xx-hal = { version = "0.9.0", features = ["rt", "stm32h747cm7"], optional = true }
pic32-hal = { version = "0.4.0", optional = true }
[target.'cfg(target_arch = "arm")'.dependencies]
cortex-m = "0.7.3"
[target.'cfg(any(target_arch = "riscv32", target_arch = "riscv64"))'.dependencies]
riscv = "0.7.0"
[[example]]
name = "04-routing-over-ble-transport-initiator"
required-features = [ "std", "use_btleplug" ]
[[example]]
name = "05-secure-channel-over-ble-transport-initiator"
required-features = [ "std", "use_btleplug" ]