Update dependencies.
This commit is contained in:
parent
596c67cae9
commit
200ebf40d6
31
.travis.yml
31
.travis.yml
|
@ -17,8 +17,8 @@ os:
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
rust:
|
rust:
|
||||||
- 1.13.0
|
- 1.17.0
|
||||||
- 1.14.0
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -26,30 +26,23 @@ env:
|
||||||
- ARCH=x86_64
|
- ARCH=x86_64
|
||||||
- ARCH=i686
|
- ARCH=i686
|
||||||
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- env: ARCH=i686
|
|
||||||
rust: nightly
|
|
||||||
# Note: nightly-i686 keeps failing, it seems that travis's nightly is outdated.
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
|
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
|
||||||
- SYSROOT=$(rustc --print sysroot)
|
|
||||||
- export HOST=$ARCH-$OS
|
- export HOST=$ARCH-$OS
|
||||||
- |
|
- curl -SfLO "https://static.rust-lang.org/rustup/dist/$HOST/rustup-init"
|
||||||
if [ ! -d "$SYSROOT/lib/rustlib/$HOST" ]; then
|
- chmod u+x rustup-init
|
||||||
curl -SfLO "https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz" &&
|
- ./rustup-init -y --default-host "$HOST" --default-toolchain "$TRAVIS_RUST_VERSION"
|
||||||
tar xf "rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz" "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" &&
|
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
|
||||||
mv "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" "$SYSROOT/lib/rustlib"
|
- rustc -vV
|
||||||
fi
|
- cargo -vV
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo test --target "$HOST"
|
- cargo test --no-default-features
|
||||||
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench --target "$HOST" --features bench; fi
|
- cargo test
|
||||||
|
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
|
|
||||||
- cargo install cargo-kcov
|
- cargo install cargo-kcov
|
||||||
- cargo kcov --print-install-kcov-sh | bash
|
- cargo kcov --print-install-kcov-sh | bash
|
||||||
- cargo kcov --target "$HOST" --coveralls -- --verify
|
- cargo kcov --coveralls -- --verify
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "qrcode"
|
name = "qrcode"
|
||||||
description = "QR code encoder in Rust"
|
description = "QR code encoder in Rust"
|
||||||
license = "MIT / Apache-2.0"
|
license = "MIT / Apache-2.0"
|
||||||
version = "0.2.1"
|
version = "0.3.0"
|
||||||
authors = ["kennytm <kennytm@gmail.com>"]
|
authors = ["kennytm <kennytm@gmail.com>"]
|
||||||
keywords = ["qrcode"]
|
keywords = ["qrcode"]
|
||||||
repository = "https://github.com/kennytm/qrcode-rust"
|
repository = "https://github.com/kennytm/qrcode-rust"
|
||||||
|
@ -16,8 +16,8 @@ exclude = [
|
||||||
travis-ci = { repository = "kennytm/qrcode-rust" }
|
travis-ci = { repository = "kennytm/qrcode-rust" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
num-traits = "0.1.33"
|
num-traits = "0.1"
|
||||||
image = { version = "0.12.2", optional = true }
|
image = { version = "0.13", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["image"]
|
default = ["image"]
|
||||||
|
|
Loading…
Reference in a new issue