Merge branch 'master' into auth

This commit is contained in:
Scott Lamb 2018-11-20 11:10:47 -08:00
commit 61af963a64
7 changed files with 635 additions and 628 deletions

View File

@ -27,7 +27,7 @@ matrix:
script: script:
- ci/script-rust.sh - ci/script-rust.sh
- language: rust - language: rust
rust: 1.27.0 rust: 1.30.0
env: FFMPEG_VERSION=3.4.4 env: FFMPEG_VERSION=3.4.4
install: install:
- ci/install-ffmpeg.sh - ci/install-ffmpeg.sh

1243
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -30,14 +30,14 @@ hyper = "0.12.9"
lazy_static = "1.0" lazy_static = "1.0"
libc = "0.2" libc = "0.2"
log = { version = "0.4", features = ["release_max_level_info"] } log = { version = "0.4", features = ["release_max_level_info"] }
memmap = "0.6" memmap = "0.7"
moonfire-base = { path = "base" } moonfire-base = { path = "base" }
moonfire-db = { path = "db" } moonfire-db = { path = "db" }
moonfire-ffmpeg = { path = "ffmpeg" } moonfire-ffmpeg = { path = "ffmpeg" }
mylog = { git = "https://github.com/scottlamb/mylog" } mylog = { git = "https://github.com/scottlamb/mylog" }
openssl = "0.10" openssl = "0.10"
parking_lot = { version = "0.6", features = [] } parking_lot = { version = "0.6", features = [] }
reffers = { git = "https://github.com/diwic/reffers-rs" } reffers = "0.5.1"
regex = "1.0" regex = "1.0"
rusqlite = "0.14" rusqlite = "0.14"
serde = "1.0" serde = "1.0"
@ -51,7 +51,7 @@ url = "1.4"
uuid = { version = "0.6", features = ["serde", "std", "v4"] } uuid = { version = "0.6", features = ["serde", "std", "v4"] }
[dev-dependencies] [dev-dependencies]
reqwest = "0.8" reqwest = "0.9.5"
tempdir = "0.3" tempdir = "0.3"
[dependencies.cursive] [dependencies.cursive]

View File

@ -45,7 +45,7 @@ all non-Rust dependencies:
pkgconf \ pkgconf \
tzdata tzdata
Next, you need Rust 1.27+ and Cargo. The easiest way to install them is by Next, you need Rust 1.30+ and Cargo. The easiest way to install them is by
following the instructions at [rustup.rs](https://www.rustup.rs/). following the instructions at [rustup.rs](https://www.rustup.rs/).
Finally, building the UI requires [yarn](https://yarnpkg.com/en/). Finally, building the UI requires [yarn](https://yarnpkg.com/en/).

View File

@ -40,7 +40,7 @@ fi
NODE_MIN_VERSION="8" NODE_MIN_VERSION="8"
YARN_MIN_VERSION="1.0" YARN_MIN_VERSION="1.0"
CARGO_MIN_VERSION="0.2" CARGO_MIN_VERSION="0.2"
RUSTC_MIN_VERSION="1.27" RUSTC_MIN_VERSION="1.30"
FFMPEG_MIN_VERSION="55.1.101" FFMPEG_MIN_VERSION="55.1.101"
FFMPEG_RELEASE_VERSION="3.4" FFMPEG_RELEASE_VERSION="3.4"

View File

@ -1456,7 +1456,7 @@ impl FileInner {
let start = s.s.sample_file_range().start + r.start; let start = s.s.sample_file_range().start + r.start;
let mmap = Box::new(unsafe { let mmap = Box::new(unsafe {
memmap::MmapOptions::new() memmap::MmapOptions::new()
.offset(start as usize) .offset(start)
.len((r.end - r.start) as usize) .len((r.end - r.start) as usize)
.map(&f)? .map(&f)?
}); });
@ -2204,6 +2204,7 @@ mod bench {
use db::testutil::{self, TestDb}; use db::testutil::{self, TestDb};
use futures::{Future, future}; use futures::{Future, future};
use hyper; use hyper;
use http::header;
use http_serve; use http_serve;
use self::test::Bencher; use self::test::Bencher;
use std::error::Error as StdError; use std::error::Error as StdError;
@ -2298,10 +2299,9 @@ mod bench {
b.bytes = p; b.bytes = p;
let client = reqwest::Client::new(); let client = reqwest::Client::new();
let mut run = || { let mut run = || {
use self::reqwest::header::{Range, ByteRangeSpec};
let mut resp = let mut resp =
client.get(server.url.clone()) client.get(server.url.clone())
.header(Range::Bytes(vec![ByteRangeSpec::FromTo(0, p - 1)])) .header(header::RANGE, format!("bytes=0-{}", p - 1))
.send() .send()
.unwrap(); .unwrap();
buf.clear(); buf.clear();

View File

@ -621,7 +621,7 @@ mod bench {
let client = reqwest::Client::new(); let client = reqwest::Client::new();
let mut f = || { let mut f = || {
let mut resp = client.get(url.clone()).send().unwrap(); let mut resp = client.get(url.clone()).send().unwrap();
assert_eq!(resp.status(), reqwest::StatusCode::Ok); assert_eq!(resp.status(), reqwest::StatusCode::OK);
buf.clear(); buf.clear();
use std::io::Read; use std::io::Read;
resp.read_to_end(&mut buf).unwrap(); resp.read_to_end(&mut buf).unwrap();