mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
feat: add better feature configurations
This commit is contained in:
@@ -57,6 +57,7 @@ path = "examples/repl/main.rs"
|
|||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["nightly"]
|
default = ["nightly", "ringbuf"]
|
||||||
vendored = ["native-tls/vendored", "reqwest/default-tls-vendored"]
|
vendored = ["native-tls/vendored", "reqwest/default-tls-vendored"]
|
||||||
nightly = ["pgp/nightly"]
|
nightly = ["pgp/nightly"]
|
||||||
|
ringbuf = ["pgp/ringbuf"]
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ $ cargo test --all
|
|||||||
$ cargo build -p deltachat_ffi --release
|
$ cargo build -p deltachat_ffi --release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- `vendored`: When using Openssl for TLS, this bundles a vendored version.
|
||||||
|
- `nightly`: Enable nightly only performance and security related features.
|
||||||
|
- `ringbuf`: Enable the use of [`slice_deque`](https://github.com/gnzlbg/slice_deque) in pgp.
|
||||||
|
|
||||||
[circle-shield]: https://img.shields.io/circleci/project/github/deltachat/deltachat-core-rust/master.svg?style=flat-square
|
[circle-shield]: https://img.shields.io/circleci/project/github/deltachat/deltachat-core-rust/master.svg?style=flat-square
|
||||||
[circle]: https://circleci.com/gh/deltachat/deltachat-core-rust/
|
[circle]: https://circleci.com/gh/deltachat/deltachat-core-rust/
|
||||||
[appveyor-shield]: https://ci.appveyor.com/api/projects/status/lqpegel3ld4ipxj8/branch/master?style=flat-square
|
[appveyor-shield]: https://ci.appveyor.com/api/projects/status/lqpegel3ld4ipxj8/branch/master?style=flat-square
|
||||||
|
|||||||
@@ -20,4 +20,7 @@ libc = "0.2"
|
|||||||
human-panic = "1.0.1"
|
human-panic = "1.0.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["deltachat/vendored"]
|
default = ["vendored", "nightly", "ringbuf"]
|
||||||
|
vendored = ["deltachat/vendored"]
|
||||||
|
nightly = ["deltachat/nightly"]
|
||||||
|
ringbuf = ["deltachat/ringbuf"]
|
||||||
|
|||||||
Reference in New Issue
Block a user