1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// SPDX-License-Identifier: LGPL-2.1

//! This crate provides the LGPL source of `libftdi` for `libftdi1-sys[vendored]`.
//! If your dependency tree includes this crate, your final binary likely includes LGPL-licensed code.
//! If you're not sure whether that's acceptable for your use case, please consult your lawyer.

/// Reports the version of `libftdi` this package provides.
pub fn libftdi_version() -> String {
    return format!(
        "{}.{}",
        env!("CARGO_PKG_VERSION_MAJOR"),
        env!("CARGO_PKG_VERSION_MINOR"),
    );
}