Skip to content

Commit

Permalink
in progress avfoundation update
Browse files Browse the repository at this point in the history
  • Loading branch information
l1npengtul committed Sep 13, 2022
1 parent a887964 commit c090601
Show file tree
Hide file tree
Showing 6 changed files with 795 additions and 1,237 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ version = "0.8"
optional = true

[dependencies.nokhwa-bindings-windows]
version = "0.3.4"
version = "0.4"
path = "nokhwa-bindings-windows"
optional = true

[dependencies.nokhwa-bindings-macos]
version = "0.1.1"
version = "0.2"
path = "nokhwa-bindings-macos"
optional = true

Expand Down
20 changes: 10 additions & 10 deletions nokhwa-bindings-macos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
1 change: 1 addition & 0 deletions nokhwa-bindings-macos/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))]
Expand Down
Loading

0 comments on commit c090601

Please sign in to comment.