From 30139c91bc09cf6807eb882e8fd87e9722162054 Mon Sep 17 00:00:00 2001 From: Douman Date: Wed, 5 Aug 2020 09:53:03 +0200 Subject: [PATCH] 0.16.3: Update deps and CI --- .rustfmt.toml | 6 ------ .travis.yml | 11 +++++++++-- Cargo.toml | 4 ++-- Cross.toml | 12 ++++++++++++ README.md | 8 ++++---- 5 files changed, 27 insertions(+), 14 deletions(-) delete mode 100644 .rustfmt.toml create mode 100644 Cross.toml diff --git a/.rustfmt.toml b/.rustfmt.toml deleted file mode 100644 index ccde041..0000000 --- a/.rustfmt.toml +++ /dev/null @@ -1,6 +0,0 @@ -binop_separator = "Back" -wrap_comments = false -imports_indent = "Block" -match_block_trailing_comma = true -max_width = 180 -normalize_comments = true diff --git a/.travis.yml b/.travis.yml index a511176..1dbfa98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,14 +14,21 @@ matrix: rust: stable env: TARGET=x86_64-unknown-linux-gnu cache: cargo + - os: linux + rust: stable + env: TARGET=x86_64-unknown-linux-musl + cache: cargo sudo: false +install: + - cargo install cross || true + script: - - cargo test --features cli --target $TARGET + - cargo test --features cli before_deploy: - - cargo build --release --features cli --target $TARGET + - cross build --release --features cli --target $TARGET - zip "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.zip" -j target/$TARGET/release/fie fie.toml deploy: diff --git a/Cargo.toml b/Cargo.toml index e3c1e93..3623845 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fie" -version = "0.16.2" +version = "0.16.3" authors = ["Douman "] repository = "https://github.com/DoumanAsh/fie" description = "Small and cute social media utility." @@ -49,7 +49,7 @@ serde_derive = "1" mime_guess = "2" toml = { version = "0.5", optional = true } -dirs = { version = "2", optional = true } +dirs = { version = "3", optional = true } futures-util = { version = "0.3" } diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..7113419 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,12 @@ +[build.env] +passthrough = [ + "FIE_TWITTER_CONSUMER_KEY", + "FIE_TWITTER_CONSUMER_SECRET", + "RUSTFLAGS", +] + +[target.x86_64-unknown-linux-musl] +image = "douman/cross-x86_64-unknown-linux-musl" + +[target.armv7-unknown-linux-musleabihf] +image = "douman/cross-armv7-unknown-linux-musleabihf:latest" diff --git a/README.md b/README.md index ff5ed21..fafb9d2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build status](https://ci.appveyor.com/api/projects/status/oc937oppd38x1y4y/branch/master?svg=true)](https://ci.appveyor.com/project/DoumanAsh/fie/branch/master) [![Build Status](https://travis-ci.org/DoumanAsh/fie.svg?branch=master)](https://travis-ci.org/DoumanAsh/fie) [![Crates.io](https://img.shields.io/crates/v/fie.svg)](https://crates.io/crates/fie) -[![Dependency status](https://deps.rs/crate/fie/0.16.2/status.svg)](https://deps.rs/crate/fie) +[![Dependency status](https://deps.rs/crate/fie/0.16.3/status.svg)](https://deps.rs/crate/fie) Small and cute social media CLI. @@ -13,9 +13,9 @@ Small and cute social media CLI. ### Download links -* Windows [64bit](https://github.com/DoumanAsh/fie/releases/download/0.16.1/fie-0.16.1-x86_64-pc-windows-msvc.zip) -* Linux [64bit](https://github.com/DoumanAsh/fie/releases/download/0.16.1/fie-0.16.1-x86_64-unknown-linux-gnu.zip) -* OSX [64bit](https://github.com/DoumanAsh/fie/releases/download/0.16.1/fie-0.16.1-x86_64-apple-darwin.zip) +* Windows [64bit](https://github.com/DoumanAsh/fie/releases/download/0.16.3/fie-0.16.3-x86_64-pc-windows-msvc.zip) +* Linux [64bit](https://github.com/DoumanAsh/fie/releases/download/0.16.3/fie-0.16.3-x86_64-unknown-linux-gnu.zip) +* OSX [64bit](https://github.com/DoumanAsh/fie/releases/download/0.16.3/fie-0.16.3-x86_64-apple-darwin.zip) ### Cargo