summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
8 daysprinter: make compilation on non-unix, non-windows platforms workHEADmasterNicolas Holzschuch
Some of the new hyperlink work caused ripgrep to stop compiling on non-{Unix,Windows} platforms. The most popular of which is WASI. This commit makes non-{Unix,Windows} compile again. And we add a very basic WASI test in CI to catch regressions. More work is needed to make tests on non-{Unix,Windows} platforms work. And of course, this commit specifically takes the path of disabling hyperlink support for non-{Unix,Windows} platforms.
8 daysdeps: update everythingAndrew Gallant
Notably, this removes winapi in favor of windows-sys, as a result of winapi-util switching over to windows-sys[1]. Annoyingly, when PCRE2 is enabled, this brings in a dependency on `once_cell`[2]. I had worked to remove it from my dependencies and now it's back. Gah. I suppose I could disable the `parallel` feature of `cc`, but that doesn't seem like a good trade-off. [1]: https://github.com/BurntSushi/winapi-util/pull/13 [2]: https://github.com/rust-lang/cc-rs/pull/1037
2024-04-02doc: fix typoredistay
PR #2776
2024-04-01ignore/types: add WGSL to the default file typesLinda_pp
[WGSL][1] is a shading language for WebGPU. As defined in [Appendix A][2], the file extension is `.wgsl`. PR #2774 [1]: https://www.w3.org/TR/WGSL/ [2]: https://www.w3.org/TR/WGSL/#text-wgsl-media-type
2024-04-01ignore/types: add VueVadim Kostin
PR #2772
2024-03-27ignore/walk: correct build_parallel() documentationcgzones
The returned closure should return `WalkState`, not `()`. Closes #2767
2024-03-24deps: bump everything elseAndrew Gallant
2024-03-24deps: bump pcre2 and pcre2-sysAndrew Gallant
This moves to PCRE2 10.43.
2024-03-20doc: add link to unofficial playgroundAnton Zhiyanov
PR #2760
2024-03-19ignore/types: add 'svelte' to the default file typesBrent Williams
Ref: https://svelte.dev/ PR #2759
2024-03-07cargo: nuke 'simd-accel' from orbitAndrew Gallant
This feature causes nothing but problems and is frequently broken. The only optimization it was enabling were SIMD optimizations for transcoding. In particular, for UTF-16 transcoding. This is performed by the [`encoding_rs`](https://github.com/hsivonen/encoding_rs) crate, which specifically uses unstable portable SIMD APIs instead of the stable non-portable SIMD APIs. SIMD optimizations that apply to search have long been making use of stable APIs, and are automatically enabled when your target supports them. This is, IMO, the correct user experience and one that `encoding_rs` refuses to support. I'm done dealing with it, so transcoding will only use scalar code until the SIMD optimizations in `encoding_rs` work on stable. (This doesn't mean that `encoding_rs` has to change. This could also be fixed by stabilizing `std::simd`.) Fixes #2748
2024-03-07deps: update everythingAndrew Gallant
2024-03-07style: fix new lintsAndrew Gallant
The Rust compiler seems to have gotten smarter at finding unused or redundant imports.
2024-02-22doc: fix typo in commentsSuperSpecialSweet
PR #2741
2024-02-15cli: remove stray `dbg!`Andrew Gallant
Whoops, forgot to review my commits before pushing.
2024-02-15cli: tweak how "is one file" predicate worksAndrew Gallant
In effect, we switch from `path.is_file()` to `!path.is_dir()`. In cases where process substitution is used, for example, the path can actually have type "fifo" instead of "file." Even if it's a fifo, we want to treat it as-if it were a file. The real key here is that we basically always want to consider a lone argument as a file so long as we know it isn't a directory. Because a directory is the only thing that will causes us to (potentially) search more than one thing. Fixes #2736
2024-01-22doc: fix typo in --hidden docsWilfred Hughes
PR #2718
2024-01-06doc: add missing date in changelogAlex Touchet
PR #2704
2024-01-06changelog: start next sectionAndrew Gallant
2024-01-06pkg/brew: update tapAndrew Gallant
2024-01-0614.1.014.1.0Andrew Gallant
2024-01-06changelog: add 14.1.0 blurbAndrew Gallant
2024-01-06deps: bump ignore to 0.4.22Andrew Gallant
2024-01-06ignore-0.4.22ignore-0.4.22Andrew Gallant
2024-01-06deps: update everythingAndrew Gallant
2024-01-06cli: prefix all non-fatal error messages with 'rg: 'Andrew Gallant
Fixes #2694
2024-01-06changelog: various updatesAndrew Gallant
2024-01-06ignore: fix reference cycle for compiled matchersfe9lix
It looks like there is a reference cycle caused by the compiled matchers (compiled HashMap holds ref to Ignore and Ignore holds ref to HashMap). Using weak refs fixes issue #2690 in my test project. Also confirmed via before and after when profiling the code, see the attached screenshots in #2692. Fixes #2690
2024-01-06ignore: add some 'allow(dead_code)' annotationsAndrew Gallant
I don't usually like doing this and would prefer to just delete unused code, but I don't have the context required to understand why this code is unused. A refresh of this crate is on the (distant) horizon, so I'll just leave these here for now to squash the warnings.
2024-01-06complete/fish: improve shell completions for fishJan Verbeek
- Stop using `-n __fish_use_subcommand`. This had the effect of ignoring options if a positional argument has already been given, but that's not how ripgrep works. - Only suggest negation options if the option they're negating is passed (e.g., only complete `--no-pcre2` if `--pcre2` is present). The zsh completions already do this. - Take into account whether an option takes an argument. If an option is not a switch then it won't suggest further options until the argument is given, e.g. `-C<tab>` won't suggest options but `-i<tab>` will. - Suggest correct arguments for options. We already completed a fixed set of choices where available, but now we go further: - Filenames are only suggested for options that take filenames. - `--pre` and `--hostname-bin` suggest binaries from `$PATH`. - `-t`/`--type`/&c use `--type-list` for suggestions, like in zsh, with a preview of the glob patterns. - `--encoding` uses a hardcoded list extracted from the zsh completions. This has been refactored into a separate file, and the range globs (`{1..5}`) replaced by comma globs (`{1,2,3,4,5}`) since those work in both shells. I verified that this produces the same list as before in zsh, and the same list in fish (albeit in a different order). PR #2684
2024-01-06doc: update MSRV in READMEDavid Gilman
PR #2673
2024-01-06ci: drop custom Cross imagesAndrew Gallant
It looks like these aren't needed any more? I'm not sure why to be honest. I suspect it's because we no longer need asciidoc(tor)? to generate man pages. And I believe tests that require things like `zstd` are automatically if `zstd` isn't installed.
2024-01-06ci: add more ARM build configurations to CI and release workflowsYounes El-karama
... it turns out that rustembedded/cross:armv7-unknown-linux-musleabi doesn't exist. And looking more closely, it looks like the Cross project has decided to shake things up and publish images to ghcr instead. So we migrate everything over to that.
2024-01-04deps: update everythingAndrew Gallant
This drops a dependency on memoffset due to a crossbeam-epoch update. w00t.
2024-01-04deps: bump pcre2-sys to 0.2.8Andrew Gallant
This release contains some extra logic to disable the JIT on musleabi targets.
2024-01-03readme: update benchmarksAndrew Gallant
We add a few more too.
2023-12-17deps: update everythingAndrew Gallant
This also drops a dependency on scopeguard, courtesy of crossbeam-epoch dropping it. Not sure why they did, but fine by me.
2023-12-07ignore/types: add Leanamesgen
Ref: https://lean-lang.org/ PR #2678
2023-11-30doc: fix Guix install instructionsTimo Wilken
`guix install` should not be run using `sudo`, as per <https://packages.guix.gnu.org/packages/ripgrep/>. PR #2669
2023-11-29ignore/types: add meson.optionsPatrick Williams
Starting with meson 1.1, there is a preference for using meson.options instead of meson_options.txt. Add the new filename to the meson set. PR #2666
2023-11-29doc: add Void Linux installation instructionsliberodark
PR #2665
2023-11-28pkg/brew: update tapAndrew Gallant
2023-11-2814.0.314.0.3Andrew Gallant
2023-11-28core: actually implement --sortr=pathAndrew Gallant
This is an embarrassing oversight. A `todo!()` actually made its way into a release! Oof. This was working in ripgrep 13, but I had redone some aspects of sorting and this just got left undone. Fixes #2664
2023-11-27pkg/brew: update tapAndrew Gallant
2023-11-2714.0.214.0.2Andrew Gallant
2023-11-27deps: bump grep to 0.3.1Andrew Gallant
2023-11-27grep-0.3.1grep-0.3.1Andrew Gallant
2023-11-27deps: bump grep-printer to 0.2.1Andrew Gallant
2023-11-27grep-printer-0.2.1grep-printer-0.2.1Andrew Gallant