diff -Nru rust-grep-pcre2-0.1.2/Cargo.toml rust-grep-pcre2-0.1.3/Cargo.toml --- rust-grep-pcre2-0.1.2/Cargo.toml 1970-01-01 00:00:00.000000000 +0000 +++ rust-grep-pcre2-0.1.3/Cargo.toml 1970-01-01 00:00:00.000000000 +0000 @@ -12,7 +12,7 @@ [package] name = "grep-pcre2" -version = "0.1.2" +version = "0.1.3" authors = ["Andrew Gallant "] description = "Use PCRE2 with the 'grep' crate.\n" homepage = "https://github.com/BurntSushi/ripgrep" @@ -22,7 +22,7 @@ license = "Unlicense/MIT" repository = "https://github.com/BurntSushi/ripgrep" [dependencies.grep-matcher] -version = "0.1.1" +version = "0.1.2" [dependencies.pcre2] -version = "0.1.1" +version = "0.2.0" diff -Nru rust-grep-pcre2-0.1.2/Cargo.toml.orig rust-grep-pcre2-0.1.3/Cargo.toml.orig --- rust-grep-pcre2-0.1.2/Cargo.toml.orig 2018-09-08 21:06:32.000000000 +0000 +++ rust-grep-pcre2-0.1.3/Cargo.toml.orig 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +1,28 @@ +# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO +# +# When uploading crates to the registry Cargo will automatically +# "normalize" Cargo.toml files for maximal compatibility +# with all versions of Cargo and also rewrite `path` dependencies +# to registry (e.g., crates.io) dependencies +# +# If you believe there's an error in this file please file an +# issue against the rust-lang/cargo repository. If you're +# editing this file be aware that the upstream Cargo.toml +# will likely look very different (and much more reasonable) + [package] name = "grep-pcre2" -version = "0.1.2" #:version +version = "0.1.3" authors = ["Andrew Gallant "] -description = """ -Use PCRE2 with the 'grep' crate. -""" -documentation = "https://docs.rs/grep-pcre2" +description = "Use PCRE2 with the 'grep' crate.\n" homepage = "https://github.com/BurntSushi/ripgrep" -repository = "https://github.com/BurntSushi/ripgrep" +documentation = "https://docs.rs/grep-pcre2" readme = "README.md" keywords = ["regex", "grep", "pcre", "backreference", "look"] license = "Unlicense/MIT" +repository = "https://github.com/BurntSushi/ripgrep" +[dependencies.grep-matcher] +version = "0.1.2" -[dependencies] -grep-matcher = { version = "0.1.1", path = "../grep-matcher" } -pcre2 = "0.1.1" +[dependencies.pcre2] +version = "0.2.0" diff -Nru rust-grep-pcre2-0.1.2/.cargo_vcs_info.json rust-grep-pcre2-0.1.3/.cargo_vcs_info.json --- rust-grep-pcre2-0.1.2/.cargo_vcs_info.json 1970-01-01 00:00:00.000000000 +0000 +++ rust-grep-pcre2-0.1.3/.cargo_vcs_info.json 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +1,5 @@ { "git": { - "sha1": "eb18da04506b959c0251099eae83e16d22ce8bcb" + "sha1": "79018eb693c882b8f97535e2fb41b6ff0e90e948" } } diff -Nru rust-grep-pcre2-0.1.2/debian/cargo-checksum.json rust-grep-pcre2-0.1.3/debian/cargo-checksum.json --- rust-grep-pcre2-0.1.2/debian/cargo-checksum.json 2018-12-26 22:43:34.000000000 +0000 +++ rust-grep-pcre2-0.1.3/debian/cargo-checksum.json 2019-08-15 08:31:33.000000000 +0000 @@ -1 +1 @@ -{"package":"7e121d00f6ba305e5d637577b3139748b8e6922506cf9878193f714b33bb495f","files":{}} +{"package":"140b36973a0c9467b0f3c2fd820bb2c9f29a9934515aa4de550f08abf41b4cf2","files":{}} diff -Nru rust-grep-pcre2-0.1.2/debian/changelog rust-grep-pcre2-0.1.3/debian/changelog --- rust-grep-pcre2-0.1.2/debian/changelog 2018-12-26 22:43:34.000000000 +0000 +++ rust-grep-pcre2-0.1.3/debian/changelog 2019-08-15 08:31:33.000000000 +0000 @@ -1,3 +1,10 @@ +rust-grep-pcre2 (0.1.3-1) unstable; urgency=medium + + * Team upload. + * Package grep-pcre2 0.1.3 from crates.io using debcargo 2.2.10 + + -- Sylvestre Ledru Thu, 15 Aug 2019 10:31:33 +0200 + rust-grep-pcre2 (0.1.2-1) unstable; urgency=medium * Package grep-pcre2 0.1.2 from crates.io using debcargo 2.2.9 diff -Nru rust-grep-pcre2-0.1.2/debian/control rust-grep-pcre2-0.1.3/debian/control --- rust-grep-pcre2-0.1.2/debian/control 2018-12-26 22:43:34.000000000 +0000 +++ rust-grep-pcre2-0.1.3/debian/control 2019-08-15 08:31:33.000000000 +0000 @@ -2,12 +2,12 @@ Section: rust Priority: optional Build-Depends: debhelper (>= 11), - dh-cargo (>= 10), + dh-cargo (>= 15), cargo:native , rustc:native , libstd-rust-dev , - librust-grep-matcher-0.1+default-dev (>= 0.1.1-~~) , - librust-pcre2-0.1+default-dev (>= 0.1.1-~~) + librust-grep-matcher-0.1+default-dev (>= 0.1.2-~~) , + librust-pcre2-0.2+default-dev Maintainer: Debian Rust Maintainers Uploaders: Wolfgang Silbermayr @@ -21,16 +21,16 @@ Multi-Arch: same Depends: ${misc:Depends}, - librust-grep-matcher-0.1+default-dev (>= 0.1.1-~~), - librust-pcre2-0.1+default-dev (>= 0.1.1-~~) + librust-grep-matcher-0.1+default-dev (>= 0.1.2-~~), + librust-pcre2-0.2+default-dev Provides: librust-grep-pcre2+default-dev (= ${binary:Version}), librust-grep-pcre2-0-dev (= ${binary:Version}), librust-grep-pcre2-0+default-dev (= ${binary:Version}), librust-grep-pcre2-0.1-dev (= ${binary:Version}), librust-grep-pcre2-0.1+default-dev (= ${binary:Version}), - librust-grep-pcre2-0.1.2-dev (= ${binary:Version}), - librust-grep-pcre2-0.1.2+default-dev (= ${binary:Version}) + librust-grep-pcre2-0.1.3-dev (= ${binary:Version}), + librust-grep-pcre2-0.1.3+default-dev (= ${binary:Version}) Description: Use PCRE2 with the 'grep' crate - Rust source code This package contains the source for the Rust grep-pcre2 crate, packaged by debcargo for use with cargo and dh-cargo. diff -Nru rust-grep-pcre2-0.1.2/debian/copyright.debcargo.hint rust-grep-pcre2-0.1.3/debian/copyright.debcargo.hint --- rust-grep-pcre2-0.1.2/debian/copyright.debcargo.hint 2018-12-26 22:43:34.000000000 +0000 +++ rust-grep-pcre2-0.1.3/debian/copyright.debcargo.hint 2019-08-15 08:31:33.000000000 +0000 @@ -21,8 +21,8 @@ Files: debian/* Copyright: - 2018 Debian Rust Maintainers - 2018 Wolfgang Silbermayr + 2018-2019 Debian Rust Maintainers + 2018-2019 Wolfgang Silbermayr License: Unlicense or MIT License: MIT diff -Nru rust-grep-pcre2-0.1.2/src/lib.rs rust-grep-pcre2-0.1.3/src/lib.rs --- rust-grep-pcre2-0.1.2/src/lib.rs 2018-08-20 11:21:29.000000000 +0000 +++ rust-grep-pcre2-0.1.3/src/lib.rs 2019-04-14 23:38:24.000000000 +0000 @@ -10,6 +10,7 @@ pub use error::{Error, ErrorKind}; pub use matcher::{RegexCaptures, RegexMatcher, RegexMatcherBuilder}; +pub use pcre2::{is_jit_available, version}; mod error; mod matcher; diff -Nru rust-grep-pcre2-0.1.2/src/matcher.rs rust-grep-pcre2-0.1.3/src/matcher.rs --- rust-grep-pcre2-0.1.2/src/matcher.rs 2018-09-08 21:06:20.000000000 +0000 +++ rust-grep-pcre2-0.1.3/src/matcher.rs 2019-04-14 23:38:24.000000000 +0000 @@ -227,6 +227,27 @@ self.builder.jit_if_available(yes); self } + + /// Set the maximum size of PCRE2's JIT stack, in bytes. If the JIT is + /// not enabled, then this has no effect. + /// + /// When `None` is given, no custom JIT stack will be created, and instead, + /// the default JIT stack is used. When the default is used, its maximum + /// size is 32 KB. + /// + /// When this is set, then a new JIT stack will be created with the given + /// maximum size as its limit. + /// + /// Increasing the stack size can be useful for larger regular expressions. + /// + /// By default, this is set to `None`. + pub fn max_jit_stack_size( + &mut self, + bytes: Option, + ) -> &mut RegexMatcherBuilder { + self.builder.max_jit_stack_size(bytes); + self + } } /// An implementation of the `Matcher` trait using PCRE2.