Skip to content

Commit bce30b4

Browse files
authored
Feat/bump plumbing dep (#41)
* feat: ⬆️ bump tesseract-plumbing to 0.11 `tesseract-plumbing` got an optional feature that can be turned off to allow older installations of the tessearct lib. By default, everything only works with libtesseract 5.2 or higher. * build: activate "tesseract_5_2" feature
1 parent 2910c5e commit bce30b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ categories = ["api-bindings", "multimedia::images"]
1111

1212
[dependencies]
1313
tesseract-sys = "~0.5"
14-
tesseract-plumbing = "~0.10"
14+
tesseract-plumbing = { version="~0.11", default-features = false }
1515
thiserror = "1.0"
16+
17+
[features]
18+
default = ["tesseract_5_2"]
19+
tesseract_5_2 = ["tesseract-plumbing/tesseract_5_2"]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ impl Tesseract {
131131
Ok(tess)
132132
}
133133

134+
#[cfg(feature = "tesseract_5_2")]
134135
pub fn new_with_data(
135136
data: &[u8],
136137
language: Option<&str>,

0 commit comments

Comments
 (0)