[package] name = "opencv" description = "Rust bindings for OpenCV" documentation = "https://docs.rs/opencv" repository = "https://github.com/twistedfall/opencv-rust" readme = "README.md" keywords = ["opencv", "vision"] license = "MIT" version = "0.93.4" edition = "2021" rust-version = "1.66" authors = ["Pro ", "Mathieu Poumeyrol "] exclude = ["/.github", "/ci", "/tools", ".editorconfig", ".gitattributes", ".gitignore", "release.toml", "rustfmt.toml"] [lib] doctest = false [badges] maintenance = { status = "actively-developed" } [workspace] members = ["binding-generator"] [dependencies] libc = "0.2" num-traits = "0.2" once_cell = "1" # version 0.8.20 doesn't contain the deficiency mentioned in https://deps.rs/crate/opencv/0.59.0#vulnerabilities rgb = { version = "0.8.20", features = ["argb"], optional = true } [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.58", features = ["Win32_Graphics_Direct3D9", "Win32_Graphics_Direct3D10", "Win32_Graphics_Direct3D11"] } [build-dependencies] opencv-binding-generator = { version = "0.93.0", path = "binding-generator" } cc = { version = "1.0.83", features = ["parallel"] } dunce = "1" jobserver = "0.1" once_cell = "1" pkg-config = "0.3" semver = "1" shlex = { version = "1.3", default-features = false } # vcpkg-0.2.9 is the first one that has accessible find_vcpkg_root() vcpkg = "0.2.9" [dev-dependencies] matches = "0.1" opencv-binding-generator = { version = "0.93.0", path = "binding-generator" } cc = { version = ">=1.0.83", features = ["parallel"] } dunce = "1" jobserver = "0.1" once_cell = "1" pkg-config = "0.3" semver = "1" shlex = { version = "1.3", default-features = false } # vcpkg-0.2.9 is the first one that has accessible find_vcpkg_root() vcpkg = "0.2.9" [features] default = [ "alphamat", "aruco", "aruco_detector", "barcode", "bgsegm", "bioinspired", "calib3d", "ccalib", "cudaarithm", "cudabgsegm", "cudacodec", "cudafeatures2d", "cudafilters", "cudaimgproc", "cudaobjdetect", "cudaoptflow", "cudastereo", "cudawarping", "cvv", "dnn", "dnn_superres", "dpm", "face", "features2d", "flann", "freetype", "fuzzy", "gapi", "hdf", "hfs", "highgui", "img_hash", "imgcodecs", "imgproc", "intensity_transform", "line_descriptor", "mcc", "ml", "objdetect", "optflow", "ovis", "phase_unwrapping", "photo", "plot", "quality", "rapid", "rgbd", "saliency", "sfm", "shape", "stereo", "stitching", "structured_light", "superres", "surface_matching", "text", "tracking", "video", "videoio", "videostab", "viz", "wechat_qrcode", "xfeatures2d", "ximgproc", "xobjdetect", "xphoto", ] # OpenCV module features alphamat = [] aruco = [] aruco_detector = ["aruco"] barcode = [] bgsegm = ["video"] bioinspired = [] calib3d = ["features2d"] ccalib = ["features2d"] cudaarithm = [] cudabgsegm = ["video"] cudacodec = [] cudafeatures2d = ["features2d"] cudafilters = [] cudaimgproc = ["imgproc"] cudaobjdetect = ["objdetect"] cudaoptflow = [] cudastereo = ["calib3d"] cudawarping = [] cvv = [] dnn = [] dnn_superres = [] dpm = [] face = ["objdetect"] features2d = ["flann"] flann = [] freetype = [] fuzzy = [] gapi = [] hdf = [] hfs = [] highgui = [] img_hash = [] imgcodecs = [] imgproc = [] intensity_transform = [] line_descriptor = [] mcc = ["dnn"] ml = [] objdetect = [] optflow = ["video"] ovis = [] phase_unwrapping = [] photo = [] plot = [] quality = ["ml"] rapid = [] rgbd = [] saliency = [] sfm = [] shape = [] stereo = [] stitching = ["features2d", "imgproc"] structured_light = [] superres = [] surface_matching = [] text = [] tracking = ["video"] video = [] videoio = [] videostab = ["features2d"] viz = [] xfeatures2d = ["features2d"] ximgproc = ["calib3d"] xobjdetect = [] xphoto = ["photo"] wechat_qrcode = [] # General features clang-runtime = ["opencv-binding-generator/clang-runtime"] [package.metadata.docs.rs] no-default-features = true