Skip to content

Should I parse the json output now if I want to use ripgrep in rust? #1592

Answered by BurntSushi
BurntSushi asked this question in General
Discussion options

You must be logged in to vote

libripgrep is only about exposing the guts of what makes search work. There are no plans to expose the full CLI functionality of ripgrep as it exists today as a library. Most of ripgrep core is really just about parsing CLI flags and configuring the various grep dependencies to execute the search.

If you want to build your own kind of tool that is as fast as ripgrep but has a different interface/objective/whatever, then libripgrep is what you want.

If you just want to use ripgrep and all of its CLI functionality, then you should just call the rg process. If you want to change the output format, then you might be able to get away with massaging the default output format, but I don't know e…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@NightMachinery
Comment options

@BurntSushi
Comment options

@NightMachinery
Comment options

@BurntSushi
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants