-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suppaftp as workspace; cli-bin as independent pkg
- Loading branch information
Showing
27 changed files
with
185 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ ignore: | |
- "/*" | ||
- "C:/*" | ||
- "../*" | ||
- "suppaftp-cli/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: cli-bin | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./suppaftp-cli | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --package suppaftp-cli | ||
- name: Format | ||
run: cargo fmt --all -- --check | ||
- name: Clippy | ||
run: cargo clippy --package suppaftp-cli -- -Dwarnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,5 @@ | ||
[package] | ||
name = "suppaftp" | ||
version = "4.5.0" | ||
authors = ["Christian Visintin <christian.visintin1997@gmail.com>", "Matt McCoy <mattnenterprise@yahoo.com>"] | ||
edition = "2021" | ||
documentation = "https://docs.rs/suppaftp/" | ||
repository = "/~https://github.com/veeso/suppaftp" | ||
description = "A super FTP/FTPS client library for Rust" | ||
include = ["src/**/*", "cli/**/*", "LICENSE-APACHE", "LICENSE-MIT", "README.md", "CHANGELOG.md"] | ||
readme = "README.md" | ||
license = "Apache-2.0/MIT" | ||
keywords = ["ftp", "ftps", "network-protocol", "async"] | ||
categories = ["asynchronous", "network-programming"] | ||
|
||
[lib] | ||
name = "suppaftp" | ||
path = "src/lib.rs" | ||
|
||
[[bin]] | ||
name = "suppaftp" | ||
path = "cli/main.rs" | ||
required-features = ["secure", "cli-bin"] | ||
|
||
[dependencies] | ||
chrono = "^0.4" | ||
lazy-regex = "^2.3" | ||
log = "^0.4" | ||
thiserror = "^1" | ||
# async | ||
async-std = { version = "^1.10", optional = true } | ||
async-native-tls-crate = { package = "async-native-tls", version = "^0.4", optional = true } | ||
async-tls = { version = "^0.11", optional = true } | ||
pin-project = { version = "^1", optional = true } | ||
# secure | ||
native-tls-crate = { package = "native-tls", version = "^0.2", optional = true } | ||
rustls-crate = { package = "rustls", version = "^0.20", optional = true } | ||
# cli-bin | ||
env_logger = { version = "^0.9", optional = true } | ||
rpassword = { version = "5.0.1", optional = true } | ||
|
||
[dev-dependencies] | ||
async-attributes = "1.1.2" | ||
env_logger = "^0.9.0" | ||
pretty_assertions = "^1.0.0" | ||
rand = "^0.8.4" | ||
serial_test = "^0.8.0" | ||
webpki-roots = "0.22.5" | ||
|
||
[features] | ||
# Enable async support for suppaftp | ||
async = ["async-std", "pin-project"] | ||
async-default-tls = [ "async-native-tls" ] | ||
async-native-tls = [ "async-native-tls-crate", "async-secure" ] | ||
async-rustls = [ "async-tls", "async-secure" ] | ||
async-secure = [ "async" ] | ||
|
||
# Enable deprecated FTP/FTPS methods | ||
deprecated = [] | ||
|
||
# Enable support for FTPS which requires native-tls (openssl is required on Linux) or RustTLS | ||
default-tls = [ "native-tls" ] | ||
native-tls = [ "native-tls-crate", "secure" ] | ||
native-tls-vendored = [ "native-tls", "native-tls-crate/vendored" ] | ||
async-native-tls-vendored = [ "async-native-tls", "async-native-tls-crate/vendored" ] | ||
rustls = [ "rustls-crate", "secure" ] | ||
secure = [] | ||
|
||
# Disable logging | ||
no-log = [ "log/max_level_off" ] | ||
|
||
# Must be enabled whenever testing with docker containers | ||
with-containers = [] | ||
|
||
# Don't enable this feature; is used by suppaftp binary only | ||
cli-bin = [ "env_logger", "rpassword"] | ||
[workspace] | ||
members = [ | ||
"suppaftp", | ||
"suppaftp-cli" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
authors = ["Christian Visintin <christian.visintin1997@gmail.com>"] | ||
categories = ["command-line-utilities"] | ||
description = "FTP command line client, based on suppaftp" | ||
edition = "2021" | ||
homepage = "/~https://github.com/veeso/suppaftp" | ||
include = ["src/**/*", "../LICENSE", "../README.md", "../CHANGELOG.md"] | ||
keywords = ["ftp", "ftp-client", "suppaftp"] | ||
license = "MIT" | ||
name = "suppaftp-cli" | ||
readme = "../README.md" | ||
repository = "/~https://github.com/veeso/suppaftp" | ||
version = "4.5.0" | ||
|
||
[[bin]] | ||
name = "suppaftp" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
argh = "^0.1" | ||
env_logger = "^0.9" | ||
log = "^0.4" | ||
rpassword = "^5" | ||
suppaftp = { path = "../suppaftp", version = "^4.5", features = [ "native-tls" ] } |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use argh::FromArgs; | ||
|
||
#[derive(FromArgs)] | ||
#[argh( | ||
description = "Please, report issues to </~https://github.com/veeso/suppaftp> | ||
Please, consider supporting the author <https://ko-fi.com/veeso>" | ||
)] | ||
pub struct Args { | ||
#[argh(switch, short = 'D', description = "enable TRACE log level")] | ||
pub debug: bool, | ||
#[argh(switch, short = 'v', description = "verbose mode")] | ||
pub verbose: bool, | ||
#[argh(switch, short = 'V', description = "print version")] | ||
pub version: bool, | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.