From 83c3dcb1c82bbefff18d1167bfd2aaf7b466fcd5 Mon Sep 17 00:00:00 2001 From: Inga Date: Tue, 14 Nov 2023 11:59:59 +0000 Subject: [PATCH] switched from regex to regex-lite --- hostnames_allocator/Cargo.toml | 6 +----- hostnames_allocator/src/hostnames_allocator.rs | 2 +- hostnames_allocator/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/hostnames_allocator/Cargo.toml b/hostnames_allocator/Cargo.toml index ccf1231..44a9bba 100644 --- a/hostnames_allocator/Cargo.toml +++ b/hostnames_allocator/Cargo.toml @@ -13,11 +13,7 @@ strip = true [dependencies] lazy_static = "1.4.0" - -[dependencies.regex] -version = "1.10.2" -default-features = false -features = ["std", "unicode-perl"] +regex-lite = "0.1.5" [dev-dependencies] itertools = "0.11.0" diff --git a/hostnames_allocator/src/hostnames_allocator.rs b/hostnames_allocator/src/hostnames_allocator.rs index 0248560..3b31b99 100644 --- a/hostnames_allocator/src/hostnames_allocator.rs +++ b/hostnames_allocator/src/hostnames_allocator.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use lazy_static::lazy_static; -use regex::Regex; +use regex_lite::Regex; use crate::ranged_number_allocator::RangedNumberAllocator; diff --git a/hostnames_allocator/src/main.rs b/hostnames_allocator/src/main.rs index 1dd0815..ae54fda 100644 --- a/hostnames_allocator/src/main.rs +++ b/hostnames_allocator/src/main.rs @@ -1,7 +1,7 @@ use std::io::{self, BufRead}; use lazy_static::lazy_static; -use regex::Regex; +use regex_lite::Regex; use hostnames_allocator::hostnames_allocator::HostnamesAllocator;