make thiserror a workspace dependency everywhere else
This commit is contained in:
1 parent
469a7ac0af
commit
f159779af4
9 files changed
+10
-8
No files matched your search
+1
-1
@@ -76,7 +76,7 @@ futures-util = { version = "0.3", default-features = false }
|
||||
rustc-hash = "1.1.0"
|
||||
wasm-bindgen = "0.2.87"
|
||||
html_parser = "0.7.0"
|
||||
thiserror = "1.0.30"
|
||||
thiserror = "1.0.40"
|
||||
|
||||
# This is a "virtual package"
|
||||
# It is not meant to be published, but is used so "cargo run --example XYZ" works properly
|
||||
|
||||
@@ -10,7 +10,7 @@ license = "MIT/Apache-2.0"
|
||||
[dependencies]
|
||||
# cli core
|
||||
clap = { version = "4.2", features = ["derive"] }
|
||||
thiserror = "1.0.30"
|
||||
thiserror = { workspace = true }
|
||||
wasm-bindgen-cli-support = "0.2"
|
||||
colored = "2.0.0"
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ dioxus-hot-reload = { workspace = true, optional = true }
|
||||
|
||||
serde = "1.0.136"
|
||||
serde_json = "1.0.79"
|
||||
thiserror = "1.0.30"
|
||||
thiserror = { workspace = true }
|
||||
log = { workspace = true }
|
||||
wry = { version = "0.28.0" }
|
||||
futures-channel = { workspace = true }
|
||||
|
||||
@@ -33,7 +33,7 @@ futures-util = { workspace = true }
|
||||
log = { workspace = true }
|
||||
rand = { version = "0.8.4", features = ["small_rng"] }
|
||||
criterion = "0.3.5"
|
||||
thiserror = "1.0.30"
|
||||
thiserror = { workspace = true }
|
||||
env_logger = "0.10.0"
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
# dioxus-edit-stream = { workspace = true }
|
||||
|
||||
@@ -34,7 +34,7 @@ http = { version = "0.2.9", optional = true }
|
||||
|
||||
log = { workspace = true }
|
||||
once_cell = "1.17.1"
|
||||
thiserror = "1.0.40"
|
||||
thiserror = { workspace = true }
|
||||
tokio = { workspace = true, features = ["full"], optional = true }
|
||||
object-pool = "0.5.4"
|
||||
anymap = "0.12.1"
|
||||
|
||||
@@ -153,6 +153,7 @@ impl<T> UseSharedState<T> {
|
||||
})
|
||||
.map(|value| Ref::map(value, |inner| &inner.value))
|
||||
}
|
||||
|
||||
/// Read the shared value
|
||||
pub fn read(&self) -> Ref<'_, T> {
|
||||
match self.try_read() {
|
||||
@@ -177,6 +178,7 @@ impl<T> UseSharedState<T> {
|
||||
RefMut::map(value, |inner| &mut inner.value)
|
||||
})
|
||||
}
|
||||
|
||||
/// Calling "write" will force the component to re-render
|
||||
///
|
||||
///
|
||||
|
||||
@@ -9,7 +9,7 @@ description = "Build server-side apps with Dioxus"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1.0.38"
|
||||
thiserror = { workspace = true }
|
||||
log = { workspace = true }
|
||||
slab = { workspace = true }
|
||||
futures-util = { workspace = true, default-features = false, features = [
|
||||
|
||||
@@ -30,7 +30,7 @@ wasm-bindgen = { workspace = true, optional = true }
|
||||
js-sys = { version = "0.3", optional = true }
|
||||
gloo-events = { version = "0.1.1", optional = true }
|
||||
log = { workspace = true }
|
||||
thiserror = "1.0.30"
|
||||
thiserror = { workspace = true }
|
||||
futures-util = { workspace = true }
|
||||
serde = { version = "1", optional = true }
|
||||
serde_urlencoded = { version = "0.7.1", optional = true }
|
||||
|
||||
@@ -15,7 +15,7 @@ askama_escape = "0.10.3"
|
||||
|
||||
[dev-dependencies]
|
||||
dioxus = { workspace = true }
|
||||
thiserror = "1.0.23"
|
||||
thiserror = { workspace = true }
|
||||
log = { workspace = true }
|
||||
fern = { version = "0.6.0", features = ["colored"] }
|
||||
anyhow = "1.0"
|
||||
|
||||
Reference in new issue
Block a user