# 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 = "2018" name = "sbert" version = "0.4.1" authors = ["Chady Dimachkie "] include = [ "src/", "Cargo.toml", "build.rs", ] description = "Rust implementation of Sentence Bert (SBert)" readme = "README.md" keywords = [ "nlp", "embedding", "bert", "sbert", "transformers", ] license = "Apache-2.0" repository = "https://github.com/cpcdoy/rust-sbert" [package.metadata.docs.rs] features = ["doc-only"] [lib] name = "sbert" crate-type = ["lib"] path = "src/lib.rs" [[bin]] name = "convert-tensor" path = "src/bin/convert-tensor.rs" doc = false [[test]] name = "sbert_test" path = "tests/test_sbert.rs" doc = false [[test]] name = "distilroberta_test" path = "tests/test_distilroberta.rs" doc = false [[bench]] name = "sbert_bench" path = "benches/bench_sbert.rs" doc = false harness = false [[bench]] name = "distilroberta_bench" path = "benches/bench_distilroberta.rs" doc = false harness = false [dependencies.lazy_static] version = "1.4" [dependencies.log] version = "0.4" [dependencies.num_cpus] version = "1.13" [dependencies.prost] version = "0.9" [dependencies.rayon] version = "1.5" [dependencies.rust-bert] version = "0.21.0" [dependencies.rust_tokenizers] version = "7.0" [dependencies.serde] version = "1.0" [dependencies.strum] version = "0.23" [dependencies.strum_macros] version = "0.23" [dependencies.tch] version = "0.13.0" [dependencies.thiserror] version = "1.0" [dependencies.tokenizers] version = "0.11" [dependencies.torch-sys] version = "0.13.0" [dev-dependencies.criterion] version = "0.3" [dev-dependencies.rand] version = "0.8" [features] all-tests = [] doc-only = ["tch/doc-only"]