Cargo Features

[dependencies]
ashares = { version = "0.1.0", default-features = false, features = ["is_sync", "tokio"] }

定义 features

default = tokio

默认启用异步接口

is_sync

Enables is_sync of maybe-async and blocking of reqwest

默认禁用异步,启用 json 支持

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 default

Enables tokio

tokio 是异步依赖,可选