Fix build error for wasm version

This commit is contained in:
PaddiM8 2022-11-05 23:57:26 +01:00
parent 6f757f88ae
commit 2fb38cfa55
2 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -180,7 +180,7 @@ dependencies = [
[[package]]
name = "kalk"
version = "3.0.0"
version = "3.0.1"
dependencies = [
"gmp-mpfr-sys",
"lazy_static",
@ -193,7 +193,7 @@ dependencies = [
[[package]]
name = "kalker"
version = "2.0.0"
version = "2.0.1"
dependencies = [
"ansi_term",
"atty",

View File

@ -17,7 +17,7 @@ crate-type = ["cdylib", "rlib"]
rug = { version = "1.17.0", features = ["float"], optional = true }
lazy_static = "1.4.0"
wasm-bindgen = "0.2.69"
gmp-mpfr-sys = "1.4.9"
gmp-mpfr-sys = { version = "1.4.9", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3.19"
@ -25,7 +25,7 @@ test-case = "1.0.0"
regex = "1"
[features]
default = ["rug"]
default = ["rug", "gmp-mpfr-sys"]
# Breaks when optimizing for some reason.
[package.metadata.wasm-pack.profile.release]