Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 95 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ foundation-api = { path = "api" }
foundation-abstracted = { path = "abstracted" }
btp = { path = "btp" }
quantum-link-macros = { path = "quantum-link-macros" }
rand = "0.9.1"

[patch.crates-io]
pqcrypto-traits = { git = "https://github.com/Foundation-Devices/pqcrypto", rev = "ebadf71214f67cb970242fa1053b4acb65767737" }
Expand Down
4 changes: 2 additions & 2 deletions abstracted/src/abstracted/abstract_bluetooth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ pub trait AbstractBluetoothChannel {
}
}

let message = unchunker.data();
Envelope::try_from_cbor_data(message.to_owned())
let message = unchunker.data().expect("data is complete");
Envelope::try_from_cbor_data(message)
}

async fn send_request_with_id<E, S>(
Expand Down
6 changes: 6 additions & 0 deletions api/src/api/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ use flutter_rust_bridge::frb;
use minicbor_derive::{Decode, Encode};
use quantum_link_macros::quantum_link;

#[quantum_link]
pub struct RawMessage {
#[n(0)]
pub payload: Vec<u8>,
}

#[quantum_link]
pub struct EnvoyMessage {
#[n(0)]
Expand Down
5 changes: 2 additions & 3 deletions btp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ edition = "2021"
homepage.workspace = true

[dependencies]
minicbor = "0.24.2"
anyhow = "1.0.86"
consts = { git = "https://github.com/Foundation-Devices/prime-ble-firmware.git", features = ["dle"] }
consts = { git = "https://github.com/Foundation-Devices/prime-ble-firmware.git", features = ["dle"] }
rand = { workspace = true }
Loading