containerd / ttrpc-rust

Rust implementation of ttrpc (GRPC for low-memory environments)
Apache License 2.0
195 stars 45 forks source link

Set dependencies of async to optional #43

Closed Tim-Zhang closed 4 years ago

Tim-Zhang commented 4 years ago

Unlike in your Rust source code, we cannot use [target.'cfg(feature = "async")'.dependencies] to add dependencies based on optional features. So we use the [features] + { optional = true } instead

Signed-off-by: Tim Zhang tim@hyper.sh