2022-12-24 03:04:49 +01:00
|
|
|
[package]
|
|
|
|
name = "scope-tui"
|
2023-09-18 00:57:57 +02:00
|
|
|
version = "0.3.0"
|
2022-12-24 03:04:49 +01:00
|
|
|
edition = "2021"
|
2022-12-24 06:23:18 +01:00
|
|
|
authors = [ "alemi <me@alemi.dev>" ]
|
2023-09-18 04:36:52 +02:00
|
|
|
description = "A simple oscilloscope/vectorscope/spectroscope for your terminal"
|
2024-03-16 06:21:36 +01:00
|
|
|
license = "MIT"
|
2024-03-16 15:28:22 +01:00
|
|
|
license-file = "LICENSE"
|
2024-03-16 06:35:41 +01:00
|
|
|
keywords = ["cli", "tui", "audio", "visualization", "scope"]
|
2024-03-16 06:21:36 +01:00
|
|
|
repository = "https://git.alemi.dev/scope-tui.git"
|
2022-12-24 06:23:18 +01:00
|
|
|
readme = "README.md"
|
2022-12-24 03:04:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
clap = { version = "4.0.32", features = ["derive"] }
|
2023-09-17 03:51:44 +02:00
|
|
|
derive_more = "0.99.17"
|
|
|
|
thiserror = "1.0.48"
|
2023-09-18 00:57:16 +02:00
|
|
|
rustfft = "6.1.0"
|
2024-03-18 06:12:34 +01:00
|
|
|
# cross platform audio library backend
|
|
|
|
cpal = { version = "0.15.3", optional = true }
|
2023-09-18 04:36:52 +02:00
|
|
|
# for TUI backend
|
2024-02-09 19:59:43 +01:00
|
|
|
ratatui = { version = "0.26", features = ["all-widgets"], optional = true }
|
|
|
|
crossterm = { version = "0.27", optional = true }
|
2023-09-18 04:36:52 +02:00
|
|
|
# for pulseaudio
|
|
|
|
libpulse-binding = { version = "2.0", optional = true }
|
|
|
|
libpulse-simple-binding = { version = "2.25", optional = true }
|
|
|
|
|
|
|
|
[features]
|
2024-03-18 06:12:34 +01:00
|
|
|
default = ["tui", "file", "cpal", "pulseaudio"]
|
|
|
|
file = []
|
2023-09-18 04:36:52 +02:00
|
|
|
tui = ["dep:ratatui", "dep:crossterm"]
|
2024-03-18 06:12:34 +01:00
|
|
|
cpal = ["dep:cpal"]
|
2023-09-18 04:36:52 +02:00
|
|
|
pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]
|
2024-02-09 20:19:52 +01:00
|
|
|
|
|
|
|
[profile.release] # make small binaries! will take quite longer, from https://github.com/johnthagen/min-sized-rust
|
|
|
|
opt-level = 'z' # optimize for size
|
|
|
|
lto = true # enable Link Time Optimisation: don't link unused stuff
|
|
|
|
codegen-units = 1 # reducing codegen units slows it down but allows for better optimization
|
|
|
|
panic = 'abort' # abort on panic: don't include code to show what went wrong in release
|
|
|
|
strip = "symbols" # strip symbols from binary: have fun debugging on prod! :)
|