initial split of database to a separate crate

It should reduce compile time / memory usage to put quite a bit of the code
into a separate crate. I also intend to limit visibility of some things to
only within the db crate, but that's for a future change. This is the smallest
move that will compile.
This commit is contained in:
Scott Lamb
2018-02-20 23:15:39 -08:00
parent d84e754b2a
commit 31adbc1e9f
30 changed files with 153 additions and 91 deletions

View File

@@ -42,16 +42,15 @@ extern crate hyper;
#[macro_use] extern crate lazy_static;
extern crate libc;
#[macro_use] extern crate log;
extern crate lru_cache;
extern crate reffers;
extern crate rusqlite;
extern crate memmap;
extern crate mime;
extern crate moonfire_db as db;
extern crate moonfire_ffmpeg;
extern crate mylog;
extern crate openssl;
extern crate parking_lot;
extern crate protobuf;
extern crate regex;
extern crate serde;
#[macro_use] extern crate serde_derive;
@@ -64,20 +63,14 @@ extern crate url;
extern crate uuid;
mod clock;
mod coding;
mod cmds;
mod db;
mod dir;
mod h264;
mod json;
mod mp4;
mod recording;
mod schema;
mod slices;
mod stream;
mod streamer;
mod strutil;
#[cfg(test)] mod testutil;
mod web;
/// Commandline usage string. This is in the particular format expected by the `docopt` crate.