jj/Cargo.toml

89 lines
2.4 KiB
TOML
Raw Normal View History

[package]
name = "jj-cli"
version = "0.8.0"
authors = ["Martin von Zweigbergk <martinvonz@google.com>"]
edition = "2021"
rust-version = "1.71" # Remember to update CI, and contributing.md
2021-01-03 16:45:07 +00:00
license = "Apache-2.0"
description = "Jujutsu (an experimental VCS)"
2021-01-03 16:45:07 +00:00
homepage = "https://github.com/martinvonz/jj"
repository = "https://github.com/martinvonz/jj"
documentation = "https://docs.rs/jj-cli"
2021-01-03 16:45:07 +00:00
readme = "README.md"
keywords = ["VCS", "DVCS", "SCM", "Git", "Mercurial"]
categories = ["command-line-utilities", "development-tools"]
default-run = "jj"
[[bin]]
name = "jj"
path = "src/main.rs"
2022-04-09 22:53:32 +00:00
[[bin]]
name = "fake-editor"
path = "testing/fake-editor.rs"
2022-04-01 06:44:28 +00:00
[[bin]]
name = "fake-diff-editor"
path = "testing/fake-diff-editor.rs"
[workspace]
2022-12-21 19:14:46 +00:00
members = ["lib", "lib/testutils", "lib/gen-protos"]
[build-dependencies]
cargo_metadata = "0.17.0"
[dependencies]
chrono = { version = "0.4.26", default-features = false, features = ["std", "clock"] }
clap = { version = "4.3.19", features = ["derive", "deprecated"] }
clap_complete = "4.3.2"
clap_mangen = "0.2.10"
config = { version = "0.13.3", default-features = false, features = ["toml"] }
criterion = {version = "0.5.1", optional = true }
crossterm = { version = "0.26", default-features = false }
dirs = "5.0.1"
esl01-renderdag = "0.3.0"
git2 = "0.17.2"
glob = "0.3.1"
hex = "0.4.3"
indexmap = "2.0.0"
itertools = "0.11.0"
jj-lib = { version = "=0.8.0", path = "lib", default-features = false }
maplit = "1.0.2"
once_cell = "1.18.0"
pest = "2.7.2"
pest_derive = "2.7.2"
regex = "1.9.1"
rpassword = "7.2.0"
serde = { version = "1.0", features = ["derive"] }
slab = "0.4.8"
tempfile = "3.7.0"
textwrap = "0.16.0"
thiserror = "1.0.44"
timeago = { version = "0.4.1", default-features = false }
cargo: bump the cargo-dependencies group with 7 updates Bumps the cargo-dependencies group with 7 updates: | Package | Update | | --- | --- | | [clap](https://github.com/clap-rs/clap) | 4.3.11 to 4.3.13 | | [pest](https://github.com/pest-parser/pest) | 2.7.0 to 2.7.1 | | [pest_derive](https://github.com/pest-parser/pest) | 2.7.0 to 2.7.1 | | [serde](https://github.com/serde-rs/serde) | 1.0.168 to 1.0.171 | | [toml_edit](https://github.com/toml-rs/toml) | 0.19.13 to 0.19.14 | | [insta](https://github.com/mitsuhiko/insta) | 1.30.0 to 1.31.0 | | [serde_json](https://github.com/serde-rs/json) | 1.0.102 to 1.0.103 | Updates `clap` from 4.3.11 to 4.3.13 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.3.11...v4.3.13) Updates `pest` from 2.7.0 to 2.7.1 - [Release notes](https://github.com/pest-parser/pest/releases) - [Commits](https://github.com/pest-parser/pest/compare/v2.7.0...v2.7.1) Updates `pest_derive` from 2.7.0 to 2.7.1 - [Release notes](https://github.com/pest-parser/pest/releases) - [Commits](https://github.com/pest-parser/pest/compare/v2.7.0...v2.7.1) Updates `serde` from 1.0.168 to 1.0.171 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.171) Updates `toml_edit` from 0.19.13 to 0.19.14 - [Commits](https://github.com/toml-rs/toml/compare/v0.19.13...v0.19.14) Updates `insta` from 1.30.0 to 1.31.0 - [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md) - [Commits](https://github.com/mitsuhiko/insta/compare/1.30.0...1.31.0) Updates `serde_json` from 1.0.102 to 1.0.103 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.102...v1.0.103) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: pest dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: pest_derive dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: toml_edit dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: insta dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-dependencies - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 15:55:16 +00:00
toml_edit = { version = "0.19.14", features = ["serde"] }
tracing = "0.1.37"
tracing-chrome = "0.7.1"
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["std", "ansi", "env-filter", "fmt"] }
2022-10-29 19:48:41 +00:00
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.147" }
2022-10-29 19:48:41 +00:00
[dev-dependencies]
anyhow = "1.0.72"
assert_cmd = "2.0.8"
assert_matches = "1.5.0"
cargo: bump the cargo-dependencies group with 7 updates Bumps the cargo-dependencies group with 7 updates: | Package | Update | | --- | --- | | [clap](https://github.com/clap-rs/clap) | 4.3.11 to 4.3.13 | | [pest](https://github.com/pest-parser/pest) | 2.7.0 to 2.7.1 | | [pest_derive](https://github.com/pest-parser/pest) | 2.7.0 to 2.7.1 | | [serde](https://github.com/serde-rs/serde) | 1.0.168 to 1.0.171 | | [toml_edit](https://github.com/toml-rs/toml) | 0.19.13 to 0.19.14 | | [insta](https://github.com/mitsuhiko/insta) | 1.30.0 to 1.31.0 | | [serde_json](https://github.com/serde-rs/json) | 1.0.102 to 1.0.103 | Updates `clap` from 4.3.11 to 4.3.13 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.3.11...v4.3.13) Updates `pest` from 2.7.0 to 2.7.1 - [Release notes](https://github.com/pest-parser/pest/releases) - [Commits](https://github.com/pest-parser/pest/compare/v2.7.0...v2.7.1) Updates `pest_derive` from 2.7.0 to 2.7.1 - [Release notes](https://github.com/pest-parser/pest/releases) - [Commits](https://github.com/pest-parser/pest/compare/v2.7.0...v2.7.1) Updates `serde` from 1.0.168 to 1.0.171 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.171) Updates `toml_edit` from 0.19.13 to 0.19.14 - [Commits](https://github.com/toml-rs/toml/compare/v0.19.13...v0.19.14) Updates `insta` from 1.30.0 to 1.31.0 - [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md) - [Commits](https://github.com/mitsuhiko/insta/compare/1.30.0...1.31.0) Updates `serde_json` from 1.0.102 to 1.0.103 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.102...v1.0.103) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: pest dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: pest_derive dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: toml_edit dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies - dependency-name: insta dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-dependencies - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 15:55:16 +00:00
insta = { version = "1.31.0", features = ["filters"] }
test-case = "3.1.0"
testutils = { path = "lib/testutils" }
[features]
default = []
bench = ["criterion"]
packaging = ["watchman"]
vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"]
watchman = ["jj-lib/watchman"]
feat(cargo): improve --release binary size Summary: On x86_64-linux, these options reduce the total number of bytes in the `jj` binary by 40 percent, from 16MiB to 9.8MiB, while having relatively minimal impact on build time, going from 58s to 1m15s. While `strip=debuginfo` is already the default, `codegen-units=1` is doing all the work here, and seems to have a rather miraculous effect despite not meaningfully hurting compile time too much for me at least. This actually will probably improve performance in some cases too, but it's likely hard to quantify. Ultimately, with or without this change, the dominant entity taking up most of the compile time for the whole project is `jj-lib` and `jj-cli` crates. A `--timings` report with Cargo indicates almost all dependencies (on my machine) compile within 30s whether or not this change is in play, so the remaining time is all on us. Various other changes, such as using `opt-level=z` or `lto=thin`, had no real visible effect. `lto=fat` was pretty successful, reducing total bytes by over 50% (7.8MiB), but at a nearly 2x link-time cost. It *might* be worth exploring if something like `lto=thin` could improve performance since it didn't meaningfully impact compile time or size any further, but that's TBD. Note: these numbers were performed with a wiped `target/` directory after each run, and so all dependencies were compiled from scratch, on my 12-core Ryzen 5600X. Signed-off-by: Austin Seipp <aseipp@pobox.com> Change-Id: Ioyoulrmtwxypsrwwwysyylvmqxzttkmn
2023-07-10 03:54:40 +00:00
[profile.release]
strip = "debuginfo"
codegen-units = 1