Cargo Features

[dependencies]
sml-rs = { version = "0.4.0", default-features = false, features = ["std", "alloc", "embedded_hal"] }
default = std

The std feature is set by default whenever sml-rs is added without default-features = false somewhere in the dependency tree.

std default = alloc

Affects util::IoReader

alloc std

Affects complete::MessageBody, parser::complete, transport::decode, util::VecBuf

embedded_hal = embedded-hal, nb

Affects util::EhReader

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.

embedded-hal embedded_hal?

Enables embedded-hal ^0.2.7

nb embedded_hal?