Run with cargo run --example <example-name>.
In Cargo.toml, configure it with the following if each example needs special crate's features.
[[example]]
name = "json"
required-features = ["json", "serde/derive"]
wheres "json" is examples/json.rs.
If encounter error in package about needing to enable features, then supply --features= flags e.g. --features="json serde/derive".