Skip to content

Commit 127119c

Browse files
committed
Added re-exports for libftd2xx and ftdi
1 parent a6cd729 commit 127119c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Unreleased]
8+
### Added
9+
- Added re-exports for `libftd2xx` and `ftdi` when the respective feature is used.
10+
711
## [0.11.0] - 2022-01-18
812
### Added
913
- Added support for input pins.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FTDI device into the [embedded-hal] traits.
2626
```toml
2727
[dependencies.ftdi-embedded-hal]
2828
version = "0.11"
29-
features = ["libftd2xx-static"]
29+
features = ["libftd2xx", "libftd2xx-static"]
3030
```
3131

3232
## Limitations

src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! ```toml
2020
//! [dependencies.ftdi-embedded-hal]
2121
//! version = "0.11"
22-
//! features = ["libftd2xx-static"]
22+
//! features = ["libftd2xx", "libftd2xx-static"]
2323
//! ```
2424
//!
2525
//! # Limitations
@@ -145,6 +145,12 @@
145145
pub use embedded_hal;
146146
pub use ftdi_mpsse;
147147

148+
#[cfg(feature = "ftdi")]
149+
pub use ftdi;
150+
151+
#[cfg(feature = "libftd2xx")]
152+
pub use libftd2xx;
153+
148154
mod delay;
149155
mod error;
150156
mod gpio;

0 commit comments

Comments
 (0)