Skip to content

Commit bbd12e9

Browse files
authored
wasmtime-cache: use wasmtime_environ::Error instead of anyhow (#12210)
1 parent 50dd635 commit bbd12e9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cache/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rust-version.workspace = true
1313
workspace = true
1414

1515
[dependencies]
16-
anyhow = { workspace = true, features = ['std'] }
1716
base64 = { workspace = true }
1817
postcard = { workspace = true }
1918
directories-next = "2.0"
@@ -23,6 +22,7 @@ serde_derive = { workspace = true }
2322
sha2 = "0.10.2"
2423
toml = { workspace = true }
2524
zstd = { version = "0.13.0", default-features = false }
25+
wasmtime-environ = { workspace = true }
2626

2727
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
2828
workspace = true

crates/cache/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Module for configuring the cache system.
22
3-
use anyhow::{Context, Result, anyhow, bail};
43
use directories_next::ProjectDirs;
54
use log::{trace, warn};
65
use serde::{
@@ -11,6 +10,7 @@ use std::fmt::Debug;
1110
use std::fs;
1211
use std::path::{Path, PathBuf};
1312
use std::time::Duration;
13+
use wasmtime_environ::error::{Context, Result, anyhow, bail};
1414

1515
// wrapped, so we have named section in config,
1616
// also, for possible future compatibility

crates/cache/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! > Wasmtime repository to start a discussion about doing so, but otherwise
66
//! > be aware that your usage of this crate is not supported.
77
8-
use anyhow::Result;
98
use base64::Engine;
109
use log::{debug, trace, warn};
1110
use serde::{Deserialize, Serialize};
@@ -18,6 +17,7 @@ use std::sync::Arc;
1817
use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
1918
use std::time::Duration;
2019
use std::{fs, io};
20+
use wasmtime_environ::error::Result;
2121

2222
#[macro_use] // for tests
2323
mod config;

0 commit comments

Comments
 (0)