// leindex-embed worker binary — root-crate wrapper for cargo install.
//
// VAL-CARGO-005: `cargo install leindex --features onnx` must place BOTH
// the `leindex` and `leindex-embed` binaries in the install directory.
// Because `cargo install <pkg>` only installs `[[bin]]` targets declared
// in `<pkg>`'s own `Cargo.toml` (it does NOT install binaries from path
// dependencies or workspace members), the root leindex crate mirrors the
// worker binary here as a thin wrapper around `leindex::embed::worker_main::run()`.
//
// The actual worker logic lives in the root crate's `src/embed/worker_main.rs`
// so there is a single source of truth. (The retired crates/leindex-embed
// subcrate's own binary at `crates/leindex-embed/src/bin/leindex-embed.rs`
// no longer exists.)
//
// This target is gated by `required-features = ["onnx"]` so that default
// installs (`cargo install leindex` without neural support) are unaffected;
// the worker is only installed when the user opts into neural embeddings.