This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 15e040fcf AVRO-3679: [Rust] Enable 'perf' feature of regex dependency 
(#1992)
15e040fcf is described below

commit 15e040fcf01614dbc36bb19d7217f35934894123
Author: Martin Grigorov <[email protected]>
AuthorDate: Wed Nov 30 12:08:52 2022 +0200

    AVRO-3679: [Rust] Enable 'perf' feature of regex dependency (#1992)
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
 lang/rust/Cargo.lock      | 11 +++++++++++
 lang/rust/avro/Cargo.toml |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/lang/rust/Cargo.lock b/lang/rust/Cargo.lock
index 53f1fa57e..6d9cce488 100644
--- a/lang/rust/Cargo.lock
+++ b/lang/rust/Cargo.lock
@@ -23,6 +23,15 @@ version = "1.2.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
 checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
 
+[[package]]
+name = "aho-corasick"
+version = "0.7.20"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
+dependencies = [
+ "memchr",
+]
+
 [[package]]
 name = "anes"
 version = "0.1.6"
@@ -794,6 +803,8 @@ version = "1.7.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
 checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a"
 dependencies = [
+ "aho-corasick",
+ "memchr",
  "regex-syntax",
 ]
 
diff --git a/lang/rust/avro/Cargo.toml b/lang/rust/avro/Cargo.toml
index 1d1256a98..66c78a9dc 100644
--- a/lang/rust/avro/Cargo.toml
+++ b/lang/rust/avro/Cargo.toml
@@ -62,7 +62,7 @@ lazy_static = { default-features = false, version = "1.4.0" }
 libflate = { default-features = false, version = "1.2.0" }
 log = { default-features = false, version = "0.4.17" }
 num-bigint = { default-features = false, version = "0.4.3" }
-regex = { default-features = false, version = "1.7.0", features = ["std"] }
+regex = { default-features = false, version = "1.7.0", features = ["std", 
"perf"] }
 serde = { default-features = false, version = "1.0.148", features = ["derive"] 
}
 serde_json = { default-features = false, version = "1.0.89", features = 
["std"] }
 snap = { default-features = false, version = "1.1.0", optional = true }

Reply via email to