The docs don't have any examples.
Originally I didn't do this because there's a lot of set up. But in @killercup's talk at Rust Kyiv. I've learn't that you do something like this:
/// Version get's the version info.
///```
/// # include!("src/rustdoc_helper.rs")
/// let version = Device::first_card()?.get_version();
///```
Due to the manipulation of actual system hardware, it's probably not ideal to run all doc tests.
The docs don't have any examples.
Originally I didn't do this because there's a lot of set up. But in @killercup's talk at Rust Kyiv. I've learn't that you do something like this:
Due to the manipulation of actual system hardware, it's probably not ideal to run all doc tests.