Skip to content

Commit d138b11

Browse files
authored
Merge pull request #705 from kas-gui/push-ussxzkltwnkv
Update deps: easy-cast, impl-tools-lib, wgpu
2 parents 33ca364 + 6dd69e8 commit d138b11

19 files changed

Lines changed: 41 additions & 28 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
toolchain: [stable]
8686
include:
8787
- os: ubuntu-latest
88-
toolchain: "1.92.0"
88+
toolchain: "1.96.0"
8989
variant: MSRV
9090
- os: ubuntu-latest
9191
toolchain: beta

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
33
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## [Unreleased]
6+
7+
- Bump MSRV to 1.96.0 (#705)
8+
59
## [0.17.1] — 2026-01-30 – 2026-02-03
610

711
### Fixes

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Diggory Hardy <git@dhardy.name>"]
33
edition = "2024"
44
license = "Apache-2.0"
55
repository = "https://github.com/kas-gui/kas"
6-
rust-version = "1.92.0"
6+
rust-version = "1.96.0"
77

88
[package]
99
name = "kas"

crates/kas-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ab_glyph = { version = "0.2.10", optional = true }
115115
swash = { version = "0.2.4", features = ["scale"] }
116116
linearize = { version = "0.1.5", features = ["derive"] }
117117
kas-text = "0.9.0"
118-
easy-cast = "0.5.4" # used in doc links
118+
easy-cast = "0.6.0"
119119
pulldown-cmark = { version = "0.13.0", optional = true }
120120

121121
[dependencies.kas-macros]

crates/kas-macros/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ quote = "1.0"
3232
proc-macro2 = { version = "1.0" }
3333
proc-macro-error3 = { version = "3.0", default-features = false }
3434
bitflags = "2.3.3"
35-
impl-tools-lib = "0.12.0"
35+
impl-tools-lib = "0.13.0"
3636

3737
[dependencies.syn]
38-
version = "2.0.22"
38+
version = "3.0.2"
3939
# We need 'extra-traits' for equality testing
4040
# We need 'full' for parsing macros within macro arguments
4141
features = ["extra-traits", "full", "visit", "visit-mut"]

crates/kas-macros/src/widget.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub fn widget(attr_span: Span, scope: &mut Scope) -> Result<()> {
4545
let mut translation_span = None;
4646
let mut handle_scroll = false;
4747
for (index, impl_) in scope.impls.iter_mut().enumerate() {
48-
if let Some((_, ref path, _)) = impl_.trait_ {
48+
if let Some((ref path, _)) = impl_.trait_ {
4949
if *path == parse_quote! { ::kas::Widget }
5050
|| *path == parse_quote! { kas::Widget }
5151
|| *path == parse_quote! { Widget }
@@ -287,6 +287,7 @@ pub fn widget(attr_span: Span, scope: &mut Scope) -> Result<()> {
287287
});
288288
}
289289
field.ty = Type::Path(syn::TypePath {
290+
attrs: vec![],
290291
qself: None,
291292
path: core_type.into(),
292293
});

crates/kas-macros/src/widget_derive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn derive_widget(attr_span: Span, _: DeriveArgs, scope: &mut Scope) -> Result<()
6565
let mut widget_impl = None;
6666

6767
for (index, impl_) in scope.impls.iter().enumerate() {
68-
if let Some((_, ref path, _)) = impl_.trait_ {
68+
if let Some((ref path, _)) = impl_.trait_ {
6969
if *path == parse_quote! { ::kas::Layout }
7070
|| *path == parse_quote! { kas::Layout }
7171
|| *path == parse_quote! { Layout }

crates/kas-wgpu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ package = "kas-core"
3838
path = "../kas-core"
3939

4040
[dependencies.wgpu]
41-
version = "29.0.0"
41+
version = "30.0.0"
4242
default-features = false
4343
features = ["spirv"]
4444

crates/kas-wgpu/src/draw/atlases.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ impl<I: bytemuck::Pod> Window<I> {
363363
mapped_at_creation: true,
364364
});
365365

366-
let mut view = buffer.slice(..byte_len.get()).get_mapped_range_mut();
366+
let mut view = buffer
367+
.slice(..byte_len.get())
368+
.get_mapped_range_mut()
369+
.unwrap();
367370
copy_to_slice(&mut self.passes, &mut view);
368371
drop(view);
369372

crates/kas-wgpu/src/draw/common.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ impl<V: bytemuck::Pod> Window<V> {
6565
mapped_at_creation: true,
6666
});
6767

68-
let mut view = buffer.slice(..byte_len.get()).get_mapped_range_mut();
68+
let mut view = buffer
69+
.slice(..byte_len.get())
70+
.get_mapped_range_mut()
71+
.unwrap();
6972
copy_to_slice(&mut self.passes, &mut view);
7073
drop(view);
7174

0 commit comments

Comments
 (0)