-
-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy pathCargo.toml
More file actions
73 lines (60 loc) · 2.78 KB
/
Copy pathCargo.toml
File metadata and controls
73 lines (60 loc) · 2.78 KB
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
65
66
67
68
69
70
71
72
73
[package]
name = "jscpd"
version = "5.3.2"
edition.workspace = true
publish = false
rust-version.workspace = true
description = "Copy/paste detector — fast Rust-based CLI for code duplication detection"
homepage.workspace = true
license.workspace = true
repository.workspace = true
documentation = "https://jscpd.dev"
keywords = ["duplicate-code", "clone-detection", "copy-paste", "cpd", "static-analysis"]
categories = ["command-line-utilities", "development-tools"]
exclude = ["tests/"]
[lib]
name = "jscpd"
path = "src/lib.rs"
[[bin]]
name = "cpd"
path = "src/main.rs"
[[bin]]
name = "jscpd"
path = "src/main.rs"
[dependencies]
cpd-core = { version = "0.1.18", path = "../cpd-core" }
cpd-tokenizer = { version = "0.1.17", path = "../cpd-tokenizer" }
cpd-finder = { version = "0.1.18", path = "../cpd-finder" }
cpd-reporter = { version = "0.1.19", path = "../cpd-reporter" }
basta = { version = "0.3.0", path = "../basta" }
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rayon = "1"
regex = "1"
# cargo-binstall: release assets are `jscpd-<platform-key>.tar.gz` under the
# `v{version}` GitHub release, each holding the `jscpd` binary (plus LICENSE)
# at the archive root. Keys are npm-style platform names, not target triples,
# so every supported triple gets an explicit override. `bin-dir` is a literal:
# the crate declares two bins (`cpd` and `jscpd`) but the archive ships one
# file, which binstall copies out under both names, matching `cargo install`.
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-{ target }{ archive-suffix }"
bin-dir = "jscpd{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-darwin-arm64.tar.gz"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-darwin-x64.tar.gz"
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-linux-x64-gnu.tar.gz"
[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-linux-arm64-gnu.tar.gz"
[package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-linux-x64-musl.tar.gz"
[package.metadata.binstall.overrides.aarch64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-linux-arm64-musl.tar.gz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-windows-x64-msvc.tar.gz"
[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/jscpd-windows-arm64-msvc.tar.gz"