Skip to content

Commit 4307d3f

Browse files
1 parent eb4b915 commit 4307d3f

File tree

3 files changed

+45
-8
lines changed

3 files changed

+45
-8
lines changed

.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
7777
- name: cargo fmt
7878
run: cargo fmt --all --check
7979

80+
- name: Install Taplo
81+
uses: uncenter/setup-taplo@09968a8ae38d66ddd3d23802c44bf6122d7aa991 # v1
82+
with:
83+
version: "0.9.3"
84+
85+
- name: Run taplo fmt
86+
run: taplo fmt --check --diff
87+
8088
- name: install ripgrep
8189
run: |
8290
sudo apt update

.taplo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# See https://taplo.tamasfe.dev/configuration/file.html
2+
# and https://taplo.tamasfe.dev/configuration/formatter-options.html
3+
4+
[formatting]
5+
# Aligning comments with the largest line creates
6+
# diff noise when neighboring lines are changed.
7+
align_comments = false
8+
9+
# Matches how rustfmt formats Rust code
10+
column_width = 100
11+
indent_string = " "

fontique/Cargo.toml

+26-8
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ icu_properties = ["dep:icu_properties"]
2323
unicode_script = ["dep:unicode-script"]
2424
# Enables support for system font backends
2525
system = [
26-
"std",
27-
"dep:windows", "dep:windows-core",
28-
"dep:objc2-core-foundation", "dep:objc2-core-text", "dep:objc2-foundation",
29-
"dep:fontconfig-cache-parser", "dep:roxmltree",
26+
"std",
27+
"dep:windows",
28+
"dep:windows-core",
29+
"dep:objc2-core-foundation",
30+
"dep:objc2-core-text",
31+
"dep:objc2-foundation",
32+
"dep:fontconfig-cache-parser",
33+
"dep:roxmltree",
3034
]
3135

3236
[dependencies]
@@ -42,13 +46,27 @@ icu_locid = "1.5.0"
4246
hashbrown = { workspace = true }
4347

4448
[target.'cfg(target_os = "windows")'.dependencies]
45-
windows = { version = "0.58.0", features = ["implement", "Win32_Graphics_DirectWrite"], optional = true }
49+
windows = { version = "0.58.0", features = [
50+
"implement",
51+
"Win32_Graphics_DirectWrite",
52+
], optional = true }
4653
windows-core = { version = "0.58", optional = true }
4754

4855
[target.'cfg(target_vendor = "apple")'.dependencies]
49-
objc2-foundation = { version = "0.3.0", optional = true, default-features = false, features = ["alloc", "NSArray", "NSEnumerator", "NSPathUtilities", "NSString"] }
50-
objc2-core-foundation = { version = "0.3.0", optional = true, default-features = false, features = ["CFBase"] }
51-
objc2-core-text = { version = "0.3.0", optional = true, default-features = false, features = ["CTFont", "CTFontDescriptor"] }
56+
objc2-foundation = { version = "0.3.0", optional = true, default-features = false, features = [
57+
"alloc",
58+
"NSArray",
59+
"NSEnumerator",
60+
"NSPathUtilities",
61+
"NSString",
62+
] }
63+
objc2-core-foundation = { version = "0.3.0", optional = true, default-features = false, features = [
64+
"CFBase",
65+
] }
66+
objc2-core-text = { version = "0.3.0", optional = true, default-features = false, features = [
67+
"CTFont",
68+
"CTFontDescriptor",
69+
] }
5270

5371
[target.'cfg(target_os = "linux")'.dependencies]
5472
fontconfig-cache-parser = { version = "0.2.0", optional = true }

0 commit comments

Comments
 (0)