From 40dd6e33b25924450722840d806971e4ffe9e4d4 Mon Sep 17 00:00:00 2001 From: Julian Braha Date: Mon, 12 Feb 2024 18:56:18 +0000 Subject: [PATCH] Only use libm dependency for no_std feature --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5d4dee181c..90b670cdb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ bitflags = "2.4.1" cosmic_undo_2 = { version = "0.2.0", optional = true } fontdb = { version = "0.16.0", default-features = false } hashbrown = { version = "0.14.1", optional = true, default-features = false } -libm = "0.2.8" +libm = { version = "0.2.8", optional = true } log = "0.4.20" modit = { version = "0.1.4", optional = true } rangemap = "1.4.0" @@ -37,7 +37,7 @@ features = ["hardcoded-data"] [features] default = ["std", "swash", "fontconfig"] fontconfig = ["fontdb/fontconfig", "std"] -no_std = ["rustybuzz/libm", "hashbrown"] +no_std = ["rustybuzz/libm", "hashbrown", "dep:libm"] shape-run-cache = [] std = [ "fontdb/memmap",