This commit is contained in:
red 2021-02-07 18:28:29 +01:00
parent 282f7995c1
commit 3733645ead
2 changed files with 22 additions and 8 deletions

17
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: CI
on: [push]
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features

View File

@ -1,6 +1,3 @@
// #[allow(unused_imports)]
// #[allow(dead_code)]
extern crate env_logger; extern crate env_logger;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
@ -10,6 +7,7 @@ use reqwest::header::CONTENT_TYPE;
use serde::de::DeserializeOwned; use serde::de::DeserializeOwned;
pub mod types; pub mod types;
use types::BasicAuth; use types::BasicAuth;
use types::SessionGet; use types::SessionGet;
use types::TorrentAction; use types::TorrentAction;
@ -373,7 +371,6 @@ impl BodyString for reqwest::RequestBuilder {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use dotenv::dotenv; use dotenv::dotenv;
use std::env; use std::env;