You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/11/30 09:15:16 UTC

[avro] branch avro-3679-rust-regex-perf created (now 5084d7542)

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

mgrigorov pushed a change to branch avro-3679-rust-regex-perf
in repository https://gitbox.apache.org/repos/asf/avro.git


      at 5084d7542 AVRO-3679: [Rust] Enable 'perf' feature of regex dependency

This branch includes the following new commits:

     new 5084d7542 AVRO-3679: [Rust] Enable 'perf' feature of regex dependency

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[avro] 01/01: AVRO-3679: [Rust] Enable 'perf' feature of regex dependency

Posted by mg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch avro-3679-rust-regex-perf
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 5084d75421a11b152853c4dee6fcc691e335d9a5
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Wed Nov 30 11:14:27 2022 +0200

    AVRO-3679: [Rust] Enable 'perf' feature of regex dependency
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
 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 }