# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "ct2rs" version = "0.9.4" authors = ["Junpei Kawamoto "] build = "build.rs" include = [ "/include", "/src", "/build.rs", "/LICENSE", "/examples", "/CTranslate2/CMakeLists.txt", "/CTranslate2/LICENSE", "/CTranslate2/cmake", "/CTranslate2/cpp", "/CTranslate2/include", "/CTranslate2/python", "/CTranslate2/src", "/CTranslate2/third_party", "!/CTranslate2/**/.*", "!/CTranslate2/**/test", "!/CTranslate2/**/docs", "!/CTranslate2/**/media", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Rust bindings for OpenNMT/CTranslate2" documentation = "https://docs.rs/ct2rs" readme = "README.md" keywords = [ "ctranslate2", "bindings", "llm", "whisper", ] categories = ["api-bindings"] license = "MIT" repository = "https://github.com/jkawamoto/ctranslate2-rs" [package.metadata.docs.rs] features = [ "whisper", "hub", ] [lib] name = "ct2rs" path = "src/lib.rs" [[example]] name = "bart" path = "examples/bart.rs" [[example]] name = "bloom" path = "examples/bloom.rs" [[example]] name = "falcon" path = "examples/falcon.rs" [[example]] name = "gpt-2" path = "examples/gpt-2.rs" [[example]] name = "gpt-j" path = "examples/gpt-j.rs" [[example]] name = "gpt-neox" path = "examples/gpt-neox.rs" [[example]] name = "marian-mt" path = "examples/marian-mt.rs" [[example]] name = "mpt" path = "examples/mpt.rs" [[example]] name = "nllb" path = "examples/nllb.rs" [[example]] name = "opt" path = "examples/opt.rs" [[example]] name = "stream" path = "examples/stream.rs" [[example]] name = "t5" path = "examples/t5.rs" [[example]] name = "whisper" path = "examples/whisper.rs" [dependencies.anyhow] version = "1.0.89" [dependencies.cxx] version = "1.0.129" features = ["c++17"] [dependencies.hf-hub] version = "0.3.2" optional = true [dependencies.mel_spec] version = "0.2.7" optional = true [dependencies.ndarray] version = "0.15.6" optional = true [dependencies.sentencepiece] version = "0.11.2" [dependencies.serde] version = "1.0.210" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0.128" optional = true [dependencies.tokenizers] version = "0.20.1" [dev-dependencies.clap] version = "4.5.20" features = ["derive"] [dev-dependencies.hound] version = "3.5.1" [dev-dependencies.rand] version = "0.8.5" [build-dependencies.cmake] version = "0.1.51" [build-dependencies.cxx-build] version = "1.0.129" [build-dependencies.walkdir] version = "2.5.0" [features] accelerate = [] cuda = [] cuda-dynamic-loading = ["cuda"] cudnn = ["cuda"] default = ["ruy"] flash-attention = [] hub = ["dep:hf-hub"] mkl = ["dep:intel-mkl-src"] openblas = [] ruy = [] tensor-parallel = [] whisper = [ "dep:mel_spec", "dep:ndarray", "dep:serde", "dep:serde_json", ] [target."cfg(unix)".dependencies.intel-mkl-src] version = "0.8.1" optional = true [target."cfg(windows)".dependencies.intel-mkl-src] version = "0.8.1" features = ["mkl-static-ilp64-seq"] optional = true