[package] name = "baz-difftastic" description = "A structural diff that understands syntax. Based on difftastic, the OSS" repository = "https://github.com/baz-scm/difftastic" homepage = "https://baz.co/" license = "GPL-2.0" version = "0.53.4" authors = ["Nimrod Kor "] keywords = ["diff", "syntax"] categories = ["development-tools", "command-line-utilities", "parser-implementations"] edition = "2021" # Goal: support at least 12 months of Rust versions, and also the Rust # version on Debian stable: # https://tracker.debian.org/pkg/rustc rust-version = "1.73.0" include = [ "/build.rs", "/src/", "/vendored_parsers/highlights/*.scm", "/vendored_parsers/*-src/**/*.c", "/vendored_parsers/*-src/**/*.h", "/vendored_parsers/*-src/**/*.cc", "/LICENSE", "/README.md", ] [package.metadata.binstall] pkg-url = "{ repo }/releases/download/{ version }/difft-{ target }.{ archive-format }" [package.metadata.binstall.overrides.x86_64-pc-windows-msvc] pkg-fmt = "zip" [dependencies] # regex 1.8 requires rust 1.60. regex = "1.10.2" memchr = "2.6.4" clap = { version = "3.1.8", features = ["cargo", "env", "wrap_help"] } itertools = "0.11.0" typed-arena = "2.0.2" rustc-hash = "1.1.0" strsim = "0.10.0" lazy_static = "1.4.0" # tree-sitter 0.20.10 requires rust 1.65. tree-sitter = "0.20.9" libc = "0.2.108" log = "0.4.14" pretty_env_logger = "0.5.0" mimalloc = { version = "0.1.28", default-features = false } # Pin libmimalloc-sys due to 0.1.25 producing a huge slowdown in very # large textual files, as discussed in #297. libmimalloc-sys = "=0.1.24" radix-heap = "0.4.2" # ignore 0.4.19 requires scoped_threads, which was added in rust 1.63. ignore = ">= 0.4, < 0.4.19" # aho-corasick is a dependency of regex and ignore. In 1.1.0 it added # usage of the target feature 'neon' on aarch64, which is unstable on # rust 1.60. # # https://github.com/BurntSushi/aho-corasick/commit/0be6fe43822aeb193d8894fd1400c8b843320ef0 # https://github.com/rust-lang/rust/pull/90621#issuecomment-1068998914 aho-corasick = ">= 1.0, < 1.1.0" const_format = "0.2.22" owo-colors = "3.5.0" wu-diff = "0.1.2" rayon = "1.7.0" tree_magic_mini = "3.0.2" # bumpalo 3.12 requires rust 1.60 bumpalo = "3.11.1" unicode-width = "0.1.9" crossterm = { version = "0.27.0", features = [] } glob = "0.3.1" strum = { version = "0.25", features = ["derive"] } # hashbrown 0.13 requires rust 1.61 hashbrown = "0.14.2" humansize = "2.1.3" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" line-numbers = "0.3.0" [dev-dependencies] # assert_cmd 2.0.6 requires rust 1.60 assert_cmd = "2.0.12" # Predicates is a dependency of assert_cmd, but 2.1.2 requires rust 1.60. predicates = "3.0.4" pretty_assertions = "1.3.0" [build-dependencies] # TODO: enable parallel mode once MSRV hits 1.61, see discussion in # https://github.com/rust-lang/cc-rs/pull/849 cc = "1.0.83" rayon = "1.7.0" version_check = "0.9.4" [profile.release] lto = "thin"