Move optional mod parse
This commit is contained in:
+3
-16
@@ -8,22 +8,9 @@ pub mod generated {}
|
|||||||
#[cfg(feature = "devread")]
|
#[cfg(feature = "devread")]
|
||||||
pub mod parse;
|
pub mod parse;
|
||||||
#[cfg(not(feature = "devread"))]
|
#[cfg(not(feature = "devread"))]
|
||||||
pub mod parse {
|
pub mod parsestub;
|
||||||
use crate::ItemSer;
|
#[cfg(not(feature = "devread"))]
|
||||||
use async_channel::Receiver;
|
pub use parsestub as parse;
|
||||||
use err::Error;
|
|
||||||
use netpod::NodeConfigCached;
|
|
||||||
use std::collections::BTreeMap;
|
|
||||||
|
|
||||||
type RT1 = Box<dyn ItemSer + Send>;
|
|
||||||
|
|
||||||
pub async fn scan_files(
|
|
||||||
_pairs: BTreeMap<String, String>,
|
|
||||||
_node_config: NodeConfigCached,
|
|
||||||
) -> Result<Receiver<Result<RT1, Error>>, Error> {
|
|
||||||
Err(Error::with_msg("feature not enabled"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#[cfg(feature = "devread")]
|
#[cfg(feature = "devread")]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod test;
|
pub mod test;
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
use crate::ItemSer;
|
||||||
|
use async_channel::Receiver;
|
||||||
|
use err::Error;
|
||||||
|
use netpod::NodeConfigCached;
|
||||||
|
use std::collections::BTreeMap;
|
||||||
|
|
||||||
|
type RT1 = Box<dyn ItemSer + Send>;
|
||||||
|
|
||||||
|
pub async fn scan_files(
|
||||||
|
_pairs: BTreeMap<String, String>,
|
||||||
|
_node_config: NodeConfigCached,
|
||||||
|
) -> Result<Receiver<Result<RT1, Error>>, Error> {
|
||||||
|
Err(Error::with_msg("feature not enabled"))
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user