rust-imap/Cargo.toml
ValHeimer 18ebf56c0c
3.0.0-alpha.3: missing 'std' feature for 'chrono' (#195)
Hi,

Since the commit 514735e920 which remove the "default features" for the dependency 'chrono', I now have this error : 

```
imap-3.0.0-alpha.3/src/client.rs:202:37
    format!(" \"{}\"", date.format("%d-%h-%Y %T %z"))
                              ^^^^ method not found in `DateTime<FixedOffset>>` 
```

So I think we have to add back the 'std' feature to 'chrono'
```
chrono = {version = "0.4", default-features = false, features = ["std"]}
```

(I know that I could add this dependency to my project Cargo.toml (and I did), but I think this should be in rust-imap)
2021-04-21 09:42:42 -07:00

50 lines
1.1 KiB
TOML

[package]
name = "imap"
version = "3.0.0-alpha.3"
authors = ["Jon Gjengset <jon@thesquareplanet.com>",
"Matt McCoy <mattnenterprise@yahoo.com>"]
documentation = "https://docs.rs/imap/"
repository = "https://github.com/jonhoo/rust-imap"
homepage = "https://github.com/jonhoo/rust-imap"
description = "IMAP client for Rust"
license = "Apache-2.0 OR MIT"
edition = "2018"
keywords = ["email", "imap"]
categories = ["email", "network-programming"]
[features]
tls = ["native-tls"]
default = ["tls"]
[dependencies]
native-tls = { version = "0.2.2", optional = true }
regex = "1.0"
bufstream = "0.1"
imap-proto = "0.14.1"
nom = { version = "6.0", default-features = false }
base64 = "0.13"
chrono = { version = "0.4", default-features = false, features = ["std"]}
lazy_static = "1.4"
[dev-dependencies]
lettre = "0.9"
lettre_email = "0.9"
rustls-connector = "0.13.0"
structopt = "0.3"
[[example]]
name = "basic"
required-features = ["default"]
[[example]]
name = "gmail_oauth2"
required-features = ["default"]
[[example]]
name = "idle"
required-features = ["default"]
[[test]]
name = "imap_integration"
required-features = ["default"]