lasprs 0.14.1

Library for Acoustic Signal Processing (Rust edition, with optional Python bindings via pyo3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Used to generate stub files for Pyo3
use anyhow::Result;

fn main() -> Result<()> {
    // `stub_info` is a function defined by `define_stub_info_gatherer!`
    // macro.
    cfg_select! {
        all(feature = "python-bindings", not(feature = "python-bindings-nostandalone")) => {
            let stub = lasprs::stub_info()?;
            stub.generate()?;
        },
        _ => {}
    }
    Ok(())
}