mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
repo: make ripgrep build with the new organization
This commit is contained in:
parent
fdd8510fdd
commit
0874aa115c
24
Cargo.toml
24
Cargo.toml
@ -25,7 +25,7 @@ appveyor = { repository = "BurntSushi/ripgrep" }
|
|||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
bench = false
|
bench = false
|
||||||
path = "src/main.rs"
|
path = "crates/core/main.rs"
|
||||||
name = "rg"
|
name = "rg"
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
@ -34,21 +34,21 @@ path = "tests/tests.rs"
|
|||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"globset",
|
"crates/globset",
|
||||||
"grep",
|
"crates/grep",
|
||||||
"grep-cli",
|
"crates/cli",
|
||||||
"grep-matcher",
|
"crates/matcher",
|
||||||
"grep-pcre2",
|
"crates/pcre2",
|
||||||
"grep-printer",
|
"crates/printer",
|
||||||
"grep-regex",
|
"crates/regex",
|
||||||
"grep-searcher",
|
"crates/searcher",
|
||||||
"ignore",
|
"crates/ignore",
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bstr = "0.2.0"
|
bstr = "0.2.0"
|
||||||
grep = { version = "0.2.4", path = "grep" }
|
grep = { version = "0.2.4", path = "crates/grep" }
|
||||||
ignore = { version = "0.4.7", path = "ignore" }
|
ignore = { version = "0.4.7", path = "crates/ignore" }
|
||||||
lazy_static = "1.1.0"
|
lazy_static = "1.1.0"
|
||||||
log = "0.4.5"
|
log = "0.4.5"
|
||||||
num_cpus = "1.8.0"
|
num_cpus = "1.8.0"
|
||||||
|
2
build.rs
2
build.rs
@ -9,7 +9,7 @@ use clap::Shell;
|
|||||||
use app::{RGArg, RGArgKind};
|
use app::{RGArg, RGArgKind};
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[path = "src/app.rs"]
|
#[path = "crates/core/app.rs"]
|
||||||
mod app;
|
mod app;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
15
crates/core/README.md
Normal file
15
crates/core/README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
ripgrep core
|
||||||
|
------------
|
||||||
|
This is the core ripgrep crate. In particular, `main.rs` is where the `main`
|
||||||
|
function lives.
|
||||||
|
|
||||||
|
Most of ripgrep core consists of two things:
|
||||||
|
|
||||||
|
* The definition of the CLI interface, including docs for every flag.
|
||||||
|
* Glue code that brings the `grep-matcher`, `grep-regex`, `grep-searcher` and
|
||||||
|
`grep-printer` crates together to actually execute the search.
|
||||||
|
|
||||||
|
Currently, there are no plans to make ripgrep core available as an independent
|
||||||
|
library. However, much of the heavy lifting of ripgrep is done via its
|
||||||
|
constituent crates, which can be reused independent of ripgrep. Unfortunately,
|
||||||
|
there is no guide or tutorial to teach folks how to do this yet.
|
@ -13,12 +13,12 @@ keywords = ["regex", "grep", "egrep", "search", "pattern"]
|
|||||||
license = "Unlicense/MIT"
|
license = "Unlicense/MIT"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
grep-cli = { version = "0.1.2", path = "../grep-cli" }
|
grep-cli = { version = "0.1.2", path = "../cli" }
|
||||||
grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
|
grep-matcher = { version = "0.1.2", path = "../matcher" }
|
||||||
grep-pcre2 = { version = "0.1.3", path = "../grep-pcre2", optional = true }
|
grep-pcre2 = { version = "0.1.3", path = "../pcre2", optional = true }
|
||||||
grep-printer = { version = "0.1.2", path = "../grep-printer" }
|
grep-printer = { version = "0.1.2", path = "../printer" }
|
||||||
grep-regex = { version = "0.1.3", path = "../grep-regex" }
|
grep-regex = { version = "0.1.3", path = "../regex" }
|
||||||
grep-searcher = { version = "0.1.4", path = "../grep-searcher" }
|
grep-searcher = { version = "0.1.4", path = "../searcher" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
termcolor = "1.0.4"
|
termcolor = "1.0.4"
|
||||||
|
@ -13,5 +13,5 @@ keywords = ["regex", "grep", "pcre", "backreference", "look"]
|
|||||||
license = "Unlicense/MIT"
|
license = "Unlicense/MIT"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
|
grep-matcher = { version = "0.1.2", path = "../matcher" }
|
||||||
pcre2 = "0.2.0"
|
pcre2 = "0.2.0"
|
||||||
|
@ -20,12 +20,12 @@ serde1 = ["base64", "serde", "serde_derive", "serde_json"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = { version = "0.11.0", optional = true }
|
base64 = { version = "0.11.0", optional = true }
|
||||||
bstr = "0.2.0"
|
bstr = "0.2.0"
|
||||||
grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
|
grep-matcher = { version = "0.1.2", path = "../matcher" }
|
||||||
grep-searcher = { version = "0.1.4", path = "../grep-searcher" }
|
grep-searcher = { version = "0.1.4", path = "../searcher" }
|
||||||
termcolor = "1.0.4"
|
termcolor = "1.0.4"
|
||||||
serde = { version = "1.0.77", optional = true }
|
serde = { version = "1.0.77", optional = true }
|
||||||
serde_derive = { version = "1.0.77", optional = true }
|
serde_derive = { version = "1.0.77", optional = true }
|
||||||
serde_json = { version = "1.0.27", optional = true }
|
serde_json = { version = "1.0.27", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
grep-regex = { version = "0.1.3", path = "../grep-regex" }
|
grep-regex = { version = "0.1.3", path = "../regex" }
|
||||||
|
@ -15,7 +15,7 @@ license = "Unlicense/MIT"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
aho-corasick = "0.7.3"
|
aho-corasick = "0.7.3"
|
||||||
bstr = "0.2.10"
|
bstr = "0.2.10"
|
||||||
grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
|
grep-matcher = { version = "0.1.2", path = "../matcher" }
|
||||||
log = "0.4.5"
|
log = "0.4.5"
|
||||||
regex = "1.1"
|
regex = "1.1"
|
||||||
regex-syntax = "0.6.5"
|
regex-syntax = "0.6.5"
|
||||||
|
@ -17,12 +17,12 @@ bstr = { version = "0.2.0", default-features = false, features = ["std"] }
|
|||||||
bytecount = "0.6"
|
bytecount = "0.6"
|
||||||
encoding_rs = "0.8.14"
|
encoding_rs = "0.8.14"
|
||||||
encoding_rs_io = "0.1.6"
|
encoding_rs_io = "0.1.6"
|
||||||
grep-matcher = { version = "0.1.2", path = "../grep-matcher" }
|
grep-matcher = { version = "0.1.2", path = "../matcher" }
|
||||||
log = "0.4.5"
|
log = "0.4.5"
|
||||||
memmap = "0.7"
|
memmap = "0.7"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
grep-regex = { version = "0.1.3", path = "../grep-regex" }
|
grep-regex = { version = "0.1.3", path = "../regex" }
|
||||||
regex = "1.1"
|
regex = "1.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user