Skip to content

Commit f80a63f

Browse files
committed
chore(deps): upgrade probe-rs to ^0.17
1 parent aed9ffa commit f80a63f

File tree

3 files changed

+25
-39
lines changed

3 files changed

+25
-39
lines changed

Cargo.lock

Lines changed: 13 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/r3_test_runner/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ r3_test_suite = { workspace = true }
1313
arg_enum_proc_macro = { version = "0.3.0" }
1414
aho-corasick = { version = "0.7.13" }
1515
futures-core = { version = "0.3.5" }
16-
probe-rs-rtt = { version = "0.14.0" }
1716
tokio-serial = { version = "5.4.1" }
1817
async-mutex = { version = "1.4.0" }
1918
env_logger = { version = "0.8.4" }
@@ -22,7 +21,7 @@ serialport = { version = "4.0.0" }
2221
itertools = { version = "0.10.0" }
2322
thiserror = { version = "1.0.20" }
2423
bytemuck = { version = "1.12.3", features = ["derive"] }
25-
probe-rs = { version = "0.14.0" }
24+
probe-rs = { version = "0.17.0" }
2625
tempdir = { version = "0.3.7" }
2726
anyhow = { version = "1.0.32" }
2827
serde = { version = "1.0.114" }

src/r3_test_runner/src/targets/probe_rs.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const RTT_ATTACH_TIMEOUT: Duration = Duration::from_millis(500);
142142
#[derive(thiserror::Error, Debug)]
143143
pub enum AttachRttError {
144144
#[error("Error while attaching to the RTT channel")]
145-
AttachRtt(#[source] probe_rs_rtt::Error),
145+
AttachRtt(#[source] probe_rs::rtt::Error),
146146
#[error("Error while halting or resuming the core to access the RTT channel")]
147147
HaltCore(#[source] probe_rs::Error),
148148
#[error("Timeout while trying to attach to the RTT channel.")]
@@ -172,14 +172,14 @@ pub async fn attach_rtt(
172172
.unwrap();
173173
if let Some(x) = addr {
174174
log::debug!("Found the RTT header at {x:#x}");
175-
probe_rs_rtt::ScanRegion::Exact(x as u32)
175+
probe_rs::rtt::ScanRegion::Exact(x as u32)
176176
} else {
177-
probe_rs_rtt::ScanRegion::Ram
177+
probe_rs::rtt::ScanRegion::Ram
178178
}
179179
}
180180
Err(e) => {
181181
log::warn!("Couldn't read the executable to find the RTT header: {e:?}");
182-
probe_rs_rtt::ScanRegion::Ram
182+
probe_rs::rtt::ScanRegion::Ram
183183
}
184184
};
185185

@@ -201,9 +201,9 @@ pub async fn attach_rtt(
201201
&mut core
202202
};
203203

204-
match probe_rs_rtt::Rtt::attach_region(core, &memory_map, &rtt_scan_region) {
204+
match probe_rs::rtt::Rtt::attach_region(core, &memory_map, &rtt_scan_region) {
205205
Ok(rtt) => Some(rtt),
206-
Err(probe_rs_rtt::Error::ControlBlockNotFound) => None,
206+
Err(probe_rs::rtt::Error::ControlBlockNotFound) => None,
207207
Err(e) => return Err(AttachRttError::AttachRtt(e)),
208208
}
209209
};
@@ -279,7 +279,7 @@ enum ReadRttSt {
279279
Idle {
280280
buf: ReadRttBuf,
281281
session: AsyncMutexGuard<probe_rs::Session>,
282-
rtt: Box<probe_rs_rtt::Rtt>,
282+
rtt: Box<probe_rs::rtt::Rtt>,
283283
pos: usize,
284284
len: usize,
285285
},
@@ -291,7 +291,7 @@ enum ReadRttSt {
291291
ReadRttBuf,
292292
AsyncMutexGuard<probe_rs::Session>,
293293
usize,
294-
Box<probe_rs_rtt::Rtt>,
294+
Box<probe_rs::rtt::Rtt>,
295295
)>,
296296
>,
297297
},
@@ -300,7 +300,7 @@ enum ReadRttSt {
300300
PollDelay {
301301
buf: ReadRttBuf,
302302
session: AsyncMutexGuard<probe_rs::Session>,
303-
rtt: Box<probe_rs_rtt::Rtt>,
303+
rtt: Box<probe_rs::rtt::Rtt>,
304304
delay: Pin<Box<Sleep>>,
305305
},
306306

@@ -312,7 +312,7 @@ type ReadRttBuf = Box<[u8; 1024]>;
312312
impl ReadRtt {
313313
fn new(
314314
session: AsyncMutexGuard<probe_rs::Session>,
315-
rtt: probe_rs_rtt::Rtt,
315+
rtt: probe_rs::rtt::Rtt,
316316
options: RttOptions,
317317
) -> Self {
318318
Self {
@@ -440,7 +440,7 @@ impl AsyncBufRead for ReadRtt {
440440
impl ReadRtt {
441441
fn read_inner(
442442
session: &mut probe_rs::Session,
443-
rtt: &mut probe_rs_rtt::Rtt,
443+
rtt: &mut probe_rs::rtt::Rtt,
444444
buf: &mut [u8],
445445
halt_on_access: bool,
446446
) -> tokio::io::Result<usize> {

0 commit comments

Comments
 (0)