forked from mirrors/jj
13fff3be70
Summary: This moves all dependencies across the jj-lib and jj-cli crates into the top-level Cargo file; with that, we can change each crate instead to just inherit the workspace version, with the toggled features enabled, by setting a dependency such as: dep.workspace = true in the relevant Cargo.toml file. This doesn't actually change any of the build semantics (from what I can tell) nor the lockfile, and seems to respond normally. There are more cleanups that can follow. Two notes: - Dependabot seems to work fine, based on what I've seen in other repos. - `cargo add` doesn't seem to know how to add packages to a top-level `workspace.dependencies` field; instead you can `cargo add -p jj-cli` and move the entries, at least. Signed-off-by: Austin Seipp <aseipp@pobox.com> Change-Id: I307827e5f15c0d8ea8e2a80ec793d3c7
81 lines
2 KiB
TOML
81 lines
2 KiB
TOML
[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
|
|
license = "Apache-2.0"
|
|
description = "Jujutsu (an experimental VCS)"
|
|
homepage = "https://github.com/martinvonz/jj"
|
|
repository = "https://github.com/martinvonz/jj"
|
|
documentation = "https://docs.rs/jj-cli"
|
|
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"
|
|
|
|
[[bin]]
|
|
name = "fake-editor"
|
|
path = "testing/fake-editor.rs"
|
|
|
|
[[bin]]
|
|
name = "fake-diff-editor"
|
|
path = "testing/fake-diff-editor.rs"
|
|
|
|
[build-dependencies]
|
|
cargo_metadata.workspace = true
|
|
|
|
[dependencies]
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
clap_complete.workspace = true
|
|
clap_mangen.workspace = true
|
|
config.workspace = true
|
|
criterion = { workspace = true, optional = true }
|
|
crossterm.workspace = true
|
|
dirs.workspace = true
|
|
esl01-renderdag.workspace = true
|
|
git2.workspace = true
|
|
glob.workspace = true
|
|
hex.workspace = true
|
|
indexmap.workspace = true
|
|
itertools.workspace = true
|
|
jj-lib.workspace = true
|
|
maplit.workspace = true
|
|
once_cell.workspace = true
|
|
pest.workspace = true
|
|
pest_derive.workspace = true
|
|
regex.workspace = true
|
|
rpassword.workspace = true
|
|
serde.workspace = true
|
|
slab.workspace = true
|
|
tempfile.workspace = true
|
|
textwrap.workspace = true
|
|
thiserror.workspace = true
|
|
timeago.workspace = true
|
|
toml_edit.workspace = true
|
|
tracing.workspace = true
|
|
tracing-chrome.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc.workspace = true
|
|
|
|
[dev-dependencies]
|
|
anyhow.workspace = true
|
|
assert_cmd.workspace = true
|
|
assert_matches.workspace = true
|
|
insta.workspace = true
|
|
test-case.workspace = true
|
|
testutils.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
bench = ["criterion"]
|
|
packaging = ["watchman"]
|
|
vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"]
|
|
watchman = ["jj-lib/watchman"]
|