mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 10:37:26 +00:00
in progress avfoundation update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "nokhwa-bindings-macos"
|
||||
version = "0.1.2"
|
||||
version = "0.2.0"
|
||||
edition = "2018"
|
||||
authors = ["l1npengtul"]
|
||||
license = "Apache-2.0"
|
||||
@@ -10,13 +10,13 @@ keywords = ["avfoundation", "macos", "capture", "webcam"]
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1.0.26"
|
||||
flume = "0.10.9"
|
||||
flume = "0.10"
|
||||
core-media-sys = "0.1"
|
||||
cocoa-foundation = "0.1"
|
||||
objc = { version = "0.2", features = ["exception"] }
|
||||
block = "0.1"
|
||||
once_cell = "1.14"
|
||||
|
||||
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
|
||||
core-media-sys = "0.1.2"
|
||||
cocoa-foundation = "0.1.0"
|
||||
objc = { version = "0.2.7", features = ["exception"] }
|
||||
block = "0.1.6"
|
||||
dashmap = "5.3.4"
|
||||
lazy_static = "1.4.0"
|
||||
[dependencies.nokhwa-core]
|
||||
version = "0.1"
|
||||
path = "../nokhwa-core"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
fn main() {
|
||||
println!("cargo:rustc-link-lib=framework=CoreMedia");
|
||||
println!("cargo:rustc-link-lib=framework=AVFoundation");
|
||||
println!("cargo:rustc-link-lib=framework=CoreVideo");
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
|
||||
|
||||
+824
-1250
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user