2016-11-25 17:34:00 -05:00
|
|
|
[package]
|
|
|
|
name = "moonfire-nvr"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Scott Lamb <slamb@slamb.org>"]
|
2018-12-28 22:53:29 -05:00
|
|
|
edition = "2018"
|
2016-11-25 17:34:00 -05:00
|
|
|
|
2016-12-10 01:04:35 -05:00
|
|
|
[features]
|
2017-03-02 22:29:28 -05:00
|
|
|
|
|
|
|
# The nightly feature is used within moonfire-nvr itself to gate the
|
|
|
|
# benchmarks. Also pass it along to crates that can benefit from it.
|
2019-01-04 14:56:15 -05:00
|
|
|
nightly = ["db/nightly", "parking_lot/nightly", "smallvec/union"]
|
2016-12-10 01:04:35 -05:00
|
|
|
|
2017-03-04 01:42:13 -05:00
|
|
|
# The bundled feature includes bundled (aka statically linked) versions of
|
|
|
|
# native libraries where possible.
|
|
|
|
bundled = ["rusqlite/bundled"]
|
|
|
|
|
2020-04-14 02:03:49 -04:00
|
|
|
analytics = ["moonfire-tflite", "ffmpeg/swscale"]
|
|
|
|
|
2018-02-21 02:15:39 -05:00
|
|
|
[workspace]
|
2020-03-28 03:59:25 -04:00
|
|
|
members = ["base", "db"]
|
2018-02-21 02:15:39 -05:00
|
|
|
|
2016-11-25 17:34:00 -05:00
|
|
|
[dependencies]
|
2018-12-28 22:53:29 -05:00
|
|
|
base = { package = "moonfire-base", path = "base" }
|
2020-11-23 03:23:03 -05:00
|
|
|
base64 = "0.13.0"
|
|
|
|
blake3 = "0.3.7"
|
2020-01-09 02:04:36 -05:00
|
|
|
bytes = "0.5.3"
|
2017-01-27 23:58:04 -05:00
|
|
|
byteorder = "1.0"
|
2020-11-23 03:23:03 -05:00
|
|
|
cstr = "0.2.5"
|
|
|
|
cursive = "0.15.0"
|
2018-12-28 22:53:29 -05:00
|
|
|
db = { package = "moonfire-db", path = "db" }
|
2018-02-21 01:46:14 -05:00
|
|
|
failure = "0.1.1"
|
2020-03-28 03:59:25 -04:00
|
|
|
ffmpeg = { package = "moonfire-ffmpeg", git = "https://github.com/scottlamb/moonfire-ffmpeg" }
|
2020-01-09 02:04:36 -05:00
|
|
|
futures = "0.3"
|
2016-11-25 17:34:00 -05:00
|
|
|
fnv = "1.0"
|
2020-03-20 00:35:42 -04:00
|
|
|
h264-reader = { git = "https://github.com/dholroyd/h264-reader" }
|
2020-01-09 02:04:36 -05:00
|
|
|
http = "0.2.0"
|
2020-05-30 00:20:14 -04:00
|
|
|
http-serve = { git = "https://github.com/scottlamb/http-serve", branch = "dir", features = ["dir"] }
|
2020-01-09 02:04:36 -05:00
|
|
|
hyper = "0.13.0"
|
2018-01-31 01:05:39 -05:00
|
|
|
lazy_static = "1.0"
|
2016-11-25 17:34:00 -05:00
|
|
|
libc = "0.2"
|
2018-01-31 01:05:39 -05:00
|
|
|
log = { version = "0.4", features = ["release_max_level_info"] }
|
2018-11-26 00:31:50 -05:00
|
|
|
memchr = "2.0.2"
|
2018-11-20 12:32:55 -05:00
|
|
|
memmap = "0.7"
|
2020-04-18 02:33:46 -04:00
|
|
|
moonfire-tflite = { git = "https://github.com/scottlamb/moonfire-tflite", features = ["edgetpu"], optional = true }
|
2017-03-26 03:03:24 -04:00
|
|
|
mylog = { git = "https://github.com/scottlamb/mylog" }
|
2020-11-23 03:23:03 -05:00
|
|
|
nix = "0.19.0"
|
|
|
|
nom = "6.0.0"
|
2020-11-24 01:46:05 -05:00
|
|
|
parking_lot = { version = "0.11.1", features = [] }
|
2019-06-19 18:17:50 -04:00
|
|
|
protobuf = { git = "https://github.com/stepancheg/rust-protobuf" }
|
2020-01-09 23:06:30 -05:00
|
|
|
reffers = "0.6.0"
|
2020-11-24 00:47:02 -05:00
|
|
|
ring = "0.16.2"
|
2020-11-22 20:37:55 -05:00
|
|
|
rusqlite = "0.24.1"
|
2018-12-28 22:53:29 -05:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2017-06-11 15:57:55 -04:00
|
|
|
serde_json = "1.0"
|
2020-01-09 23:06:30 -05:00
|
|
|
smallvec = "1.0"
|
2020-04-18 02:33:46 -04:00
|
|
|
structopt = { version = "0.3.13", features = ["default", "wrap_help"] }
|
2016-11-25 17:34:00 -05:00
|
|
|
time = "0.1"
|
2020-04-18 18:44:35 -04:00
|
|
|
tokio = { version = "0.2.0", features = ["blocking", "macros", "parking_lot", "rt-threaded", "signal"] }
|
2020-11-23 03:23:03 -05:00
|
|
|
tokio-tungstenite = "0.11.0"
|
2020-01-09 23:06:30 -05:00
|
|
|
url = "2.1.1"
|
|
|
|
uuid = { version = "0.8", features = ["serde", "std", "v4"] }
|
2016-12-09 00:28:50 -05:00
|
|
|
|
2016-11-25 17:34:00 -05:00
|
|
|
[dev-dependencies]
|
2020-01-09 23:06:30 -05:00
|
|
|
reqwest = { version = "0.10.1", features = ["json"] }
|
2016-11-25 17:34:00 -05:00
|
|
|
tempdir = "0.3"
|
|
|
|
|
2020-11-24 10:53:52 -05:00
|
|
|
[profile.dev.package.scrypt]
|
|
|
|
# On an Intel i3-6100U @ 2.30 GHz, a single scrypt password hash takes 7.6
|
|
|
|
# seconds at opt-level=0, or 0.096 seconds at opt-level=2. Always optimize this
|
|
|
|
# crate to avoid seeming hung / being annoyingly slow when debugging.
|
|
|
|
opt-level = 2
|
|
|
|
|
2016-11-25 17:34:00 -05:00
|
|
|
[profile.release]
|
|
|
|
debug = true
|
|
|
|
|
|
|
|
[profile.bench]
|
|
|
|
debug = true
|