From: Kostya Shishkov Date: Sun, 20 Jan 2019 17:53:23 +0000 (+0100) Subject: re-export some core dependencies X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=4e8b4f31bc2ef2b22b4c725aa07dfc776664a97b;p=nihav.git re-export some core dependencies --- diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index 4edb2ee..1d12883 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -1,8 +1,8 @@ use std::fmt; use std::ops::{Add, AddAssign, Sub, SubAssign}; -use crate::frame::*; -use std::rc::Rc; +pub use crate::frame::*; +pub use std::rc::Rc; use std::mem; use crate::io::byteio::ByteIOError; use crate::io::bitreader::BitReaderError; diff --git a/nihav-core/src/demuxers/mod.rs b/nihav-core/src/demuxers/mod.rs index 86de78d..201e163 100644 --- a/nihav-core/src/demuxers/mod.rs +++ b/nihav-core/src/demuxers/mod.rs @@ -1,6 +1,6 @@ use std::rc::Rc; -use crate::frame::*; -use crate::io::byteio::*; +pub use crate::frame::*; +pub use crate::io::byteio::*; #[derive(Debug,Clone,Copy,PartialEq)] #[allow(dead_code)] diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 2bfbe61..9756dfb 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1,9 +1,9 @@ use std::cmp::max; use std::collections::HashMap; use std::fmt; -use std::rc::Rc; -use std::cell::*; -use crate::formats::*; +pub use std::rc::Rc; +pub use std::cell::*; +pub use crate::formats::*; #[allow(dead_code)] #[derive(Clone,Copy,PartialEq)] diff --git a/nihav-core/src/test/dec_video.rs b/nihav-core/src/test/dec_video.rs index 8dbc183..01cc42b 100644 --- a/nihav-core/src/test/dec_video.rs +++ b/nihav-core/src/test/dec_video.rs @@ -3,7 +3,7 @@ use std::io::prelude::*; use crate::frame::*; use crate::codecs::*; use crate::demuxers::*; -use crate::io::byteio::*; +//use crate::io::byteio::*; use super::wavwriter::WavWriter; fn write_pgmyuv(pfx: &str, strno: usize, num: u64, frmref: NAFrameRef) {