2023-11-22 13:40:16 +00:00
|
|
|
[package]
|
|
|
|
name = "lasprs"
|
2024-04-18 16:38:35 +00:00
|
|
|
version = "0.3.0"
|
2023-11-22 13:40:16 +00:00
|
|
|
edition = "2021"
|
2023-11-22 13:52:16 +00:00
|
|
|
authors = ["J.A. de Jong <j.a.dejong@ascee.nl>"]
|
2023-11-25 13:58:20 +00:00
|
|
|
description = "Library for Acoustic Signal Processing (Rust edition, with optional Python bindings via pyo3)"
|
2023-11-22 13:52:16 +00:00
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://code.ascee.nl/ascee/lasprs"
|
|
|
|
license = "MIT OR Apache-2.0"
|
2023-11-22 13:57:25 +00:00
|
|
|
keywords = ["dsp", "audio", "measurement", "acoustics", "filter"]
|
2023-12-20 20:20:10 +00:00
|
|
|
categories = ["multimedia::audio", "science", "mathematics"]
|
2024-03-25 19:30:04 +00:00
|
|
|
|
2023-11-25 13:58:20 +00:00
|
|
|
[lib]
|
|
|
|
name = "lasprs"
|
2024-03-25 19:30:04 +00:00
|
|
|
crate-type = ["cdylib", "rlib",]
|
2023-11-22 13:40:16 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2023-12-13 10:02:06 +00:00
|
|
|
# Error handling
|
2023-11-22 13:40:16 +00:00
|
|
|
anyhow = "1.0.75"
|
2023-11-25 13:58:20 +00:00
|
|
|
|
2023-12-13 10:02:06 +00:00
|
|
|
# Numerics
|
2023-11-25 13:58:20 +00:00
|
|
|
# Optional future feature for ndarray: blas
|
|
|
|
ndarray = { version = "0.15.3", features = ["rayon"] }
|
2023-11-22 13:40:16 +00:00
|
|
|
num = "0.4.1"
|
2023-12-13 10:02:06 +00:00
|
|
|
# blas-src = { version = "0.8", features = ["openblas"] }
|
|
|
|
# openblas-src = { version = "0.10", features = ["cblas", "system"] }
|
|
|
|
|
|
|
|
# Parallel iterators
|
2023-11-22 13:40:16 +00:00
|
|
|
rayon = "1.8.0"
|
2023-12-13 10:02:06 +00:00
|
|
|
|
|
|
|
# Python bindings
|
2023-12-20 20:20:10 +00:00
|
|
|
pyo3 = { version = "0.20", optional = true, features = ["extension-module", "anyhow"]}
|
|
|
|
numpy = { version = "0.20", optional = true}
|
2023-12-13 10:02:06 +00:00
|
|
|
|
|
|
|
# White noise etc
|
2023-11-29 06:20:13 +00:00
|
|
|
rand = "0.8.5"
|
|
|
|
rand_distr = "0.4.3"
|
2023-12-13 10:02:06 +00:00
|
|
|
|
|
|
|
# Cross-platform audio lib
|
2024-04-18 16:38:35 +00:00
|
|
|
cpal = { version = "0.15.3", optional = true }
|
2023-12-13 10:02:06 +00:00
|
|
|
|
|
|
|
# Nice enumerations
|
|
|
|
strum = "0.25.0"
|
|
|
|
strum_macros = "0.25.3"
|
|
|
|
|
|
|
|
# Conditional compilation enhancements
|
|
|
|
cfg-if = "1.0.0"
|
|
|
|
|
|
|
|
# Reinterpret buffers. This is a workaround for the #[feature(specialize)] not
|
|
|
|
# being available in stable rust.
|
|
|
|
reinterpret = "0.2.1"
|
|
|
|
|
|
|
|
# Faster channels for multithreaded communication
|
|
|
|
crossbeam = "0.8.2"
|
|
|
|
|
|
|
|
# Serialization
|
|
|
|
serde = { version = "1.0.193", features = ["derive"] }
|
|
|
|
toml = "0.8.8"
|
|
|
|
|
|
|
|
# Initialize array for non-copy type
|
|
|
|
array-init = "2.1.0"
|
2023-11-22 13:40:16 +00:00
|
|
|
|
2023-12-20 20:20:10 +00:00
|
|
|
# Types of a sample
|
|
|
|
dasp_sample = "0.11.0"
|
|
|
|
|
|
|
|
# Required for recording and looking into measurements
|
|
|
|
hdf5-sys = { version = "0.8.1", features = ["static"], optional = true }
|
|
|
|
hdf5 = { version = "0.8.1", optional = true }
|
|
|
|
|
|
|
|
# Useful iterator stuff
|
|
|
|
itertools = "0.12.0"
|
|
|
|
|
|
|
|
# For getting timestamps. Only useful when recording.
|
|
|
|
chrono = {version = "0.4.31", optional = true}
|
|
|
|
# For getting UUIDs in recording
|
|
|
|
uuid = { version = "1.6.1", features = ["v4"] , optional = true}
|
2023-12-28 23:02:37 +00:00
|
|
|
|
|
|
|
# Command line argument parser, for CLI apps
|
2023-12-28 22:49:25 +00:00
|
|
|
clap = { version = "4.4.11", features = ["derive", "color", "help", "suggestions"] }
|
2023-12-20 20:20:10 +00:00
|
|
|
|
2023-11-22 13:40:16 +00:00
|
|
|
[features]
|
2024-03-25 19:30:04 +00:00
|
|
|
# default = ["f64", "cpal-api", "record"]
|
2023-12-20 20:20:10 +00:00
|
|
|
# Use this for debugging extensions
|
2024-03-25 19:30:04 +00:00
|
|
|
default = ["f64", "python-bindings", "record", "cpal-api"]
|
2023-12-20 20:20:10 +00:00
|
|
|
|
2023-12-28 22:49:25 +00:00
|
|
|
cpal-api = ["dep:cpal"]
|
2023-12-20 20:20:10 +00:00
|
|
|
record = ["dep:hdf5-sys", "dep:hdf5", "dep:chrono", "dep:uuid"]
|
2023-11-22 13:40:16 +00:00
|
|
|
f64 = []
|
|
|
|
f32 = []
|
2023-12-20 20:20:10 +00:00
|
|
|
python-bindings = ["dep:pyo3", "dep:numpy"]
|