1
0
Fork 0
mirror of https://github.com/alemidev/scope-tui.git synced 2024-11-14 02:39:20 +01:00
scope-tui/Cargo.toml
alemi 771987063d
feat: add cpal source, refactor sources
now splitting stream in channels and parsing stream format are separate
but handled by the source, so that cpal source can skip format parsing.
added some nicer types, and also range now is +-1 because way easier
than 32k

sorry this is a huge commit, ive been messing with it for a while and
changed a lot across whole project, at this point i'm just committing it
because it can only get worse ehe
2024-03-18 03:39:49 +01:00

37 lines
1.4 KiB
TOML

[package]
name = "scope-tui"
version = "0.3.0"
edition = "2021"
authors = [ "alemi <me@alemi.dev>" ]
description = "A simple oscilloscope/vectorscope/spectroscope for your terminal"
license = "MIT"
license-file = "LICENSE"
keywords = ["cli", "tui", "audio", "visualization", "scope"]
repository = "https://git.alemi.dev/scope-tui.git"
readme = "README.md"
[dependencies]
clap = { version = "4.0.32", features = ["derive"] }
derive_more = "0.99.17"
thiserror = "1.0.48"
rustfft = "6.1.0"
# for TUI backend
ratatui = { version = "0.26", features = ["all-widgets"], optional = true }
crossterm = { version = "0.27", optional = true }
# for pulseaudio
libpulse-binding = { version = "2.0", optional = true }
libpulse-simple-binding = { version = "2.25", optional = true }
cpal = "0.15.3"
[features]
default = ["tui", "pulseaudio"]
tui = ["dep:ratatui", "dep:crossterm"]
pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]
[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! :)