mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 02:27:26 +00:00
Fix up remaining stuff - ready to publish
This commit is contained in:
@@ -6,13 +6,13 @@ edition = "2018"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1.0.29"
|
||||
lazy_static = "1.4.0"
|
||||
thiserror = "1.0.26"
|
||||
flume = "0.10.9"
|
||||
|
||||
[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"
|
||||
flume = "0.10.9"
|
||||
dashmap = "4.0.2"
|
||||
dashmap = "4.0.2"
|
||||
lazy_static = "1.4.0"
|
||||
@@ -14,8 +14,10 @@
|
||||
)]
|
||||
#![allow(clippy::not_unsafe_ptr_arg_deref)]
|
||||
|
||||
#[cfg_attr(any(target_os = "macos", target_os = "ios"), macro_use)]
|
||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
#[macro_use]
|
||||
extern crate objc;
|
||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
@@ -1225,6 +1227,8 @@ pub mod avfoundation {
|
||||
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
|
||||
pub mod avfoundation {
|
||||
use crate::AVFError;
|
||||
use flume::{Receiver, Sender};
|
||||
use std::borrow::Cow;
|
||||
|
||||
pub type CompressionData<'a> = (Cow<'a, [u8]>, AVFourCC);
|
||||
pub type DataPipe<'a> = (Sender<CompressionData<'a>>, Receiver<CompressionData<'a>>);
|
||||
@@ -1411,11 +1415,11 @@ pub mod avfoundation {
|
||||
vec![]
|
||||
}
|
||||
|
||||
pub fn new(index: usize) -> Result<Self, AVFError> {
|
||||
pub fn new(_: usize) -> Result<Self, AVFError> {
|
||||
Err(AVFError::NotSupported)
|
||||
}
|
||||
|
||||
pub fn from_id(id: &str) -> Result<Self, AVFError> {
|
||||
pub fn from_id(_: &str) -> Result<Self, AVFError> {
|
||||
Err(AVFError::NotSupported)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user