[workspace] members = [ ".", "web", ] [package] name = "img2text" version = "0.2.0" authors = ["yvt "] edition = "2018" license = "MIT/Apache-2.0" readme = "README.md" description = "Image-to-text converter" categories = ["command-line-utilities", "graphics"] repository = "https://github.com/yvt/img2text" rust-version = "1.56.1" [features] # Enable the `bin`-only deps to facilitate `cargo install`, at cost of # making it more tedious to use the package as a library. The following are the # RFCs that will solve this problem: # # - [Allow specifying dependencies for individual artifacts] # (https://github.com/rust-lang/rfcs/pull/2887) # - [Allow specifying features of the implicit lib dependency] # (https://github.com/rust-lang/rfcs/pull/3020) # default = ["bin"] # `bin`-only deps bin = [ "anyhow", "env_logger", "console", "image", "imageproc", "clap", "log", ] [dependencies] num-integer = { version = "0.1.42", default-features = false } num-traits = { version = "0.2.11", default-features = false } env_logger = { version = "0.8.1", optional = true } # TODO: `imageproc` currently compiles all algorithms. I hope they break them # into features... imageproc = { version = "0.23.0", optional = true } console = { version = "0.13.0", optional = true } anyhow = { version = "1.0.34", optional = true } clap = { version = "3.2", features = ["derive", "wrap_help"], optional = true } log = { version = "0.4.11", optional = true } [dev-dependencies] quickcheck_macros = "1" quickcheck = "1" [build-dependencies] num-integer = { version = "0.1.42", default-features = false } num-traits = { version = "0.2.11", default-features = false } [dependencies.image] version = "0.24.1" optional = true default-features = false features = [ "bmp", "gif", "jpeg", "png", "tga", "webp", ] [profile.release] panic = "abort" codegen-units = 1 lto = true opt-level = "z"