1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[]
= "transcribe-cpp"
= "0.5.2"
= "2021"
# As transcribe-cpp-sys (its generated FFI needs 1.82). transcribe-cpp-types
# alone builds on 1.74.
= "1.82"
= "Rust bindings for transcribe.cpp, a C/C++ speech-to-text library built on ggml"
= "MIT"
= "README.md"
= "https://github.com/handy-computer/transcribe.cpp"
= "https://github.com/handy-computer/transcribe.cpp"
= ["transcription", "speech", "asr", "stt", "ggml"]
= ["multimedia::audio", "api-bindings"]
# A unique `links` name so build.rs can re-emit the -sys crate's location
# metadata one more hop (as DEP_TRANSCRIBE_CPP_*) for downstream packaging. No
# native linking happens here — that lives in -sys. See build.rs.
= "transcribe_cpp"
[]
= "transcribe_cpp"
= "src/lib.rs"
[]
# These mirror transcribe-cpp-sys: enabling a backend here just forwards the
# feature to the -sys crate, which forwards it to the CMake build.
= ["metal"]
= ["transcribe-cpp-sys/metal"]
= ["transcribe-cpp-sys/vulkan"]
= ["transcribe-cpp-sys/cuda"]
= ["transcribe-cpp-sys/rocm"]
= ["transcribe-cpp-sys/openmp"]
# `shared` links a shared libtranscribe; `dynamic-backends` additionally ships
# each compute backend as a runtime-loaded module (and implies `shared`, both
# here so CARGO_FEATURE_SHARED is set for this crate's build.rs rpath gate, and
# via the -sys feature). See notes/rust-dynamic-backends-plan.md.
= ["transcribe-cpp-sys/shared"]
= ["shared", "transcribe-cpp-sys/dynamic-backends"]
# Serialize/Deserialize on the plain-data option and result types (not handles),
# Serialize on Error, and Serialize/Deserialize on its ErrorReport snapshot. No
# native-build impact. The plain-data types live in transcribe-cpp-types, so
# this forwards there; `dep:serde` is for Error's own Serialize impl.
= ["dep:serde", "transcribe-cpp-types/serde"]
[]
# default-features = false so the safe crate's own features are the ONLY control
# surface: without it, sys's `default = ["metal"]` stays active even under
# `transcribe-cpp --no-default-features`, silently re-enabling Metal. The backend
# features below forward explicitly, so the default (`metal`) still reaches sys
# via `metal = ["transcribe-cpp-sys/metal"]`.
= { = "0.5.2", = "../../..", = false }
# The plain-data types (options, results, errors), re-exported at this crate's
# root. Pinned EXACTLY: the family-extension enums are #[non_exhaustive], so
# their conversions to the C structs here need a `_` arm the compiler cannot
# check, and only lockstep versions guarantee every variant has a mapping
# (Task / Feature / ExtSlot carry their C value in the types crate instead).
# scripts/release/prepare.py keeps the pin in step with the release version.
= { = "=0.5.2", = "../transcribe-cpp-types" }
= "2"
= "0.4"
= { = "1", = ["derive"], = true }
[]
= "3"
= { = "1", = false, = ["alloc"] }
= "1"