Cargo Features

[dependencies]
dgraph-tonic = { version = "0.11.0", default-features = false, features = ["all", "acl", "dgraph-1-0", "dgraph-1-1", "dgraph-21-03", "slash-ql", "sync", "tls", "experimental"] }
default all? = dgraph-1-1

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

all = acl, default, experimental, slash-ql, sync, tls
acl all?

Affects client::IClient.login, client::DgraphInterceptorClient, client::IClient.login_into_namespace

dgraph-1-0

Affects mutated::MutationResponse, mutated::MutationResponse

dgraph-1-1 default

Affects txn::IState.query_rdf_with_vars, txn::Query.query_rdf, txn::Query.query_rdf_with_vars, mutated::MutationResponse, mutated::Mutate.upsert, mutated::Mutate.upsert_and_commit_now, mutated::Mutate.upsert_with_vars, mutated::Mutate.upsert_with_vars_and_commit_now, txn::Query.query_rdf, txn::Query.query_rdf_with_vars, mutated::MutationResponse, mutated::UpsertMutation, mutated::Mutate.upsert, mutated::Mutate.upsert_and_commit_now, mutated::Mutate.upsert_with_vars, mutated::Mutate.upsert_with_vars_and_commit_now

dgraph-21-03

Affects client::IClient.login_into_namespace, txn::IState.query_rdf_with_vars, txn::Query.query_rdf, txn::Query.query_rdf_with_vars, mutated::MutationResponse, mutated::Mutate.upsert, mutated::Mutate.upsert_and_commit_now, mutated::Mutate.upsert_with_vars, mutated::Mutate.upsert_with_vars_and_commit_now, txn::Query.query_rdf, txn::Query.query_rdf_with_vars, mutated::MutationResponse, mutated::UpsertMutation, mutated::Mutate.upsert, mutated::Mutate.upsert_and_commit_now, mutated::Mutate.upsert_with_vars, mutated::Mutate.upsert_with_vars_and_commit_now

slash-ql all? = tls, tokio-rustls, webpki

Affects client::DgraphInterceptorClient

sync all?

Affects dgraph-tonic::sync

tls all? slash-ql?

Affects acl::AclTlsClient, acl::TxnAclTls, acl::TxnAclTlsReadOnly, acl::TxnAclTlsBestEffort, acl::TxnAclTlsMutated, acl::AclTlsClient, acl::TxnAclTls, acl::TxnAclTlsReadOnly, acl::TxnAclTlsBestEffort, acl::TxnAclTlsMutated

experimental all?

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.

tokio-rustls slash-ql?

Enables tokio-rustls ^0.23

webpki slash-ql?