Cargo Features

remoteit-api has no features set by default.

[dependencies]
remoteit-api = { version = "0.12.2", features = ["credentials_loader", "blocking", "async", "file_upload", "native-tls-vendored"] }
credentials_loader

Enables the credentials loader, which can be used to load remote.it credentials from a file.

Enables config and dirs

blocking

Enabled the blocking API, which is used to make blocking requests to the remote.it API.

Enables blocking of reqwest

Affects remoteit-api::api_blocking, remoteit-api::auth

async

Enables the async API, which is used to make async requests to the remote.it API.

Enables reqwest

Affects remoteit-api::api_async, remoteit-api::auth

file_upload

Enables file upload support. See https://docs.remote.it/developer-tools/device-scripting#uploading-a-script This feature on it's own does not provide the necessary functionality to upload files. You need to also enable either async or blocking.

Enables tokio and tokio-util, multipart and stream of reqwest

Affects remoteit-api::file_upload

native-tls-vendored

Enables native-tls-vendored of reqwest