Skip to content

Commit 7e4aa0b

Browse files
authored
Switch to edition 2024 (#292)
1 parent f59c98b commit 7e4aa0b

35 files changed

+103
-83
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
# If the compilation fails, then the version specified here needs to be bumped up to reality.
99
# Be sure to also update the rust-version property in the workspace Cargo.toml file,
1010
# plus all the README.md files of the affected packages.
11-
RUST_MIN_VER: "1.82"
11+
RUST_MIN_VER: "1.85"
1212
# List of packages that will be checked with the minimum supported Rust version.
1313
# This should be limited to packages that are intended for publishing.
1414
RUST_MIN_VER_PKGS: "-p parley -p fontique"

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ You can find its changes [documented below](#030---2025-02-27).
1313

1414
## [Unreleased]
1515

16-
This release has an [MSRV] of 1.82.
16+
This release has an [MSRV] of 1.85.
17+
18+
### Internals
19+
20+
Switched to edition 2024.
1721

1822
## [0.3.0] - 2025-02-27
1923

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ members = [
99
]
1010

1111
[workspace.package]
12-
edition = "2021"
12+
edition = "2024"
1313
# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml, with the relevant README.md files
1414
# and with the MSRV in the `Unreleased` section of CHANGELOG.md.
15-
rust-version = "1.82"
15+
rust-version = "1.85"
1616
license = "Apache-2.0 OR MIT"
1717
repository = "https://github.com/linebender/parley"
1818

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Besides what the other libraries do, this involves things like determining a gly
6969

7070
## Minimum supported Rust Version (MSRV)
7171

72-
This version of Parley has been verified to compile with **Rust 1.82** and later.
72+
This version of Parley has been verified to compile with **Rust 1.85** and later.
7373

7474
Future versions of Parley might increase the Rust version requirement.
7575
It will not be treated as a breaking change and as such can even happen with small patch releases.

examples/swash_render/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ use parley::layout::{Alignment, Glyph, GlyphRun, Layout, PositionedLayoutItem};
1616
use parley::style::{FontStack, FontWeight, StyleProperty, TextStyle};
1717
use parley::{AlignmentOptions, FontContext, InlineBox, LayoutContext};
1818
use std::fs::File;
19+
use swash::FontRef;
1920
use swash::scale::image::Content;
2021
use swash::scale::{Render, ScaleContext, Scaler, Source, StrikeWith};
2122
use swash::zeno;
22-
use swash::FontRef;
2323
use zeno::{Format, Vector};
2424

2525
#[derive(Clone, Copy, Debug, PartialEq)]

examples/tiny_skia_render/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ use parley::{
1818
Layout, LayoutContext, PositionedLayoutItem, StyleProperty,
1919
};
2020
use skrifa::{
21+
GlyphId, MetadataProvider, OutlineGlyph,
2122
instance::{LocationRef, NormalizedCoord, Size},
2223
outline::{DrawSettings, OutlinePen},
2324
raw::FontRef as ReadFontsRef,
24-
GlyphId, MetadataProvider, OutlineGlyph,
2525
};
2626
use tiny_skia::{Color, FillRule, Paint, PathBuilder, Pixmap, PixmapMut, Rect, Transform};
2727

examples/vello_editor/src/text.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
use accesskit::{Node, TreeUpdate};
55
use core::default::Default;
6-
use parley::{editor::SplitString, layout::PositionedLayoutItem, GenericFamily, StyleProperty};
6+
use parley::{GenericFamily, StyleProperty, editor::SplitString, layout::PositionedLayoutItem};
77
use std::time::{Duration, Instant};
88
use vello::{
9+
Scene,
910
kurbo::{Affine, Line, Stroke},
1011
peniko::color::palette,
1112
peniko::{Brush, Fill},
12-
Scene,
1313
};
1414
use winit::{
1515
event::{Ime, Modifiers, Touch, WindowEvent},

fontique/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Fontique provides font enumeration and fallback.
1616

1717
## Minimum supported Rust Version (MSRV)
1818

19-
This version of Fontique has been verified to compile with **Rust 1.82** and later.
19+
This version of Fontique has been verified to compile with **Rust 1.85** and later.
2020

2121
Future versions of Fontique might increase the Rust version requirement.
2222
It will not be treated as a breaking change and as such can even happen with small patch releases.

fontique/src/backend/android.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use icu_locid::LanguageIdentifier;
88
use roxmltree::{Document, Node};
99

1010
use super::{
11-
scan, FallbackKey, FamilyId, FamilyInfo, FamilyNameMap, GenericFamily, GenericFamilyMap, Script,
11+
FallbackKey, FamilyId, FamilyInfo, FamilyNameMap, GenericFamily, GenericFamilyMap, Script, scan,
1212
};
1313

1414
// TODO: Use actual generic families here, where available, when fonts.xml is properly parsed.

fontique/src/backend/coretext.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
use super::{
5-
scan, FallbackKey, FamilyId, FamilyInfo, FamilyNameMap, GenericFamily, GenericFamilyMap,
5+
FallbackKey, FamilyId, FamilyInfo, FamilyNameMap, GenericFamily, GenericFamilyMap, scan,
66
};
77
use alloc::sync::Arc;
88
use core::ptr::{null, null_mut};

fontique/src/backend/dwrite.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33

44
use hashbrown::HashMap;
55
use std::{
6-
ffi::{c_void, OsString},
6+
ffi::{OsString, c_void},
77
os::windows::ffi::OsStringExt,
88
path::PathBuf,
99
sync::Arc,
1010
};
1111
use windows::{
12-
core::{implement, Interface, PCWSTR},
1312
Win32::Graphics::DirectWrite::{
14-
DWriteCreateFactory, IDWriteFactory, IDWriteFactory2, IDWriteFont, IDWriteFontCollection,
15-
IDWriteFontFace, IDWriteFontFallback, IDWriteFontFamily, IDWriteFontFile,
16-
IDWriteLocalFontFileLoader, IDWriteNumberSubstitution, IDWriteTextAnalysisSource,
17-
IDWriteTextAnalysisSource_Impl, DWRITE_FACTORY_TYPE_SHARED, DWRITE_FONT_STRETCH_NORMAL,
18-
DWRITE_FONT_STYLE_NORMAL, DWRITE_FONT_WEIGHT_REGULAR, DWRITE_READING_DIRECTION,
19-
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT,
13+
DWRITE_FACTORY_TYPE_SHARED, DWRITE_FONT_STRETCH_NORMAL, DWRITE_FONT_STYLE_NORMAL,
14+
DWRITE_FONT_WEIGHT_REGULAR, DWRITE_READING_DIRECTION,
15+
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT, DWriteCreateFactory, IDWriteFactory,
16+
IDWriteFactory2, IDWriteFont, IDWriteFontCollection, IDWriteFontFace, IDWriteFontFallback,
17+
IDWriteFontFamily, IDWriteFontFile, IDWriteLocalFontFileLoader, IDWriteNumberSubstitution,
18+
IDWriteTextAnalysisSource, IDWriteTextAnalysisSource_Impl,
2019
},
20+
core::{Interface, PCWSTR, implement},
2121
};
2222

2323
use super::{

fontique/src/backend/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ mod system;
2121

2222
#[allow(unused_imports)]
2323
use super::{
24+
FallbackKey, FamilyId, FamilyInfo, FontInfo, GenericFamily, Script, SourceInfo,
2425
family_name::{FamilyName, FamilyNameMap},
2526
generic::GenericFamilyMap,
26-
scan, FallbackKey, FamilyId, FamilyInfo, FontInfo, GenericFamily, Script, SourceInfo,
27+
scan,
2728
};
2829

2930
#[cfg(feature = "std")]

fontique/src/collection/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ pub use query::{Query, QueryFamily, QueryFont, QueryStatus};
1010
use super::SourceCache;
1111

1212
use super::{
13+
Blob, GenericFamily, Script,
1314
backend::SystemFonts,
1415
fallback::{FallbackKey, FallbackMap},
1516
family::{FamilyId, FamilyInfo},
1617
family_name::{FamilyName, FamilyNameMap},
1718
font::FontInfo,
1819
generic::GenericFamilyMap,
1920
source::{SourceId, SourceInfo, SourceKind},
20-
Blob, GenericFamily, Script,
2121
};
2222
use alloc::{string::String, sync::Arc, vec::Vec};
2323
use core::sync::atomic::AtomicU64;
2424
use hashbrown::HashMap;
2525
use read_fonts::types::NameId;
2626
#[cfg(feature = "std")]
27-
use std::sync::{atomic::Ordering, Mutex};
27+
use std::sync::{Mutex, atomic::Ordering};
2828

2929
type FamilyMap = HashMap<FamilyId, Option<FamilyInfo>>;
3030

@@ -85,7 +85,7 @@ impl Collection {
8585
///
8686
/// If `fontique` was compiled with the `"system"` feature, then it will
8787
/// include system fonts after the registered fonts.
88-
pub fn family_names(&mut self) -> impl Iterator<Item = &str> + '_ + Clone {
88+
pub fn family_names(&mut self) -> impl Iterator<Item = &str> + Clone {
8989
self.inner.family_names()
9090
}
9191

@@ -114,7 +114,7 @@ impl Collection {
114114
pub fn generic_families(
115115
&mut self,
116116
family: GenericFamily,
117-
) -> impl Iterator<Item = FamilyId> + '_ + Clone {
117+
) -> impl Iterator<Item = FamilyId> + Clone {
118118
self.inner.generic_families(family)
119119
}
120120

@@ -142,7 +142,7 @@ impl Collection {
142142
pub fn fallback_families(
143143
&mut self,
144144
key: impl Into<FallbackKey>,
145-
) -> impl Iterator<Item = FamilyId> + '_ + Clone {
145+
) -> impl Iterator<Item = FamilyId> + Clone {
146146
self.inner.fallback_families(key)
147147
}
148148

@@ -214,7 +214,7 @@ impl Inner {
214214
/// Returns an iterator over all available family names in the collection.
215215
///
216216
/// This includes both system and registered fonts.
217-
pub fn family_names(&mut self) -> impl Iterator<Item = &str> + '_ + Clone {
217+
pub fn family_names(&mut self) -> impl Iterator<Item = &str> + Clone {
218218
self.sync_shared();
219219
FamilyNames {
220220
ours: self.data.family_names.iter(),
@@ -286,7 +286,7 @@ impl Inner {
286286
pub fn generic_families(
287287
&mut self,
288288
family: GenericFamily,
289-
) -> impl Iterator<Item = FamilyId> + '_ + Clone {
289+
) -> impl Iterator<Item = FamilyId> + Clone {
290290
self.sync_shared();
291291
GenericFamilies {
292292
ours: self.data.generic_families.get(family).iter().copied(),
@@ -349,7 +349,7 @@ impl Inner {
349349
pub fn fallback_families(
350350
&mut self,
351351
key: impl Into<FallbackKey>,
352-
) -> impl Iterator<Item = FamilyId> + '_ + Clone {
352+
) -> impl Iterator<Item = FamilyId> + Clone {
353353
let selector = key.into();
354354
let script = selector.script();
355355
let lang_key = selector.locale();

fontique/src/font.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
66
use super::attributes::{FontStyle, FontWeight, FontWidth};
77
use super::source::{SourceInfo, SourceKind};
8-
use super::{source_cache::SourceCache, Blob};
9-
use read_fonts::{types::Tag, FontRef, TableProvider as _};
8+
use super::{Blob, source_cache::SourceCache};
9+
use read_fonts::{FontRef, TableProvider as _, types::Tag};
1010
use smallvec::SmallVec;
1111

1212
type AxisVec = SmallVec<[AxisInfo; 1]>;
@@ -337,12 +337,12 @@ impl Synthesis {
337337

338338
fn read_attributes(font: &FontRef<'_>) -> (FontWidth, FontStyle, FontWeight) {
339339
use read_fonts::{
340+
TableProvider,
340341
tables::{
341342
head::{Head, MacStyle},
342343
os2::{Os2, SelectionFlags},
343344
post::Post,
344345
},
345-
TableProvider,
346346
};
347347

348348
fn width_from_width_class(width_class: u16) -> FontWidth {

fontique/src/generic.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! Generic font families.
55
66
use super::FamilyId;
7-
use bytemuck::{checked::CheckedBitPattern, Contiguous, NoUninit, Zeroable};
7+
use bytemuck::{Contiguous, NoUninit, Zeroable, checked::CheckedBitPattern};
88
use core::fmt;
99
use smallvec::SmallVec;
1010

@@ -178,7 +178,7 @@ impl GenericFamilyMap {
178178
#[cfg(test)]
179179
mod tests {
180180
use crate::GenericFamily;
181-
use bytemuck::{checked::try_from_bytes, Contiguous, Zeroable};
181+
use bytemuck::{Contiguous, Zeroable, checked::try_from_bytes};
182182
use core::ptr;
183183

184184
#[test]
@@ -214,7 +214,7 @@ mod tests {
214214
let mut value = 0;
215215
while value <= GenericFamily::MAX_VALUE {
216216
// Safety: In a const context, therefore if this makes an invalid GenericFamily, that will be detected.
217-
// When updating the MSRV to 1.82 or later, this can use `&raw const value` instead of the addr_of!
217+
// TODO: use `&raw const value` instead of the addr_of!
218218
let it: GenericFamily = unsafe { ptr::read((core::ptr::addr_of!(value)).cast()) };
219219
// Evaluate the enum value to ensure it actually has a valid tag
220220
if it as u8 != value {
@@ -239,7 +239,7 @@ mod doctests {
239239
/// let value = GenericFamily::MAX_VALUE + 1;
240240
/// // Safety: In a const context, therefore if this makes an invalid GenericFamily, that will be detected.
241241
/// // (Indeed, we rely upon that)
242-
/// // When updating the MSRV to 1.82 or later, this can use `&raw const value` instead of the addr_of!
242+
/// // TODO: use `&raw const value` instead of the addr_of!
243243
/// let it: GenericFamily = unsafe { core::ptr::read((core::ptr::addr_of!(value)).cast()) };
244244
/// // Evaluate the enum value to ensure it actually has an invalid tag
245245
/// if it as u8 != value {

fontique/src/scan.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use super::{
1212
};
1313
use alloc::string::String;
1414
use hashbrown::HashMap;
15-
use read_fonts::{tables::name, types::NameId, FileRef, FontRef, TableProvider as _};
15+
use read_fonts::{FileRef, FontRef, TableProvider as _, tables::name, types::NameId};
1616
use smallvec::SmallVec;
1717
#[cfg(feature = "std")]
1818
use {super::source::SourcePathMap, std::path::Path};

fontique/src/script.rs

+28-7
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,17 @@ pub const SCRIPT_SAMPLES: &[(Script, &str)] = &[
9797
(Script(*b"Adlm"), "𞤀𞤁𞤂𞤃𞤄𞤅𞤆𞤇𞤈𞤉𞤊𞤋𞤌𞤍𞤎𞤏"),
9898
(Script(*b"Aghb"), "𐔰𐔱𐔲𐔳𐔴𐔵𐔶𐔷𐔸𐔹𐔺𐔻𐔼𐔽𐔾𐔿"),
9999
(Script(*b"Ahom"), "𑜀𑜁𑜂𑜃𑜄𑜅𑜆𑜇𑜈𑜉𑜊𑜋𑜌𑜍𑜎𑜏"),
100-
(Script(*b"Arab"), "\u{600}\u{601}\u{602}\u{603}\u{604}؆؇؈؉؊؋؍؎؏\u{610}\u{611}"),
100+
(
101+
Script(*b"Arab"),
102+
"\u{600}\u{601}\u{602}\u{603}\u{604}؆؇؈؉؊؋؍؎؏\u{610}\u{611}",
103+
),
101104
(Script(*b"Armi"), "𐡀𐡁𐡂𐡃𐡄𐡅𐡆𐡇𐡈𐡉𐡊𐡋𐡌𐡍𐡎𐡏"),
102105
(Script(*b"Armn"), "ԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀ"),
103106
(Script(*b"Avst"), "𐬀𐬁𐬂𐬃𐬄𐬅𐬆𐬇𐬈𐬉𐬊𐬋𐬌𐬍𐬎𐬏"),
104-
(Script(*b"Bali"), "\u{1b00}\u{1b01}\u{1b02}\u{1b03}ᬄᬅᬆᬇᬈᬉᬊᬋᬌᬍᬎᬏ"),
107+
(
108+
Script(*b"Bali"),
109+
"\u{1b00}\u{1b01}\u{1b02}\u{1b03}ᬄᬅᬆᬇᬈᬉᬊᬋᬌᬍᬎᬏ",
110+
),
105111
(Script(*b"Bamu"), "ꚠꚡꚢꚣꚤꚥꚦꚧꚨꚩꚪꚫꚬꚭꚮꚯ"),
106112
(Script(*b"Bass"), "𖫐𖫑𖫒𖫓𖫔𖫕𖫖𖫗𖫘𖫙𖫚𖫛𖫜𖫝𖫞𖫟"),
107113
(Script(*b"Batk"), "ᯀᯁᯂᯃᯄᯅᯆᯇᯈᯉᯊᯋᯌᯍᯎᯏ"),
@@ -144,7 +150,10 @@ pub const SCRIPT_SAMPLES: &[(Script, &str)] = &[
144150
(Script(*b"Hani"), "今"),
145151
(Script(*b"Hano"), "ᜠᜡᜢᜣᜤᜥᜦᜧᜨᜩᜪᜫᜬᜭᜮᜯ"),
146152
(Script(*b"Hatr"), "𐣠𐣡𐣢𐣣𐣤𐣥𐣦𐣧𐣨𐣩𐣪𐣫𐣬𐣭𐣮𐣯"),
147-
(Script(*b"Hebr"), "\u{591}\u{592}\u{593}\u{594}\u{595}\u{596}\u{597}\u{598}\u{599}\u{59a}\u{59b}\u{59c}\u{59d}\u{59e}\u{59f}\u{5a0}"),
153+
(
154+
Script(*b"Hebr"),
155+
"\u{591}\u{592}\u{593}\u{594}\u{595}\u{596}\u{597}\u{598}\u{599}\u{59a}\u{59b}\u{59c}\u{59d}\u{59e}\u{59f}\u{5a0}",
156+
),
148157
(Script(*b"Hira"), "ぁあぃいぅうぇえぉおかがきぎくぐ"),
149158
(Script(*b"Hluw"), "𔐀𔐁𔐂𔐃𔐄𔐅𔐆𔐇𔐈𔐉𔐊𔐋𔐌𔐍𔐎𔐏"),
150159
(Script(*b"Hmng"), "𖬀𖬁𖬂𖬃𖬄𖬅𖬆𖬇𖬈𖬉𖬊𖬋𖬌𖬍𖬎𖬏"),
@@ -155,7 +164,10 @@ pub const SCRIPT_SAMPLES: &[(Script, &str)] = &[
155164
(Script(*b"Kali"), "꤀꤁꤂꤃꤄꤅꤆꤇꤈꤉ꤊꤋꤌꤍꤎꤏ"),
156165
(Script(*b"Kana"), "ァアィイゥウェエォオカガキギクグ"),
157166
(Script(*b"Kawi"), "\u{11f00}\u{11f01}𑼂𑼃𑼄𑼅𑼆𑼇𑼈𑼉𑼊𑼋𑼌𑼍𑼎𑼏"),
158-
(Script(*b"Khar"), "𐨀\u{10a01}\u{10a02}\u{10a03}\u{10a05}\u{10a06}\u{10a0c}\u{10a0d}\u{10a0e}\u{10a0f}𐨐𐨑𐨒𐨓𐨕𐨖"),
167+
(
168+
Script(*b"Khar"),
169+
"𐨀\u{10a01}\u{10a02}\u{10a03}\u{10a05}\u{10a06}\u{10a0c}\u{10a0d}\u{10a0e}\u{10a0f}𐨐𐨑𐨒𐨓𐨕𐨖",
170+
),
159171
(Script(*b"Khmr"), "កខគឃងចឆជឈញដឋឌឍណត"),
160172
(Script(*b"Khoj"), "𑈀𑈁𑈂𑈃𑈄𑈅𑈆𑈇𑈈𑈉𑈊𑈋𑈌𑈍𑈎𑈏"),
161173
(Script(*b"Kits"), "\u{16fe4}𘬀𘬁𘬂𘬃𘬄𘬅𘬆𘬇𘬈𘬉𘬊𘬋𘬌𘬍𘬎"),
@@ -182,7 +194,10 @@ pub const SCRIPT_SAMPLES: &[(Script, &str)] = &[
182194
(Script(*b"Mero"), "𐦀𐦁𐦂𐦃𐦄𐦅𐦆𐦇𐦈𐦉𐦊𐦋𐦌𐦍𐦎𐦏"),
183195
(Script(*b"Mlym"), "\u{d00}\u{d01}ംഃഄഅആഇഈഉഊഋഌഎഏഐ"),
184196
(Script(*b"Modi"), "𑘀𑘁𑘂𑘃𑘄𑘅𑘆𑘇𑘈𑘉𑘊𑘋𑘌𑘍𑘎𑘏"),
185-
(Script(*b"Mong"), "᠀᠁᠄᠆᠇᠈᠉᠊\u{180b}\u{180c}\u{180d}\u{180e}\u{180f}᠐᠑᠒"),
197+
(
198+
Script(*b"Mong"),
199+
"᠀᠁᠄᠆᠇᠈᠉᠊\u{180b}\u{180c}\u{180d}\u{180e}\u{180f}᠐᠑᠒",
200+
),
186201
(Script(*b"Mroo"), "𖩀𖩁𖩂𖩃𖩄𖩅𖩆𖩇𖩈𖩉𖩊𖩋𖩌𖩍𖩎𖩏"),
187202
(Script(*b"Mtei"), "ꫠꫡꫢꫣꫤꫥꫦꫧꫨꫩꫪꫫ\u{aaec}\u{aaed}ꫮꫯ"),
188203
(Script(*b"Mult"), "𑊀𑊁𑊂𑊃𑊄𑊅𑊆𑊈𑊊𑊋𑊌𑊍𑊏𑊐𑊑𑊒"),
@@ -225,7 +240,10 @@ pub const SCRIPT_SAMPLES: &[(Script, &str)] = &[
225240
(Script(*b"Sogd"), "𐼰𐼱𐼲𐼳𐼴𐼵𐼶𐼷𐼸𐼹𐼺𐼻𐼼𐼽𐼾𐼿"),
226241
(Script(*b"Sogo"), "𐼀𐼁𐼂𐼃𐼄𐼅𐼆𐼇𐼈𐼉𐼊𐼋𐼌𐼍𐼎𐼏"),
227242
(Script(*b"Sora"), "𑃐𑃑𑃒𑃓𑃔𑃕𑃖𑃗𑃘𑃙𑃚𑃛𑃜𑃝𑃞𑃟"),
228-
(Script(*b"Soyo"), "𑩐\u{11a51}\u{11a52}\u{11a53}\u{11a54}\u{11a55}\u{11a56}𑩗𑩘\u{11a59}\u{11a5a}\u{11a5b}𑩜𑩝𑩞𑩟"),
243+
(
244+
Script(*b"Soyo"),
245+
"𑩐\u{11a51}\u{11a52}\u{11a53}\u{11a54}\u{11a55}\u{11a56}𑩗𑩘\u{11a59}\u{11a5a}\u{11a5b}𑩜𑩝𑩞𑩟",
246+
),
229247
(Script(*b"Sund"), "\u{1b80}\u{1b81}ᮂᮃᮄᮅᮆᮇᮈᮉᮊᮋᮌᮍᮎᮏ"),
230248
(Script(*b"Sylo"), "ꠀꠁ\u{a802}ꠃꠄꠅ\u{a806}ꠇꠈꠉꠊ\u{a80b}ꠌꠍꠎꠏ"),
231249
(Script(*b"Syrc"), "܀܁܂܃܄܅܆܇܈܉܊܋܌܍\u{70f}ܐ"),
@@ -254,5 +272,8 @@ pub const SCRIPT_SAMPLES: &[(Script, &str)] = &[
254272
(Script(*b"Xsux"), "𒀀𒀁𒀂𒀃𒀄𒀅𒀆𒀇𒀈𒀉𒀊𒀋𒀌𒀍𒀎𒀏"),
255273
(Script(*b"Yezi"), "𐺀𐺁𐺂𐺃𐺄𐺅𐺆𐺇𐺈𐺉𐺊𐺋𐺌𐺍𐺎𐺏"),
256274
(Script(*b"Yiii"), "ꀀꀁꀂꀃꀄꀅꀆꀇꀈꀉꀊꀋꀌꀍꀎꀏ"),
257-
(Script(*b"Zanb"), "𑨀\u{11a01}\u{11a02}\u{11a03}\u{11a04}\u{11a05}\u{11a06}\u{11a07}\u{11a08}\u{11a09}\u{11a0a}𑨋𑨌𑨍𑨎𑨏"),
275+
(
276+
Script(*b"Zanb"),
277+
"𑨀\u{11a01}\u{11a02}\u{11a03}\u{11a04}\u{11a05}\u{11a06}\u{11a07}\u{11a08}\u{11a09}\u{11a0a}𑨋𑨌𑨍𑨎𑨏",
278+
),
258279
];

parley/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ It is backed by [Swash](https://github.com/dfrg/swash).
1717

1818
## Minimum supported Rust Version (MSRV)
1919

20-
This version of Parley has been verified to compile with **Rust 1.82** and later.
20+
This version of Parley has been verified to compile with **Rust 1.85** and later.
2121

2222
Future versions of Parley might increase the Rust version requirement.
2323
It will not be treated as a breaking change and as such can even happen with small patch releases.

0 commit comments

Comments
 (0)