Skip to content

Commit 31d3cec

Browse files
julianbrahajackpot51
authored andcommitted
Only use libm dependency for no_std feature
1 parent c7100dc commit 31d3cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bitflags = "2.4.1"
1414
cosmic_undo_2 = { version = "0.2.0", optional = true }
1515
fontdb = { version = "0.16.0", default-features = false }
1616
hashbrown = { version = "0.14.1", optional = true, default-features = false }
17-
libm = "0.2.8"
17+
libm = { version = "0.2.8", optional = true }
1818
log = "0.4.20"
1919
modit = { version = "0.1.4", optional = true }
2020
rangemap = "1.4.0"
@@ -38,7 +38,7 @@ features = ["hardcoded-data"]
3838
[features]
3939
default = ["std", "swash", "fontconfig"]
4040
fontconfig = ["fontdb/fontconfig", "std"]
41-
no_std = ["rustybuzz/libm", "hashbrown"]
41+
no_std = ["rustybuzz/libm", "hashbrown", "dep:libm"]
4242
shape-run-cache = []
4343
std = [
4444
"fontdb/memmap",

0 commit comments

Comments
 (0)