From 63832a24759a9502d86bbc8700a5960f95759598 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 1 Jun 2024 21:57:04 +0200 Subject: Make strum an optional dependency. To enable it, enable the "strum" feature flag. --- Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index a50c73d..247a523 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,13 +16,16 @@ readme = "README.md" default = ["precomputed_common_max_powers"] precomputed_max_powers = ["precomputed_common_max_powers"] precomputed_common_max_powers = [] +strum = ["dep:strum", "dep:strum_macros"] [dependencies] unicode-segmentation = "1.10.0" -strum = "0.26.0" -strum_macros = "0.26.0" +strum = { version = "0.26.0", optional = true } +strum_macros = { version = "0.26.0", optional = true } [dev-dependencies] +strum = "0.26.0" +strum_macros = "0.26.0" digest = "0.10.5" md4 = "0.10.2" md-5 = "0.10.5" -- cgit v1.2.3