Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
with:
repository: AdaWorldAPI/ndarray
path: ndarray
- uses: actions/checkout@v4
with:
repository: AdaWorldAPI/OGAR
path: OGAR
# ndarray declares rust-version = 1.95; bump the toolchain to satisfy it.
- name: Rust 1.95 toolchain
run: rustup toolchain install 1.95 --profile minimal --component clippy --component rustfmt && rustup default 1.95
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# (source: AdaWorldAPI/Tesseract) before it lands. The transcoded primitives
# ride the OGAR Core (`lance-graph-contract`) per the Core-First doctrine.
[workspace]
members = ["crates/tesseract-core", "crates/tesseract-ocr", "crates/tesseract-recognizer", "crates/tesseract-ocr-pdf"]
members = ["crates/tesseract-core", "crates/tesseract-ocr", "crates/tesseract-recognizer", "crates/tesseract-ocr-pdf", "crates/tesseract-ogar"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add CI coverage for the new workspace crate

Adding crates/tesseract-ogar makes this a shipped workspace package, but the workflow in this commit still only runs build/test/clippy/fmt for tesseract-core and tesseract-recognizer (.github/workflows/rust.yml lines 39-63); no command ever builds or tests tesseract-ogar. In this context, the new executor and its OGAR drift tests can fail to compile or diverge from the action table without CI catching it, despite those tests being the advertised safety fuse.

Useful? React with 👍 / 👎.

resolver = "2"
15 changes: 15 additions & 0 deletions crates/tesseract-ogar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "tesseract-ogar"
version = "0.0.1"
edition = "2021"
license = "MIT"
description = "In-binary executor for the OGAR-authoritative tesseract-rs OCR action table (ogar_vocab::ocr_actions): OGAR declares the eight capabilities, this crate executes them. No serde, no wire format — a typed OcrRequest/OcrResponse dispatch, monomorphized, in the same binary as the declaration it is proven against."

[dependencies]
# THE authoritative OCR capability table (Phase 1) — sibling checkout, path dep,
# no pin, per the workspace's local-repos-are-canonical convention.
ogar-vocab = { path = "../../../OGAR/crates/ogar-vocab" }
# The two OCR foundations + the PDF front-end (path deps, fork-only policy).
tesseract-ocr = { path = "../tesseract-ocr", features = ["seg-approx"] }
tesseract-core = { path = "../tesseract-core" }
tesseract-ocr-pdf = { path = "../tesseract-ocr-pdf" }
Loading