summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
AgeCommit message (Collapse)Author
2023-07-08cargo: reduce the size of the .crate file published to crates.ioKevin Svetlitski
None of this stuff is needed for the main ripgrep crate. Closes #1940
2023-07-08doc: update rust-version in Cargo.tomlJonathan Schwender
The MSRV got bumped a little bit ago, so this is just catchup. Closes #2539
2023-07-05deps: drop temporary patch and move to bstr 1.6Andrew Gallant
Now that regex 1.9 is out, we can depend on it from crates.io.
2023-07-05regex: push more pattern handling to matcher constructionAndrew Gallant
Previously, ripgrep core was responsible for escaping regex patterns and implementing the --line-regexp flag. This commit moves that responsibility down into the matchers such that ripgrep just needs to hand the patterns it gets off to the matcher builder. The builder will then take care of escaping and all that. This was done to make pattern construction completely owned by the matcher builders. With the arrival regex-automata, this means we can move to the HIR very quickly and then never move back to the concrete syntax. We can then build our regex directly from the HIR. This overall can save quite a bit of time, especially when searching for large dictionaries. We still aren't quite as fast as GNU grep when searching something on the scale of /usr/share/dict/words, but we are basically within spitting distance. Prior to this, we were about an order of magnitude slower. This architecture in particular lets us write a pretty simple fast path that avoids AST parsing and HIR translation entirely: the case where one is just searching for a literal. In that case, we can hand construct the HIR directly.
2023-07-05deps: initial migration steps to regex 1.9Andrew Gallant
This leaves the grep-regex crate in tatters. Pretty much the entire thing needs to be re-worked. The upshot is that it should result in some big simplifications. I hope. The idea here is to drop down and actually use regex-automata 0.3 instead of the regex crate itself.
2023-05-16deps: update minimum version of grep crateAndrew Gallant
Ref #2516
2023-01-05deps: update to grep 0.2.11Andrew Gallant
2023-01-05deps: update to ignore 0.4.19Andrew Gallant
2023-01-05deps: upgrade to jemallocator 0.5Andrew Gallant
2023-01-05deps: upgrade bstr to 1.1Andrew Gallant
2023-01-05deps: remove 'num_cpus'Andrew Gallant
Now that std::thread::available_parallelism is a thing, we no longer need num_cpus.
2022-12-21cargo: set rust-versionAlex Touchet
This should hopefully make compilation errors from using an older-than-supported compiler more helpful. PR #2373
2021-06-1213.0.013.0.0Andrew Gallant
2021-06-12deps/grep: update minimal versionsAndrew Gallant
2021-06-12deps/ignore: update minimal versionsAndrew Gallant
2021-05-31cargo: remove "readme" fieldMarco Ieni
It is apparently no longer required since a README.md file is automatically detected: https://doc.rust-lang.org/cargo/reference/manifest.html#the-readme-field Closes #1770
2021-05-31doc: improve wordingVarik Valefor
This tightens up the wording in ripgrep's opening description. It's used in several places, so we update all of them. Closes #1881
2020-09-22spelling: fix various misspellingsJosh Soref
These were found by the check spelling action[1] and reported here[2]. PR #1685 [1] - https://github.com/marketplace/actions/check-spelling [2] - https://github.com/jsoref/ripgrep/commit/6f02d056716a116b643da1de4b53c6f15118fc38#commitcomment-42625778
2020-05-2912.1.112.1.1Andrew Gallant
2020-05-29core: update minimal dependency versionsAndrew Gallant
2020-05-0912.1.012.1.0Andrew Gallant
2020-05-09deps: update minimal versions for dependenciesAndrew Gallant
2020-03-2912.0.112.0.1Andrew Gallant
2020-03-17crates.io: remove badgesAndrew Gallant
... and don't replace them with anything because crates.io does not support GitHub Actions yet. But it's almost there: https://github.com/rust-lang/crates.io/pull/1838 Thanks @atouchet for noticing this.
2020-03-15ripgrep: release 12.0.0ignore-0.4.12grep-searcher-0.1.7grep-regex-0.1.6grep-printer-0.1.4grep-pcre2-0.1.4grep-matcher-0.1.4grep-cli-0.1.4grep-0.2.5globset-0.4.5Andrew Gallant
2020-03-15ci: make script names consistentAndrew Gallant
2020-02-20tests: add debugging outputAndrew Gallant
The transient failures appear to be persisting and they are quite difficult to debug. So include a full directory listing in the output of every test failure.
2020-02-17repo: make ripgrep build with the new organizationAndrew Gallant
2020-02-17deb: fix fish completion install locationAndrew Gallant
It looks like `completions` is owned by Fish itself. Third party completions should go in `vendor_completions.d`. Fixes #1485
2019-08-01ripgrep: release 11.0.2Andrew Gallant
2019-06-26bstr: update everything to bstr 0.2Andrew Gallant
2019-04-25ci: use cross for musl x86_64 buildsAndrew Gallant
This is necessary because jemalloc + musl + Ubuntu 16.04 is apparently broken. Moreover, jemalloc doesn't support i686, so we accept the performance regression there. See also: https://github.com/gnzlbg/jemallocator/issues/124
2019-04-24alloc: use jemalloc when building with muslAndrew Gallant
It turns out that musl's allocator is slow enough to cause a fairly noticeable performance regression when ripgrep is built as a static binary with musl. We fix this by using jemalloc when building with musl. We continue to use the default system allocator in all other scenarios. Namely, glibc's allocator doesn't noticeably regress performance compared to jemalloc. But we could add more targets to this logic if other system allocators (macOS, Windows) prove to be slow. This wasn't necessary before because rustc recently stopped using jemalloc by default. Fixes #1268
2019-04-16ripgrep: release 11.0.1Andrew Gallant
2019-04-15ripgrep: release 11.0.011.0.0Andrew Gallant
2019-04-15grep: release 0.2.4grep-0.2.4Andrew Gallant
2019-04-15ignore: release 0.4.7ignore-0.4.7Andrew Gallant
2019-04-05config: switch to using bstrsAndrew Gallant
This lets us implement correct Unicode trimming and also simplifies the parsing logic a bit. This also removes the last platform specific bits of code in ripgrep core.
2019-01-19edition: move core ripgrep to Rust 2018Andrew Gallant
2019-01-19deps: update to bytecount 0.5Andrew Gallant
bytecount now uses runtime dispatch for enabling SIMD, which means we can no longer need the avx-accel features. We remove it from ripgrep since the next release will be a minor version bump, but leave them as no-ops for the crates that previously used it.
2018-09-13deb: add section infoykgmfq
Put it in the same section as https://packages.debian.org/stretch/grep PR #1051
2018-09-08pcre2: use jit_if_availablegrep-pcre2-0.1.2grep-0.2.3Andrew Gallant
This will allow PCRE2 to fall back to non-JIT matching when running on platforms without JIT support. ref https://github.com/BurntSushi/rust-pcre2/issues/3
2018-09-07deb: add completionsAndrew Gallant
This commit adds Bash, zsh and fish completions to the Debian binary package. Fixes #1032
2018-09-07deps: update versions for all cratesAndrew Gallant
I don't think every change here is needed, but this ensures we're using the latest version of every direct dependency.
2018-09-04deps: update grep versionAndrew Gallant
2018-09-04grep-cli: introduce new grep-cli crateAndrew Gallant
This commit moves a lot of "utility" code from ripgrep core into grep-cli. Any one of these things might not be worth creating a new crate, but combining everything together results in a fair number of a convenience routines that make up a decent sized crate. There is potentially more we could move into the crate, but much of what remains in ripgrep core is almost entirely dealing with the number of flags we support. In the course of doing moving things to the grep-cli crate, we clean up a lot of gunk and improve failure modes in a number of cases. In particular, we've fixed a bug where other processes could deadlock if they write too much to stderr. Fixes #990
2018-08-25ripgrep: use winapi-util for stdin_is_readableAndrew Gallant
2018-08-21deps: update clapAndrew Gallant
Update clap to the latest version. Also, drop the ansi_term dependency by disabling color output in clap's error messages.
2018-08-21release: better support for binary Debian packageAndrew Gallant
This commit beefs up the package metadata used by the 'cargo deb' tool to produce a binary dpkg. In particular, we now include ripgrep's man page. This commit includes a new script, 'ci/build_deb.sh', which will handle the build process for a dpkg, which has become a bit more nuanced than just running 'cargo deb'. We don't (yet) run this script in CI. Fixes #842
2018-08-20tests: re-tool integration testsAndrew Gallant
This basically rewrites every integration test. We reduce the amount of magic involved here in terms of which arguments are being passed to ripgrep processes. To make up for the boiler plate saved by the magic, we make the Dir (formerly WorkDir) type a bit nicer to use, along with a new TestCommand that wraps a std::process::Command. In exchange, we get tests that are easier to read and write. We also run every test with the `--pcre2` flag to make sure that works, when PCRE2 is available.