# 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 = "natural_syntax" version = "0.0.2" description = "Natural language syntax highlighting." readme = "README.md" license = "MIT" repository = "https://github.com/SichangHe/natural_syntax" [profile.dev.package.insta] opt-level = 3 [profile.dev.package.similar] opt-level = 3 [profile.release] lto = true [dependencies.num-derive] version = "0.4" optional = true [dependencies.num-traits] version = "0.2" optional = true [dependencies.rust-bert] version = "0.22" [dependencies.serde] version = "1" features = ["derive"] optional = true [dependencies.thiserror] version = "1.0.61" [dev-dependencies.insta] version = "1.39" [dev-dependencies.tracing] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [features] default = [ "download-libtorch", "num", "serde", ] download-libtorch = ["rust-bert/download-libtorch"] num = [ "dep:num-derive", "dep:num-traits", ] serde = ["dep:serde"]