Cargo Features

[dependencies]
m10-sdk = { version = "0.34.0", default-features = false, features = ["collections", "service", "image", "account", "contract", "client", "format"] }
default = account, client, collections, contract, format, image, service

These default features are set whenever m10-sdk is added without default-features = false somewhere in the dependency tree.

collections default
service default client = async-trait, futures-core, futures-util, m10-signing, tonic

Enables client of m10-protos

Affects m10-sdk::transaction_ext, m10-sdk::transfer_ext

image default = reqwest

Affects m10-sdk::image

account default

Affects m10-sdk::account

contract default = ring, thiserror

Affects m10-sdk::contract

client default = service, tokio, tokio-stream, tokio-tungstenite

Affects m10-sdk::error, m10-sdk::ws

format default = base64, parse-display, ron, serde_json, serde_yaml

Enables hex

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-stream client

Enables tokio-stream

ws client

tokio client
tokio-tungstenite client
reqwest image

Enables reqwest ^0.11

image

thiserror contract

Enables thiserror

contract

ring contract

Enables ring ^0.16

async-trait service

Enables async-trait

service

futures-core service
futures-util service
m10-signing service
tonic service

Enables tonic ^0.5

parse-display format

Enables parse-display ^0.5

format

base64 format

Enables base64 ^0.13

serde_json format
serde_yaml format

Enables serde_yaml ^0.8

ron format