Cargo Features

dgraph = { version = "0.4.0", default-features = false, features = ["with-serde", "compile-protobufs", "openssl", "openssl-vendored"] }
default = with-serde

The with-serde feature is set by default whenever dgraph is added without default-features = false somewhere in the dependency tree.

with-serde default
compile-protobufs = protoc-grpcio

Required by the protoc binary


Enables openssl of grpcio ^0.6.0


Enables openssl-vendored of grpcio ^0.6.0

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

protoc-grpcio compile-protobufs?

Enables protoc-grpcio ^2.0.0