icrim 57b9c84242 Initial commit
Co-authored-by: xinchengxx <xinchengxx@deepseek.com>
Co-authored-by: XieJiSS <xiejiss@deepseek.com>
Co-authored-by: yqaty <jiayu@deepseek.com>
Co-authored-by: zhu-he <hezhu@deepseek.com>
Co-authored-by: season-guo <seasonguo@deepseek.com>
2026-09-10 18:07:01 +08:00

31 lines
1.1 KiB
TOML

[package]
name = "deepseek-recipe-image"
version = "0.1.0"
edition.workspace = true
description = "Image fetching and preprocessing for DeepSeek V4.1 model input."
readme.workspace = true
documentation = "https://docs.rs/deepseek-recipe-image"
license.workspace = true
repository.workspace = true
[dependencies]
data-url = { workspace = true }
deepseek-recipe-core = { workspace = true }
futures = { workspace = true }
image = { workspace = true, optional = true }
infer = { workspace = true, optional = true }
opencv = { workspace = true, optional = true }
reqwest = { workspace = true, optional = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tracing = { workspace = true }
[features]
default = ["opencv-preprocess", "reqwest-fetch"]
# Supply `OpenCvImagePreprocessor` for DeepSeek V4.1 preprocessing. Disable this
# feature to build without OpenCV when the caller supplies a preprocessor.
opencv-preprocess = ["dep:image", "dep:infer", "dep:opencv"]
# Supply `ReqwestImageFetcher` for downloading images from external URLs.
reqwest-fetch = ["dep:reqwest"]