mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 23:25:55 -05:00
00991733f2
Benefits:
* Blake3 is faster. This is most noticeable for the hashing of the
sample file data.
* we no longer need OpenSSL, which helps with shrinking the binary size
(#70). sha1 basically forced OpenSSL usage; ring deliberately doesn't
support this old algorithm, and the pure-Rust sha1 crate is painfully
slow. OpenSSL might still be a better choice than ring/rustls for TLS
but it's nice to have the option.
For the video sample entries, I decided we don't need to hash at all. I
think the id number is sufficiently stable, and it's okay---perhaps even
desirable---if an existing init segment changes for fixes like e5b83c2
.
45 lines
1.0 KiB
TOML
45 lines
1.0 KiB
TOML
[package]
|
|
name = "moonfire-db"
|
|
version = "0.0.1"
|
|
authors = ["Scott Lamb <slamb@slamb.org>"]
|
|
readme = "../README.md"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
nightly = []
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
base = { package = "moonfire-base", path = "../base" }
|
|
base64 = "0.11.0"
|
|
blake3 = "0.2.2"
|
|
byteorder = "1.0"
|
|
cstr = "0.1.7"
|
|
failure = "0.1.1"
|
|
fnv = "1.0"
|
|
h264-reader = { git = "https://github.com/dholroyd/h264-reader" }
|
|
lazy_static = "1.0"
|
|
libc = "0.2"
|
|
libpasta = "0.1.0-rc2"
|
|
log = "0.4"
|
|
lru-cache = "0.1"
|
|
mylog = { git = "https://github.com/scottlamb/mylog" }
|
|
nix = "0.16.1"
|
|
odds = { version = "0.3.1", features = ["std-vec"] }
|
|
parking_lot = { version = "0.9", features = [] }
|
|
prettydiff = "0.3.1"
|
|
protobuf = { git = "https://github.com/stepancheg/rust-protobuf" }
|
|
regex = "1.0"
|
|
ring = "0.14.6"
|
|
rusqlite = "0.21.0"
|
|
smallvec = "1.0"
|
|
tempdir = "0.3"
|
|
time = "0.1"
|
|
uuid = { version = "0.8", features = ["std", "v4"] }
|
|
itertools = "0.8.0"
|
|
|
|
[build-dependencies]
|
|
protobuf-codegen-pure = { git = "https://github.com/stepancheg/rust-protobuf" }
|