Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (52 loc) · 1.76 KB
/
Copy pathCargo.toml
File metadata and controls
58 lines (52 loc) · 1.76 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
[workspace]
resolver = "2"
members = [
"crates/snapdir-core",
"crates/snapdir-catalog",
"crates/snapdir-stores",
"crates/snapdir-cli",
"crates/snapdir",
"crates/snapdir-ssh-store",
"benches",
]
[workspace.package]
version = "1.10.0"
edition = "2021"
rust-version = "1.91.1"
authors = ["Bermi Ferrer <bermi@bermilabs.com>"]
license = "MIT"
repository = "https://github.com/snapdir/snapdir"
homepage = "https://snapdir.org"
description = "Content-addressable directory snapshots — Rust port of snapdir."
keywords = ["snapshot", "content-addressable", "blake3", "backup"]
categories = ["command-line-utilities", "filesystem"]
[workspace.dependencies]
# Internal crates
snapdir-core = { path = "crates/snapdir-core", version = "1.10.0" }
snapdir-catalog = { path = "crates/snapdir-catalog", version = "1.10.0" }
snapdir-stores = { path = "crates/snapdir-stores", version = "1.10.0" }
# Errors: thiserror in libs, anyhow (+ context) in the bin.
thiserror = "2"
anyhow = "1"
[workspace.lints.clippy]
# clippy::pedantic at warn, low priority so targeted opt-outs below win.
pedantic = { level = "warn", priority = -1 }
# Targeted, justified opt-outs:
# - module_name_repetitions: re-exported types intentionally repeat module names.
module_name_repetitions = "allow"
# - missing_errors_doc / missing_panics_doc: deferred to the docs phase.
missing_errors_doc = "allow"
missing_panics_doc = "allow"
[profile.release]
lto = "thin"
strip = true
# Heavily-optimized release profile used for shipped binaries (see
# packaging/dist-workspace.toml `cargo-build-profile = "dist"`). cargo-dist
# builds every target with this profile; it must live at the workspace root.
[profile.dist]
inherits = "release"
lto = "fat"
codegen-units = 1
opt-level = 3
panic = "abort"
strip = true