From 02fdb27cc58bd7c9df8c407a4a8ad259b7eac8a8 Mon Sep 17 00:00:00 2001 From: veeso Date: Tue, 9 Nov 2021 12:13:27 +0100 Subject: [PATCH] Removed lib.rs --- .github/actions-rs/grcov.yml | 1 - .github/workflows/coverage.yml | 2 +- .github/workflows/freebsd.yml | 2 +- .github/workflows/linux.yml | 2 +- .github/workflows/macos.yml | 2 +- .github/workflows/windows.yml | 2 +- src/lib.rs | 77 ---------------------------------- src/main.rs | 1 - 8 files changed, 5 insertions(+), 84 deletions(-) delete mode 100644 src/lib.rs diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml index 2f72d6e..4fea5aa 100644 --- a/.github/actions-rs/grcov.yml +++ b/.github/actions-rs/grcov.yml @@ -7,7 +7,6 @@ ignore: - "C:/*" - "../*" - src/main.rs - - src/lib.rs - src/activity_manager.rs - src/filetransfer/transfer/s3/mod.rs - src/support.rs diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7008739..8c8753e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -24,7 +24,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --lib --no-default-features --features github-actions --features with-containers --no-fail-fast + args: --no-default-features --features github-actions --features with-containers --no-fail-fast env: CARGO_INCREMENTAL: "0" RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 2ef0c91..7ddbe79 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -19,4 +19,4 @@ jobs: /tmp/rustup.sh -y . $HOME/.cargo/env cargo build --no-default-features - cargo test --no-default-features --verbose --lib --features github-actions -- --test-threads 1 + cargo test --no-default-features --verbose --features github-actions -- --test-threads 1 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2f8c99e..de3d1c4 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -24,7 +24,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --lib --no-default-features --features github-actions --features with-containers --no-fail-fast + args: --no-default-features --features github-actions --features with-containers --no-fail-fast - name: Format run: cargo fmt --all -- --check - name: Clippy diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 169cc6f..7c90d2f 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -14,6 +14,6 @@ jobs: - name: Build run: cargo build - name: Run tests - run: cargo test --verbose --lib --features github-actions -- --test-threads 1 + run: cargo test --verbose --features github-actions -- --test-threads 1 - name: Clippy run: cargo clippy -- -Dwarnings diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index cd348d4..2879439 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,6 +14,6 @@ jobs: - name: Build run: cargo build - name: Run tests - run: cargo test --verbose --lib --features github-actions -- --test-threads 1 + run: cargo test --verbose --features github-actions -- --test-threads 1 - name: Clippy run: cargo clippy -- -Dwarnings diff --git a/src/lib.rs b/src/lib.rs deleted file mode 100644 index e6f99b6..0000000 --- a/src/lib.rs +++ /dev/null @@ -1,77 +0,0 @@ -#![doc(html_playground_url = "https://play.rust-lang.org")] -#![doc( - html_favicon_url = "https://raw.githubusercontent.com/veeso/termscp/main/assets/images/termscp-128.png" -)] -#![doc( - html_logo_url = "https://raw.githubusercontent.com/veeso/termscp/main/assets/images/termscp-512.png" -)] - -/** - * MIT License - * - * termscp - Copyright (c) 2021 Christian Visintin - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#[macro_use] -extern crate bitflags; -extern crate bytesize; -extern crate chrono; -extern crate content_inspector; -extern crate crossterm; -extern crate dirs; -extern crate edit; -extern crate hostname; -#[cfg(feature = "with-keyring")] -extern crate keyring; -#[macro_use] -extern crate lazy_static; -#[macro_use] -extern crate log; -#[macro_use] -extern crate magic_crypt; -extern crate notify_rust; -extern crate open; -#[cfg(target_os = "windows")] -extern crate path_slash; -extern crate rand; -extern crate regex; -extern crate s3; -extern crate self_update; -extern crate ssh2; -extern crate suppaftp; -extern crate tempfile; -extern crate textwrap; -extern crate tui_realm_stdlib; -extern crate tuirealm; -#[cfg(target_family = "unix")] -extern crate users; -extern crate whoami; -extern crate wildmatch; - -pub mod activity_manager; -pub mod config; -pub mod filetransfer; -pub mod fs; -pub mod host; -pub mod support; -pub mod system; -pub mod ui; -pub mod utils; diff --git a/src/main.rs b/src/main.rs index c1e37bb..8d770cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,6 @@ extern crate lazy_static; extern crate log; #[macro_use] extern crate magic_crypt; -extern crate rpassword; // External libs use argh::FromArgs;