From 90e139ecdaa2a34b6a125d947324a5d28b7dd213 Mon Sep 17 00:00:00 2001 From: jdonszelmann <jonabent@gmail.com> Date: Wed, 24 Apr 2024 17:11:06 +0200 Subject: [PATCH] minimize futures dep and re-add is_nullable --- scopegraphs-regular-expressions/src/regex.rs | 2 +- scopegraphs/Cargo.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scopegraphs-regular-expressions/src/regex.rs b/scopegraphs-regular-expressions/src/regex.rs index 4393ec9..3c7a4e3 100644 --- a/scopegraphs-regular-expressions/src/regex.rs +++ b/scopegraphs-regular-expressions/src/regex.rs @@ -178,7 +178,7 @@ impl Regex { /// # use scopegraphs_regular_expressions::Regex; /// assert!(Regex::EmptyString.is_nullable()) /// ``` - pub(crate) fn is_nullable(&self) -> bool { + pub fn is_nullable(&self) -> bool { match self { Regex::EmptySet => false, Regex::EmptyString => true, diff --git a/scopegraphs/Cargo.toml b/scopegraphs/Cargo.toml index cc06019..9adbc6f 100644 --- a/scopegraphs/Cargo.toml +++ b/scopegraphs/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.75" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -futures = "0.3.30" +futures = { version = "0.3.30", default-features = false, features = ["std"] } bumpalo = "3.14.0" dot = { version = "0.1.4", optional = true } scopegraphs-prust-lib = { version = "0.1.0" } @@ -26,6 +26,7 @@ scopegraphs-regular-expressions = { path = "../scopegraphs-regular-expressions", [dev-dependencies] env_logger = "0.10.1" ctor = "0.2.5" +futures = { version = "0.3.30", default-features = false, features = ["std", "executor"] } [features] default = ["dot", "dynamic-regex"]