upgrade deps

Both a "cargo update" and a bump of major versions of a few deps.
I left a few alone:

* base64 because some of the deps depend on 0.11 (and 0.9), so I don't
  want to pull in a third version (0.12).
* ring because libpasta depends on this version and I don't want to pull
  in two of them.
* time because it's not trivial. Last I checked, time 0.2 couldn't even
  do what I wanted at all.

I also made tokio use parking_lot, since I pull it in anyway.
This commit is contained in:
Scott Lamb 2020-04-18 15:44:35 -07:00
parent af9e568344
commit de56739571
7 changed files with 386 additions and 405 deletions

760
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -25,9 +25,7 @@ byteorder = "1.0"
cstr = "0.1.7"
cursive = "0.14.0"
db = { package = "moonfire-db", path = "db" }
#structopt = "0.3.13"
structopt = { version = "0.3.13", features = ["default", "wrap_help"] }
# default = ["suggestions", "color", "vec_map", "derive", "std", "cargo"]
failure = "0.1.1"
ffmpeg = { package = "moonfire-ffmpeg", path = "ffmpeg" }
@ -42,19 +40,19 @@ log = { version = "0.4", features = ["release_max_level_info"] }
memchr = "2.0.2"
memmap = "0.7"
mylog = { git = "https://github.com/scottlamb/mylog" }
nix = "0.16.1"
nix = "0.17.0"
nom = "5.1.1"
openssl = "0.10"
parking_lot = { version = "0.9", features = [] }
parking_lot = { version = "0.10", features = [] }
protobuf = { git = "https://github.com/stepancheg/rust-protobuf" }
reffers = "0.6.0"
ring = "0.14.6"
rusqlite = "0.21.0"
rusqlite = "0.22.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
smallvec = "1.0"
time = "0.1"
tokio = { version = "0.2.0", features = ["blocking", "macros", "rt-threaded", "signal"] }
tokio = { version = "0.2.0", features = ["blocking", "macros", "parking_lot", "rt-threaded", "signal"] }
tokio-tungstenite = "0.10.1"
url = "2.1.1"
uuid = { version = "0.8", features = ["serde", "std", "v4"] }

View File

@ -16,6 +16,6 @@ failure = "0.1.1"
lazy_static = "1.0"
libc = "0.2"
log = "0.4"
parking_lot = { version = "0.9", features = [] }
parking_lot = { version = "0.10", features = [] }
nom = "5.1.1"
time = "0.1"

View File

@ -24,18 +24,18 @@ 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"] }
nix = "0.17.0"
odds = { version = "0.4.0", features = ["std-vec"] }
openssl = "0.10"
parking_lot = { version = "0.9", features = [] }
parking_lot = { version = "0.10", features = [] }
prettydiff = "0.3.1"
protobuf = { git = "https://github.com/stepancheg/rust-protobuf" }
rusqlite = "0.21.0"
rusqlite = "0.22.0"
smallvec = "1.0"
tempdir = "0.3"
time = "0.1"
uuid = { version = "0.8", features = ["std", "v4"] }
itertools = "0.8.0"
itertools = "0.9.0"
[build-dependencies]
protobuf-codegen-pure = { git = "https://github.com/stepancheg/rust-protobuf" }

View File

@ -1,5 +1,5 @@
// This file is part of Moonfire NVR, a security camera network video recorder.
// Copyright (C) 2019 The Moonfire NVR Authors
// Copyright (C) 2019-2020 The Moonfire NVR Authors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@ -29,8 +29,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
fn main() {
//let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR").expect("OUT_DIR"));
protobuf_codegen_pure::Args::new()
protobuf_codegen_pure::Codegen::new()
.out_dir(".")
.inputs(&["proto/schema.proto"])
.include("proto")

View File

@ -12,7 +12,7 @@ path = "lib.rs"
[dependencies]
libc = "0.2"
log = { version = "0.4", features = ["release_max_level_info"] }
parking_lot = { version = "0.9", features = [] }
parking_lot = { version = "0.10", features = [] }
[build-dependencies]
cc = "1.0"

View File

@ -112,7 +112,7 @@ fn main() {
.build();
h.clone().install().unwrap();
if let Err(e) = { let _a = h.r#async(); args.run() } {
if let Err(e) = { let _a = h.async_scope(); args.run() } {
error!("{:?}", e);
::std::process::exit(1);
}