Fix some dependencies (#7794)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -110,7 +110,7 @@ candle-nn = { version = "0.9", default-features = false }
|
||||
candle-transformers = { version = "0.9", default-features = false }
|
||||
byteorder = "1.5.0"
|
||||
tokenizers = { version = "0.21.0", default-features = false, features = ["onig"] }
|
||||
hf-hub = { version = "0.4.3", default-features = false, features = ["tokio"] }
|
||||
hf-hub = { version = "0.5.0", default-features = false, features = ["tokio"] }
|
||||
symphonia = { version = "0.5", features = ["all"] }
|
||||
rubato = "0.16"
|
||||
zip = "0.6"
|
||||
@@ -120,8 +120,7 @@ schemars = { workspace = true, features = [
|
||||
"derive",
|
||||
] }
|
||||
insta = "1.43.2"
|
||||
paste = "1.0.0"
|
||||
posthog-rs = "0.3.7"
|
||||
posthog-rs = "0.4.3"
|
||||
shellexpand = { workspace = true }
|
||||
indexmap = "2.12.0"
|
||||
ignore = { workspace = true }
|
||||
@@ -142,6 +141,7 @@ unbinder = "0.1.7"
|
||||
pulldown-cmark = "0.13.0"
|
||||
llama-cpp-2 = { version = "0.1.137", features = ["sampler"] }
|
||||
encoding_rs = "0.8.35"
|
||||
pastey = "0.2.1"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
winapi = { version = "0.3", features = ["wincred"] }
|
||||
|
||||
@@ -158,12 +158,12 @@ pub trait ConfigValue {
|
||||
macro_rules! config_value {
|
||||
($key:ident, $type:ty) => {
|
||||
impl Config {
|
||||
paste::paste! {
|
||||
pastey::paste! {
|
||||
pub fn [<get_ $key:lower>](&self) -> Result<$type, ConfigError> {
|
||||
self.get_param(stringify!($key))
|
||||
}
|
||||
}
|
||||
paste::paste! {
|
||||
pastey::paste! {
|
||||
pub fn [<set_ $key:lower>](&self, v: impl Into<$type>) -> Result<(), ConfigError> {
|
||||
self.set_param(stringify!($key), &v.into())
|
||||
}
|
||||
@@ -172,7 +172,7 @@ macro_rules! config_value {
|
||||
};
|
||||
|
||||
($key:ident, $inner:ty, $default:expr) => {
|
||||
paste::paste! {
|
||||
pastey::paste! {
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(transparent)]
|
||||
pub struct [<$key:camel>]($inner);
|
||||
|
||||
Reference in New Issue
Block a user