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)
This commit is contained in:
ValHeimer 2021-04-21 18:42:42 +02:00 committed by GitHub
parent 2898e19530
commit 18ebf56c0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ bufstream = "0.1"
imap-proto = "0.14.1" imap-proto = "0.14.1"
nom = { version = "6.0", default-features = false } nom = { version = "6.0", default-features = false }
base64 = "0.13" base64 = "0.13"
chrono = { version = "0.4", default-features = false } chrono = { version = "0.4", default-features = false, features = ["std"]}
lazy_static = "1.4" lazy_static = "1.4"
[dev-dependencies] [dev-dependencies]