From 70cab013340b0696191553fdcb79f531b3729b70 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Tue, 17 May 2022 08:03:05 +0200 Subject: [PATCH] Use weak dependencies --- gridgeneration/Cargo.toml | 2 +- maxwell/Cargo.toml | 2 +- sbp/Cargo.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gridgeneration/Cargo.toml b/gridgeneration/Cargo.toml index 7937ab3..f5a095c 100644 --- a/gridgeneration/Cargo.toml +++ b/gridgeneration/Cargo.toml @@ -11,4 +11,4 @@ sbp = { path = "../sbp" } json5 = { version = "0.2.8", optional = true } [features] -serde = ["sbp/serde1", "json5"] +serde = ["sbp/serde1", "dep:json5"] diff --git a/maxwell/Cargo.toml b/maxwell/Cargo.toml index 533cb55..6bc0190 100644 --- a/maxwell/Cargo.toml +++ b/maxwell/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Magnus Ulimoen "] edition = "2018" [features] -sparse = ["sbp/sparse", "sprs"] +sparse = ["sbp/sparse", "dep:sprs"] [dependencies] ndarray = "0.15.0" diff --git a/sbp/Cargo.toml b/sbp/Cargo.toml index cac83c7..2429918 100644 --- a/sbp/Cargo.toml +++ b/sbp/Cargo.toml @@ -17,8 +17,8 @@ core_simd = { git = "https://github.com/rust-lang/portable-simd" } [features] # Use f32 as precision, default is f64 f32 = ["float/f32"] -sparse = ["sprs"] -serde1 = ["serde", "ndarray/serde"] +sparse = ["dep:sprs"] +serde1 = ["dep:serde", "ndarray/serde"] [dev-dependencies] iai = "0.1.1"