1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
# See also .cargo/config
[package]
name = "riffdiff" # Actually "riff", but that was already taken on crates.io
version = "3.6.0"
authors = ["Johan Walles <johan.walles@gmail.com>"]
edition = "2018"
repository = "https://github.com/walles/riff/"
homepage = "https://github.com/walles/riff/#readme"
documentation = "https://github.com/walles/riff/#readme"
readme = "README.md"
license = "MIT"
description = "A diff filter highlighting changed line parts"
keywords = ["diff", "git"]
categories = ["command-line-utilities"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# Set binary name to "riff", even though the package is called "riffdiff" (see
# above).
#
# Ref:
# https://egghead.io/lessons/rust-rename-the-default-cargo-binary-to-be-different-than-the-package-name
[[bin]]
name = "riff"
path = "src/main.rs"
[dependencies]
similar = "2.6.0"
regex = "1"
git-version = "0.3.4"
backtrace = "0.3"
bytecount = "0.6.2"
num_cpus = "1.13.0"
threadpool = "1.8.1"
itertools = "0.10.1"
rustversion = "1.0"
clap = { version = "4.5.26", features = ["derive"] }
log = { version = "0.4", features = ["std"] }
url = "2"
once_cell = "1"
[dev-dependencies]
pretty_assertions = "0.6.1"
tempfile = "3.4.0"
base64 = "0.22.1"
# See: https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.release]
debug = 1 # 1 = Line number information only
# Benchmark execution times with different lto settings (lower is better):
# "off" : 67.5ms
# "thin": 40ms
# "fat" : 38.5ms
#
# Let's go with thin which is fast at building but still provides good
# performance.
lto = "thin"
# See: https://doc.rust-lang.org/cargo/reference/profiles.html
# Configure dependencies of the release profile
[profile.release.package."*"]
debug = 0 # 0 = No debug info
|