mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-13 16:03:22 -05:00
315f3594c2
The Javascript is pretty amateurish I'm sure but at least it's something to iterate from. It's already much more pleasant for browsing through videos in several ways: * more responsive to load only a day at a time rather than 90+ days * much easier to see the same time segment on several cameras * more pleasant to have the videos load as a popup rather than a link that blows away your position in an enormous list * exposes the fancier .mp4 generation options: splitting at lengths other than the default, trimming to an arbitrary start and end time, including a subtitle track with timestamps. There's a slight regression in functionality: I didn't match the former top-level page which showed how much camera used of its disk allocation and the total duration of video. This is exposed in the JSON API, so it shouldn't be too hard to add back.
77 lines
2.1 KiB
TOML
77 lines
2.1 KiB
TOML
[package]
|
|
name = "moonfire-nvr"
|
|
version = "0.1.0"
|
|
authors = ["Scott Lamb <slamb@slamb.org>"]
|
|
|
|
[features]
|
|
|
|
# The nightly feature is used within moonfire-nvr itself to gate the
|
|
# benchmarks. Also pass it along to crates that can benefit from it.
|
|
nightly = ["parking_lot/nightly"]
|
|
|
|
# The bundled feature includes bundled (aka statically linked) versions of
|
|
# native libraries where possible.
|
|
bundled = ["rusqlite/bundled"]
|
|
|
|
[dependencies]
|
|
byteorder = "1.0"
|
|
docopt = "0.8"
|
|
futures = "0.1"
|
|
futures-cpupool = "0.1"
|
|
fnv = "1.0"
|
|
http-entity = { path = "../http-entity" }
|
|
http-file = { path = "../http-entity/http-file" }
|
|
#http-entity = { git = "https://github.com/scottlamb/http-entity" }
|
|
#http-file = { git = "https://github.com/scottlamb/http-entity" }
|
|
hyper = "0.11.2"
|
|
lazy_static = "0.2"
|
|
libc = "0.2"
|
|
log = { version = "0.3", features = ["release_max_level_info"] }
|
|
lru-cache = "0.1"
|
|
memmap = "0.5"
|
|
mime = "0.3"
|
|
moonfire-ffmpeg = { path = "ffmpeg" }
|
|
mylog = { git = "https://github.com/scottlamb/mylog" }
|
|
openssl = "0.9"
|
|
parking_lot = { version = "0.4", features = [] }
|
|
reffers = { git = "https://github.com/diwic/reffers-rs" }
|
|
regex = "0.2"
|
|
rusqlite = "0.12"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
smallvec = "0.4"
|
|
time = "0.1"
|
|
tokio-core = "0.1"
|
|
tokio-signal = "0.1"
|
|
url = "1.4"
|
|
uuid = { version = "0.5", features = ["serde", "v4"] }
|
|
|
|
[dev-dependencies]
|
|
reqwest = "0.7"
|
|
tempdir = "0.3"
|
|
|
|
[dependencies.cursive]
|
|
version = "0.5"
|
|
#default-features = false
|
|
#features = ["termion-backend"]
|
|
|
|
[profile.release]
|
|
debug = true
|
|
|
|
[profile.bench]
|
|
debug = true
|
|
|
|
[replace]
|
|
|
|
# This hyper fork has a patch to disable Nagle's algorithm.
|
|
"hyper:0.11.2" = { git = "https://github.com/scottlamb/hyper", branch = "moonfire-on-0.11.x" }
|
|
|
|
# The libc crate just added OS X support for clock_gettime, which Moonfire NVR
|
|
# needs. There hasn't been a release, so go straight to git for the moment.
|
|
# Do it for all platforms because [target.foo.replace] is apparently
|
|
# unsupported.
|
|
#[target.'cfg(target_os = "macos")'.replace]
|
|
#[target.x86_64-apple-darwin.replace]
|
|
"libc:0.2.31" = { git = "https://github.com/rust-lang/libc" }
|