[package] name = "tmux-backup" version = "0.5.7" edition = "2021" rust-version = "1.74.0" description = "A backup & restore solution for Tmux sessions." readme = "README.md" license = "MIT OR Apache-2.0" authors = ["graelo "] repository = "https://github.com/graelo/tmux-backup" homepage = "https://github.com/graelo/tmux-backup" documentation = "https://docs.rs/tmux-backup" keywords = ["tmux", "tmux-plugin", "tmux-resurrect", "backup"] categories = ["command-line-utilities"] exclude = ["/.github"] [[bin]] name = "tmux-backup" path = "src/bin/tmux-backup.rs" [dependencies] clap = { version = "4.0.18", features = ["derive", "env"] } clap_complete = "4.0.3" thiserror = "1" regex = "1.4" itertools = "0.13" # waiting for https://doc.rust-lang.org/std/primitive.slice.html#method.group_by si-scale = "0.2" futures = "0.3" async-std = { version = "1", features = ["unstable"] } tmux-lib = { version = "0.3.0" } # archive ser/deser tempfile = "3" tar = "0.4.38" zstd = "0.13" serde = { version = "1.0", features = ["derive"] } serde_json = "1" chrono = "0.4.20" [build-dependencies] clap = { version = "4.0.18", features = ["derive"] } clap_complete = "4.0.3" [profile.release] # Enable link-time optimization (LTO). It’s a kind of whole-program or # inter-module optimization as it runs as the very last step when linking the # different parts of your binary together. You can think of it as allowing # better inlining across dependency boundaries (but it’s of course more # complicated that that). # # Rust can use multiple linker flavors, and the one we want is “optimize across # all crates”, which is called “fat”. To set this, add the lto flag to your # profile: lto = "fat" # To speed up compile times, Rust tries to split your crates into small chunks # and compile as many in parallel as possible. The downside is that there’s # less opportunities for the compiler to optimize code across these chunks. So, # let’s tell it to do one chunk per crate: codegen-units = 1 # Rust by default uses stack unwinding (on the most common platforms). That # costs performance, so let’s skip stack traces and the ability to catch panics # for reduced code size and better cache usage: panic = "abort"