Cargo Features

[dependencies]
ssp = { version = "0.5.4", default-features = false, features = ["std", "nv200", "jsonrpc", "jsonrpc-std"] }
default = nv200

The nv200 feature is set by default whenever ssp is added without default-features = false somewhere in the dependency tree.

std jsonrpc-std? = serialport

Enables std of log, std and std_rng of rand and std of serde, serde_json, and smol-jsonrpc

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects channels::lock_channels, jsonrpc::get_socket_path, firmware::parse_firmware_file

nv200 default

Affects channels::MAX_CHANNELS

jsonrpc jsonrpc-std? = serde_json, smol-jsonrpc

Affects ssp::jsonrpc

jsonrpc-std = jsonrpc, std

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.

serialport std?
serde_json jsonrpc? std?
smol-jsonrpc jsonrpc? std?