Bump heapless and all that bumped it

This commit is contained in:
Nicolas Stalder
2021-06-10 18:25:18 -04:00
committed by Nicolas Stalder
parent 5ba508a530
commit 6dcbc0d1b7
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ edition = "2018"
[dependencies]
delog = "0.1.0"
heapless = "0.6"
heapless-bytes = "0.2.0"
heapless = "0.7"
heapless-bytes = "0.3"
interchange = "0.2.0"
[features]
+5 -5
View File
@@ -6,13 +6,13 @@ pub enum Error {
InvalidLength,
}
// 7609 bytes is max message size for ctaphid
type U6144 = <heapless::consts::U4096 as core::ops::Add<heapless::consts::U2048>>::Output;
type U7168 = <U6144 as core::ops::Add<heapless::consts::U1024>>::Output;
pub type U7609 = <U7168 as core::ops::Add<heapless::consts::U441>>::Output;
// // 7609 bytes is max message size for ctaphid
// type U6144 = <heapless::consts::U4096 as core::ops::Add<heapless::consts::U2048>>::Output;
// type U7168 = <U6144 as core::ops::Add<heapless::consts::U1024>>::Output;
// pub type U7609 = <U7168 as core::ops::Add<heapless::consts::U441>>::Output;
// pub type U7609 = heapless::consts::U4096;
pub type Message = heapless_bytes::Bytes<U7609>;
pub type Message = heapless::Vec<u8, 7609>;
pub type AppResult = core::result::Result<(), Error>;
pub type InterchangeResponse = core::result::Result<Message, Error>;