Cargo Features

[dependencies]
ferrispot = { version = "0.4.2", default-features = false, features = ["async", "sync", "async_std_sleep", "tokio_sleep", "native-tls", "rustls-tls"] }
default = async, native-tls, tokio_sleep

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

async default

Enables async-trait, base64 ^0.21.0, const_format, log, rand, reqwest ^0.11.12, and sha2

async-trait:

async/sync client dependencies

Affects authorization_code::AsyncAuthorizationCodeUserClient, authorization_code::AsyncIncompleteAuthorizationCodeUserClient, authorization_code::AsyncAuthorizationCodeUserClientBuilder, implicit_grant::AsyncImplicitGrantUserClient, implicit_grant::AsyncIncompleteImplicitGrantUserClient, implicit_grant::AsyncImplicitGrantUserClientBuilder, private::BuildHttpRequestAsync, private::AccessTokenExpiryAsync, request_builder::AsyncRequestBuilder, client::AsyncSpotifyClient, client::AsyncSpotifyClientWithSecret, client::AccessTokenRefreshAsync, error::Result, error::Error, ferrispot::client

sync

Enables sha2, base64 ^0.21.0, const_format, log, and rand, blocking of reqwest ^0.11.12

Affects authorization_code::SyncAuthorizationCodeUserClient, authorization_code::SyncIncompleteAuthorizationCodeUserClient, authorization_code::SyncAuthorizationCodeUserClientBuilder, implicit_grant::SyncImplicitGrantUserClient, implicit_grant::SyncIncompleteImplicitGrantUserClient, implicit_grant::SyncImplicitGrantUserClientBuilder, private::BuildHttpRequestSync, private::AccessTokenExpirySync, request_builder::SyncRequestBuilder, client::SyncSpotifyClient, client::SyncSpotifyClientWithSecret, client::AccessTokenRefreshSync, error::Result, error::Error, ferrispot::client

async_std_sleep

Enables async-std

rate limit sleep dependencies

tokio_sleep default

Enables tokio

native-tls default

Enables native-tls of optional reqwest ^0.11.12

reqwest:

Enables native-tls specific functionality not available by default.

rustls-tls

Enables rustls-tls of optional reqwest ^0.11.12