Skip to content

Commit ef1e6c8

Browse files
committed
chore: update deps (#417)
1 parent b43229a commit ef1e6c8

40 files changed

Lines changed: 1781 additions & 1398 deletions

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ default = ["libre-services", "proprietary-services"]
1818

1919
[dependencies]
2020
anyhow = "1"
21-
audioadapter-buffers = "3"
21+
audioadapter-buffers = "5"
2222
async-compression = { version = "0.4", features = ["zlib", "tokio"] }
2323
async-trait = "0.1"
24-
base64 = "0.22"
24+
base64 = "0.23"
2525
bitflags = "2"
2626
camino = { version = "1", features = ["serde1"] }
2727
chrono = "0.4"
@@ -40,23 +40,24 @@ gpui = { package = "gpui-unofficial", git = "https://git.mailliw.org/hummingbird
4040
gpui_platform = { git = "https://github.com/gpui-ce/gpui-ce", features = ["wayland", "x11", "font-kit"] }
4141
image = "0.25"
4242
indexmap = { version = "2", features = ["serde"] }
43-
infer = "0.19"
43+
infer = "0.22"
4444
intx = "0.1"
4545
itertools = "0.15"
46-
lofty = "0.24"
46+
lofty = "0.25"
4747
md5 = "0.8"
4848
minisign-verify = { version = "0.2", optional = true }
4949
moka = { version = "0.12", features = ["sync"] }
5050
notify = "8"
5151
nucleo = "0.5"
5252
open = "5"
53+
palette = "0.7"
5354
postcard = { version = "1", features = ["use-std"] }
5455
rand = "0.10"
5556
raw-window-handle = "0.6"
5657
realfft = "3"
5758
regex = "1"
5859
rtrb = "0.3"
59-
rubato = "3"
60+
rubato = "5"
6061
rust-embed = "8"
6162
rustc-hash = "2"
6263
same-file = "1"

src/devices/resample.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ impl Resampler {
159159
orig_rate as usize,
160160
target_rate as usize,
161161
duration as usize,
162-
2,
163162
channels as usize,
164163
FixedSync::Input,
165164
)

src/logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use tracing_subscriber::{
1717
util::SubscriberInitExt,
1818
};
1919

20-
const DEFAULT_LOG_FILTER: &str = "info,symphonia=warn,zbus=warn";
20+
const DEFAULT_LOG_FILTER: &str = "info,symphonia=warn,zbus=warn,sum_tree=warn";
2121
const LOG_FILE_NAME: &str = "hummingbird.log";
2222
const MAX_LOG_FILE_SIZE: usize = 1024 * 1024;
2323
const MAX_LOG_FILES: usize = 4;

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
)]
66

77
use cntp_i18n::{I18N_MANAGER, tr_load};
8-
use gpui::set_enabled;
8+
use gpui::set_trace_enabled;
99
#[cfg(not(target_os = "macos"))]
1010
use std::path::Path;
1111
use std::sync::LazyLock;
@@ -58,7 +58,7 @@ fn main() -> anyhow::Result<()> {
5858
windows::init()?;
5959

6060
// disable the GPUI mini profiler immediately to avoid unnecessary allocations
61-
set_enabled(false);
61+
set_trace_enabled(false);
6262

6363
I18N_MANAGER.load_source(tr_load!());
6464
crate::logging::init()?;

src/ui/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl Render for MainWindow {
143143
StyleRefinement::default()
144144
.w_full()
145145
.h_full()
146-
.flex_shrink()
146+
.flex_shrink(1.0)
147147
.max_w_full()
148148
.max_h_full(),
149149
),

src/ui/components/callout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl RenderOnce for Callout {
6767
.flex_col()
6868
.flex()
6969
.w_full()
70-
.flex_shrink()
70+
.flex_shrink(1.0)
7171
.pt(px(6.0))
7272
.pl(px(12.0))
7373
.pb(px(9.0))
@@ -76,7 +76,7 @@ impl RenderOnce for Callout {
7676
.when_some(self.title, |this, title| {
7777
this.child(
7878
div()
79-
.flex_shrink()
79+
.flex_shrink(1.0)
8080
.overflow_hidden()
8181
.text_size(px(16.0))
8282
.font_weight(FontWeight::BOLD)
@@ -85,7 +85,7 @@ impl RenderOnce for Callout {
8585
})
8686
.child(
8787
div()
88-
.flex_shrink()
88+
.flex_shrink(1.0)
8989
.text_sm()
9090
.overflow_hidden()
9191
.child(self.caption),

src/ui/components/drag_drop.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use gpui::{
55
IntoElement, ParentElement, Pixels, Point, Render, RenderOnce, SharedString, Styled, Window,
66
anchored, div, point, prelude::FluentBuilder, px, size,
77
};
8+
use palette::IntoColor;
89

910
use super::scrollbar::ScrollableHandle;
1011

@@ -240,11 +241,11 @@ pub struct DropIndicator {
240241
}
241242

242243
impl DropIndicator {
243-
pub fn with_state(show_before: bool, show_after: bool, color: impl Into<Hsla>) -> Self {
244+
pub fn with_state(show_before: bool, show_after: bool, color: impl IntoColor<Hsla>) -> Self {
244245
Self {
245246
show_before,
246247
show_after,
247-
color: color.into(),
248+
color: color.into_color(),
248249
}
249250
}
250251
}

src/ui/components/dropdown.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ impl<T: Clone + PartialEq + 'static> RenderOnce for Dropdown<T> {
9090
.id(self.id)
9191
.child(
9292
div()
93-
.flex_grow()
94-
.flex_shrink()
93+
.flex_grow(1.0)
94+
.flex_shrink(1.0)
9595
.text_sm()
9696
.line_height(px(14.0))
9797
.text_color(theme.text)
@@ -271,7 +271,7 @@ impl<T: Clone + PartialEq + 'static> RenderOnce for Dropdown<T> {
271271
)
272272
.child(
273273
div()
274-
.flex_grow()
274+
.flex_grow(1.0)
275275
.overflow_hidden()
276276
.text_ellipsis()
277277
.text_color(theme.text)

src/ui/components/icons/icon.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use gpui::{IntoElement, RenderOnce, SharedString, StyleRefinement, Styled, Svg, svg};
2+
use palette::IntoColor;
23

34
use crate::ui::theme::Theme;
45

@@ -18,7 +19,12 @@ impl RenderOnce for Icon {
1819
fn render(mut self, _: &mut gpui::Window, cx: &mut gpui::App) -> impl gpui::IntoElement {
1920
let theme = cx.global::<Theme>();
2021

21-
let color_ref = *self.svg.style().text.color.get_or_insert(theme.text.into());
22+
let color_ref = *self
23+
.svg
24+
.style()
25+
.text
26+
.color
27+
.get_or_insert(theme.text.into_color());
2228

2329
self.svg.path(self.icon).text_color(color_ref)
2430
}

0 commit comments

Comments
 (0)