mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-04 21:52:54 +02:00
printer: drop dependency on base64
crate
Instead, we just roll our own. A slow version of this is pretty simple to do, and that's what we write here. The `base64` crate supports a lot more functionality and is quite fast, but we care about neither of those things for this particular aspect of ripgrep. (base64 is only used for non-UTF-8 data or file paths, which are both quite rare.)
This commit is contained in:
@ -16,10 +16,9 @@ edition = "2021"
|
||||
|
||||
[features]
|
||||
default = ["serde"]
|
||||
serde = ["dep:base64", "dep:serde", "dep:serde_json"]
|
||||
serde = ["dep:serde", "dep:serde_json"]
|
||||
|
||||
[dependencies]
|
||||
base64 = { version = "0.21.4", optional = true }
|
||||
bstr = "1.6.2"
|
||||
grep-matcher = { version = "0.1.6", path = "../matcher" }
|
||||
grep-searcher = { version = "0.1.11", path = "../searcher" }
|
||||
|
Reference in New Issue
Block a user