Skip to content

Commit

Permalink
AVRO-3838: [Rust] Replace "regex" with "regex-lite" (#2460)
Browse files Browse the repository at this point in the history
Reduces the time for `cargo clean && cargo build --release" from 30secs
to 22secs on my dev machine

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Aug 22, 2023
1 parent 699cfee commit 0f364e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion lang/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lang/rust/avro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ lazy_static = { default-features = false, version = "1.4.0" }
libflate = { default-features = false, version = "2.0.0", features = ["std"] }
log = { default-features = false, version = "0.4.20" }
num-bigint = { default-features = false, version = "0.4.3" }
regex = { default-features = false, version = "1.9.3", features = ["std", "perf"] }
regex-lite = { default-features = false, version = "0.1.0", features = ["std", "string"] }
serde = { default-features = false, version = "1.0.183", features = ["derive"] }
serde_json = { default-features = false, version = "1.0.105", features = ["std"] }
snap = { default-features = false, version = "1.1.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion lang/rust/avro/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use crate::{error::Error, types, util::MapHelper, AvroResult};
use digest::Digest;
use lazy_static::lazy_static;
use regex::Regex;
use regex_lite::Regex;
use serde::{
ser::{SerializeMap, SerializeSeq},
Deserialize, Serialize, Serializer,
Expand Down

0 comments on commit 0f364e3

Please sign in to comment.