mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-13 16:03:22 -05:00
move strutil to base crate
I plan to use strutil::hex in db/auth.rs.
This commit is contained in:
parent
0701121586
commit
97d831e054
@ -35,3 +35,4 @@ extern crate parking_lot;
|
||||
extern crate time;
|
||||
|
||||
pub mod clock;
|
||||
pub mod strutil;
|
||||
|
@ -72,7 +72,6 @@ mod mp4;
|
||||
mod slices;
|
||||
mod stream;
|
||||
mod streamer;
|
||||
mod strutil;
|
||||
mod web;
|
||||
|
||||
/// Commandline usage string. This is in the particular format expected by the `docopt` crate.
|
||||
|
@ -78,6 +78,7 @@
|
||||
|
||||
extern crate time;
|
||||
|
||||
use base::strutil;
|
||||
use byteorder::{BigEndian, ByteOrder, WriteBytesExt};
|
||||
use db::recording::{self, TIME_UNITS_PER_SEC};
|
||||
use db::{self, dir};
|
||||
@ -98,7 +99,6 @@ use std::io;
|
||||
use std::ops::Range;
|
||||
use std::mem;
|
||||
use std::sync::Arc;
|
||||
use strutil;
|
||||
|
||||
/// This value should be incremented any time a change is made to this file that causes different
|
||||
/// bytes to be output for a particular set of `Mp4Builder` options. Incrementing this value will
|
||||
@ -1517,6 +1517,7 @@ impl http_serve::Entity for File {
|
||||
/// to verify the output is byte-for-byte as expected.
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use base::strutil;
|
||||
use byteorder::{BigEndian, ByteOrder};
|
||||
use clock::RealClocks;
|
||||
use db::recording::{self, TIME_UNITS_PER_SEC};
|
||||
@ -1531,7 +1532,6 @@ mod tests {
|
||||
use std::ops::Range;
|
||||
use std::path::Path;
|
||||
use std::str;
|
||||
use strutil;
|
||||
use super::*;
|
||||
use stream::{self, Opener, Stream};
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
extern crate hyper;
|
||||
|
||||
use base::strutil;
|
||||
use core::borrow::Borrow;
|
||||
use core::str::FromStr;
|
||||
use db::{self, recording};
|
||||
@ -54,7 +55,6 @@ use std::fs;
|
||||
use std::ops::Range;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use strutil;
|
||||
use url::form_urlencoded;
|
||||
use uuid::Uuid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user