Cargo Features

qasmsim = { version = "1.3.1", default-features = false, features = ["cli", "serde"] }
default = cli

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

cli default = csv, prettytable-rs, structopt

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature

With derive

csv cfg(not(target_arch = "wasm32")) cli
prettytable-rs cfg(not(target_arch = "wasm32")) cli

Enables prettytable-rs ^0.8.0

structopt cfg(not(target_arch = "wasm32")) cli