[workspace] resolver = "3" members = ["crates/libby", "crates/libbui-core", "crates/libbui"] [workspace.package] version = "0.1.0" edition = "2024" # The oldest toolchain the locked dependency tree builds with (quantette, under # ratatui-image, needs 1.90). CI checks it in the "MSRV" job of # .github/workflows/ci.yml, which reads this line. rust-version = "1.90" license = "Apache-2.0" repository = "https://tangled.sh/@vinnymac.dev/libbui" homepage = "https://libbui.vinnymac.dev" readme = "README.md" keywords = ["libby", "overdrive", "library", "tui", "ratatui"] categories = ["command-line-utilities"] authors = ["Vincent Taverna "] [workspace.dependencies] libby = { path = "crates/libby", version = "0.1.0" } libbui-core = { path = "crates/libbui-core", version = "0.1.0" } # async runtime tokio = { version = "1.54", features = ["rt-multi-thread", "macros", "sync", "time", "signal", "fs", "io-util", "process"] } tokio-util = "0.7.20" futures-util = "0.3" # http # # TLS rides on rustls (reqwest 0.13's default) so there is no OpenSSL/system # dependency. reqwest = { version = "0.13.5", default-features = false, features = ["rustls", "http2", "json", "query", "form", "stream", "gzip", "brotli", "system-proxy", "charset", "cookies"] } url = { version = "2.5", features = ["serde"] } # serialization serde = { version = "1", features = ["derive"] } serde_json = "1" toml = "1.2" # errors thiserror = "2" color-eyre = "0.6.5" # time jiff = { version = "0.2", features = ["serde"] } # logging tracing = "0.1.44" tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } tracing-appender = "0.2.5" # tui ratatui = "0.30.2" crossterm = { version = "0.29.0", features = ["event-stream"] } tui-input = "0.15.5" unicode-width = "0.2" unicode-segmentation = "1" # misc clap = { version = "4.6", features = ["derive", "env", "wrap_help"] } directories = "6" tempfile = "3.27" secrecy = "0.10.3" async-trait = "0.1" # testing insta = "1.49" wiremock = "0.6.5" pretty_assertions = "1" [workspace.lints.rust] unsafe_code = "forbid" missing_debug_implementations = "warn" [workspace.lints.clippy] # Nothing may print to the terminal the TUI owns; logs go to the log file. print_stdout = "deny" print_stderr = "deny" dbg_macro = "deny" todo = "warn" # Crashing loudly is fine, but it must be a decision: `expect("why")` over # `unwrap()`. Tests opt out per module. unwrap_used = "deny" [profile.release] strip = true lto = "thin" codegen-units = 1 # No `panic = "abort"`: unwinding is what lets the terminal guard restore the # user's terminal on a panic. [profile.dev.package."*"] # Dependencies (image decoding, TLS) are painfully slow unoptimized. opt-level = 2