-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
96 lines (81 loc) · 3.34 KB
/
Cargo.toml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[package]
name = "solrcopy"
version = "0.5.7"
edition = "2021"
authors = ["Juarez Rudsatz <[email protected]>"]
description = "Tool for backup and restore of documents stored in cores of solr"
homepage = "https://github.com/juarezr/solrcopy"
repository = "github.com:juarezr/solrcopy.git"
license = "gpl-3.0-or-later"
readme = "README.md"
categories = ["command-line-utilities"]
keywords = ["solr", "dataimport", "dih", "fulltext-search", "apache-solr"]
[dependencies]
clap = { version = "3.1.6", features = ["derive", "env"] }
regex = "1.5.4"
url = "2.2.2"
lazy_static = "1.4.0"
ureq = { version = "2.4.0", features = ["tls", "charset", "cookies", "brotli"] }
zip = { version = "0.6.0", features = ["deflate", "time"] }
indicatif = "0.16.2"
chrono = "0.4.19"
glob = "0.3.0"
log = "0.4.14"
simplelog = "0.11.2"
crossbeam-channel = "0.5.1"
crossbeam-utils = "0.8.5"
ctrlc = { version = "3.1.9", features = ["termination"] }
[build-dependencies]
clap = { version = "3.1.6", features = ["derive", "env"] }
clap_complete = "3.1.1"
regex = "1.5.4"
url = "2.2.2"
lazy_static = "1.4.0"
[badges]
travis-ci = { repository = "juarezr/solrcopy", branch = "master" }
[features]
# A feature with no dependencies used mainly for conditional compilation
# like `#[cfg(feature = "artifacts")]` or if cfg!(feature = "artifacts") {}
artifacts = []
# cargo deb: used for generating a debian package
# - https://github.com/mmstick/cargo-deb
[package.metadata.deb]
section = "utils"
priority = "optional"
changelog = "changelog.txt"
assets = [
["target/release/solrcopy", "usr/bin/", "755"],
["LICENSE", "usr/share/doc/solrcopy/", "644"],
["changelog.txt", "usr/share/doc/solrcopy/", "644"],
["README.md", "usr/share/doc/solrcopy/README", "644"],
# Shell completions are generated by running:
# $ cargo run --release --features artifacts -- --version
["target/release/solrcopy.bash", "usr/share/bash-completion/completions/solrcopy", "644"],
["target/release/solrcopy.fish", "usr/share/fish/vendor_completions.d/solrcopy.fish", "644"],
["target/release/_solrcopy", "usr/share/zsh/vendor-completions/", "644"],
]
extended-description = """\
Solrcopy is a command for doing backup and restore of documents stored on Solr \
cores. It let you filter docs by using a expression, limit quantity, define order\
and desired columns to export. The data is stored as json inside local zip files.\
It is agnostic to data format, content and storage place. \
Because of this data is restored exactly as extracted and your responsible for \
extracting, storing and updating the correct data in correct cores."""
# cargo rpm: used for generating a fedora package
# - https://github.com/RustRPM/cargo-rpm
[package.metadata.rpm.cargo]
# profile = "release"
target = "x86_64-unknown-linux-gnu"
buildflags = ["--release", "--verbose"]
[package.metadata.rpm.targets]
solrcopy = { path = "/usr/bin/solrcopy" }
# [package.metadata.rpm.files]
# "solrcopy.bash" = { path = "/usr/share/bash-completion/completions/solrcopy" }
# "solrcopy.fish" = { path = "/usr/share/fish/vendor_completions.d/solrcopy.fish" }
# "_solrcopy" = { path = "/usr/share/zsh/vendor-completions/_solrcopy" }
# TODO: man page: https://rust-cli.github.io/book/in-depth/docs.html
# [profile.release]
# # used for cargo flamegraph --bin solrcopy -- <params>
# debug = true
# # echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
# end of the file