# 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 = "browser-video-capture" version = "0.1.0" authors = ["Rostyslav Bohomaz "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Raw video frame capture in WebAssembly for browser environment." readme = "README.md" license = "MIT/Apache-2.0" repository = "https://github.com/rostyq/browser-video-capture-rs" [lib] name = "browser_video_capture" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [[test]] name = "web" path = "tests/web.rs" [dependencies.image] version = "0.25.2" optional = true default-features = false [dependencies.web-sys] version = "0.3.69" features = ["HtmlVideoElement"] [dev-dependencies.console_error_panic_hook] version = "0.1.7" [dev-dependencies.gloo] version = "0.11.0" features = [ "utils", "console", ] default-features = false [dev-dependencies.image] version = "0.25.2" default-features = false [dev-dependencies.rstest] version = "0.22.0" [dev-dependencies.wasm-bindgen] version = "0.2.84" [dev-dependencies.wasm-bindgen-futures] version = "0.4.42" [dev-dependencies.wasm-bindgen-test] version = "0.3.34" [dev-dependencies.web-sys] version = "0.3.69" features = [ "Document", "Element", "HtmlCanvasElement", "CanvasRenderingContext2d", "MediaStream", "MediaStreamTrack", ] [features] 2d = ["web-sys/ImageData"] default = [] gl = [ "web-sys/WebGlShader", "web-sys/WebGlTexture", "web-sys/WebGlProgram", "web-sys/WebGlBuffer", "web-sys/WebGlUniformLocation", ] html = ["web-sys/HtmlCanvasElement"] html-2d = [ "html", "2d", "web-sys/CanvasRenderingContext2d", ] html-webgl = [ "html", "webgl", ] html-webgl2 = [ "html", "webgl2", ] image = ["dep:image"] offscreen = ["web-sys/OffscreenCanvas"] offscreen-2d = [ "offscreen", "2d", "web-sys/OffscreenCanvasRenderingContext2d", ] offscreen-webgl = [ "offscreen", "webgl", ] offscreen-webgl2 = [ "offscreen", "webgl2", ] webgl = [ "gl", "web-sys/WebGlRenderingContext", ] webgl2 = [ "gl", "web-sys/WebGl2RenderingContext", ]