Skip to content

Commit

Permalink
Added clock feature to chrono to overcome security issue with time <
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jun 14, 2023
1 parent 8809081 commit d60245b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog

- [Changelog](#changelog)
- [5.1.2](#512)
- [5.1.1](#511)
- [5.1.0](#510)
- [5.0.1](#501)
Expand All @@ -25,6 +26,12 @@

---

## 5.1.2

Released on 14/06/2023

- Added `clock` feature to chrono to overcome security issue with `time` <https://github.com/veeso/suppaftp/issues/46>

## 5.1.1

Released on 03/04/2023
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">Developed by <a href="https://veeso.github.io/">veeso</a> and <a href="https://github.com/mattnenterprise">Matt McCoy</a></p>
<p align="center">Current version: 5.1.1 (03/04/2023)</p>
<p align="center">Current version: 5.1.2 (14/06/2023)</p>

<p align="center">
<a href="https://opensource.org/licenses/MIT"
Expand Down
44 changes: 28 additions & 16 deletions suppaftp/Cargo.toml
@@ -1,12 +1,21 @@
[package]
name = "suppaftp"
version = "5.1.1"
authors = ["Christian Visintin <christian.visintin1997@gmail.com>", "Matt McCoy <mattnenterprise@yahoo.com>"]
edition = "2021"
version = "5.1.2"
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/**/*", "../LICENSE-APACHE", "../LICENSE-MIT", "../README.md", "../CHANGELOG.md"]
include = [
"src/**/*",
"../LICENSE-APACHE",
"../LICENSE-MIT",
"../README.md",
"../CHANGELOG.md",
]
readme = "../README.md"
license = "Apache-2.0/MIT"
keywords = ["ftp", "ftps", "network-protocol", "async"]
Expand All @@ -17,7 +26,7 @@ name = "suppaftp"
path = "src/lib.rs"

[dependencies]
chrono = "^0.4"
chrono = { version = "^0.4", default-features = false, features = ["clock"] }
lazy-regex = "^2.4"
log = "^0.4"
thiserror = "^1"
Expand All @@ -40,27 +49,30 @@ serial_test = "^1.0"
webpki-roots = "0.22.5"

[features]
default = [ ]
default = []
# Enable async support for suppaftp
async = ["async-std", "async-trait", "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" ]
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" ]
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" ]
no-log = ["log/max_level_off"]

# Must be enabled whenever testing with docker containers
with-containers = []

0 comments on commit d60245b

Please sign in to comment.