Debian Codegraph @

cli/Cargo.toml

raw
1 [package]
2 name = "jj-cli"
3 description = "Jujutsu - an experimental version control system"
4 default-run = "jj"
5 autotests = false
6
7 version = { workspace = true }
8 edition = { workspace = true }
9 rust-version = { workspace = true }
10 license = { workspace = true }
11 homepage = { workspace = true }
12 repository = { workspace = true }
13 documentation = { workspace = true }
14 keywords = { workspace = true }
15
16 include = [
17 "/LICENSE",
18 "/build.rs",
19 "/examples/",
20 "/src/",
21 "/docs/**",
22 "/testing/",
23 "/tests/",
24 "!*.pending-snap",
25 "!*.snap*",
26 "/tests/[email protected]",
27 ]
28
29 [[bin]]
30 name = "jj"
31 path = "src/main.rs"
32
33 [[bin]]
34 name = "fake-bisector"
35 path = "testing/fake-bisector.rs"
36 required-features = ["test-fakes"]
37
38 [[bin]]
39 name = "fake-echo"
40 path = "testing/fake-echo.rs"
41 required-features = ["test-fakes"]
42
43 [[bin]]
44 name = "fake-editor"
45 path = "testing/fake-editor.rs"
46 required-features = ["test-fakes"]
47
48 [[bin]]
49 name = "fake-diff-editor"
50 path = "testing/fake-diff-editor.rs"
51 required-features = ["test-fakes"]
52
53 [[bin]]
54 name = "fake-formatter"
55 path = "testing/fake-formatter.rs"
56 required-features = ["test-fakes"]
57
58 [[test]]
59 name = "runner"
60
61 [[test]]
62 name = "datatest_runner"
63 harness = false
64
65 [dependencies]
66 ansi-to-tui = { workspace = true }
67 bstr = { workspace = true }
68 chrono = { workspace = true }
69 clap = { workspace = true }
70 clap-markdown = { workspace = true }
71 clap_complete = { workspace = true }
72 clap_complete_nushell = { workspace = true }
73 clap_mangen = { workspace = true }
74 criterion = { workspace = true, optional = true }
75 crossterm = { workspace = true }
76 ctrlc = { workspace = true }
77 dunce = { workspace = true }
78 erased-serde = { workspace = true }
79 etcetera = { workspace = true }
80 futures = { workspace = true }
81 gix = { workspace = true, optional = true }
82 globset = { workspace = true }
83 indexmap = { workspace = true }
84 indoc = { workspace = true }
85 itertools = { workspace = true }
86 jj-lib = { workspace = true }
87 maplit = { workspace = true }
88 mimalloc = { workspace = true }
89 once_cell = { workspace = true }
90 pest = { workspace = true }
91 pest_derive = { workspace = true }
92 pollster = { workspace = true }
93 rand = { workspace = true }
94 rand_chacha = { workspace = true }
95 regex = { workspace = true }
96 ratatui = { workspace = true }
97 rpassword = { workspace = true }
98 sapling-renderdag = { workspace = true }
99 sapling-streampager = { workspace = true }
100 scm-record = { workspace = true }
101 serde = { workspace = true }
102 serde_json = { workspace = true }
103 shlex = { workspace = true }
104 slab = { workspace = true }
105 tempfile = { workspace = true }
106 textwrap = { workspace = true }
107 tokio = { workspace = true }
108 thiserror = { workspace = true }
109 timeago = { workspace = true }
110 toml = { workspace = true }
111 toml_edit = { workspace = true }
112 tracing = { workspace = true }
113 tracing-chrome = { workspace = true }
114 tracing-subscriber = { workspace = true }
115 unicode-width = { workspace = true }
116 whoami = { workspace = true }
117 percent-encoding = { workspace = true }
118
119 [target.'cfg(unix)'.dependencies]
120 libc = { workspace = true }
121 nix = { workspace = true, features = [ "signal" ] }
122
123 [dev-dependencies]
124 anstream = { workspace = true }
125 assert_cmd = { workspace = true }
126 assert_matches = { workspace = true }
127 async-trait = { workspace = true }
128 datatest-stable = { workspace = true }
129 insta = { workspace = true }
130 jsonschema = { workspace = true }
131 proptest = { workspace = true }
132 proptest-state-machine = { workspace = true }
133 test-case = { workspace = true }
134 testutils = { workspace = true }
135 # https://github.com/rust-lang/cargo/issues/2911#issuecomment-1483256987
136 jj-cli = { path = ".", features = ["test-fakes"], default-features = false }
137
138 [features]
139 default = ["watchman", "git"]
140 bench = ["dep:criterion"]
141 git = ["jj-lib/git", "dep:gix"]
142 test-fakes = ["jj-lib/testing"]
143 watchman = ["jj-lib/watchman"]
144
145 [package.metadata.binstall]
146 # The archive name is jj, not jj-cli. Also, `cargo binstall` gets
147 # confused by the `v` before versions in archive name.
148 pkg-url = "{ repo }/releases/download/v{ version }/jj-v{ version }-{ target }.{ archive-format }"
149
150 [lints]
151 workspace = true
152
153 [package.metadata.deb]
154 # Install `cargo-deb` and run `cargo deb` to create a package in `target/debian/`
155 name = "jj"
156 maintainer = "Unspecified Debian Maintainer <[email protected]>"
157 copyright = "Copyright 2025 The Jujutsu Authors"
158 license-file = "LICENSE"
159 section = "vcs"
160 priority = "optional"
161 extended-description = "Distributed Version Control System inspired by Git, Mercurial and Darcs."
162 assets = [
163 { source = "docs/*", dest = "usr/share/doc/jj/", mode = "644" },
164 # TODO: It'd be nice to package the output of `MKDOCS_OFFLINE=true uv run mkdocs build` in the docs dir as well, but this is not trivial.
165 { source = "docs/*/*", dest = "usr/share/doc/jj/", mode = "644" },
166 { source = "target/release/jj", dest = "usr/bin/", mode = "755" },
167 ]
168 default-features = true