transcribe-cpp-types
The plain-data types of transcribe-cpp,
the Rust binding for
transcribe.cpp: options,
results, enums, errors, abilities, stream updates and family extensions. No
handles, no FFI, nothing native, no build script.
transcribe-cpp depends on this crate at the exact same version and re-exports
every type at its root, so transcribe_cpp::RunOptions and
transcribe_cpp_types::RunOptions are the same type. Use this crate on its own
when a program needs to name those types without the engine
(transcribe-cpp-sys, CMake, ggml, Metal/Vulkan/CUDA) in its dependency graph,
for example a process that talks to transcribe.cpp workers over IPC in the
workers' own types:
Use the same version as the transcribe-cpp your workers run: the two crates
are released together, and transcribe-cpp pins this crate exactly.
Features
serde:Serialize/Deserializeon every type. The wire format is the onetranscribe-cpphas always used (transcribe-cpp/serdeturns this feature on).
Building values
A few types are #[non_exhaustive] and cannot be built with a struct literal
outside this crate. ErrorReport::new(kind, message) builds an error report;
the *Info / *Result types implement Default, so build one with
default() and set its public fields.
License
MIT