Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (61 loc) · 1.96 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (61 loc) · 1.96 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
[workspace]
resolver = "3"
members = [
"apps/origin-src",
"crates/origin-client",
"crates/origin-platform",
"crates/origin-shared",
"tools/xtask",
]
[workspace.package]
version = "0.1.0"
edition = "2024"
# The minimum supported Rust version. CI builds with it; keep it in line with
# rust-toolchain.toml until they need to differ.
rust-version = "1.99"
license = "Apache-2.0"
repository = "https://github.com/sourceorigin-dev/origin"
[workspace.dependencies]
# Internal
origin-client = { version = "0.1.0", path = "crates/origin-client" }
origin-platform = { version = "0.1.0", path = "crates/origin-platform" }
origin-shared = { version = "0.1.0", path = "crates/origin-shared" }
origin-src = { version = "0.1.0", path = "apps/origin-src" }
# External
anyhow = "1.0.104"
blake3 = "1.8.7"
clap = { version = "4.6.7", features = ["derive"] }
divan = "0.1.21"
ed25519-dalek = "3.0.0"
getrandom = "0.4.3"
reflink-copy = "0.1.30"
# Only in origin-platform. The version and features reflink-copy uses on Linux.
rustix = { version = "1.1.6", default-features = false, features = ["fs", "std"] }
serde = { version = "1.0.229", features = ["derive"] }
similar = "3.2.0"
tempfile = "3.27.0"
thiserror = "2.0.21"
toml = "1.1.8"
zstd = "0.14.3"
[workspace.lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# A module with submodules lives in `<name>/mod.rs`, beside them.
self_named_module_files = "warn"
# Line tables keep file and line numbers in backtraces but drop the variable
# and type info that makes up most of a debug build's output.
[profile.dev]
debug = "line-tables-only"
# Dependencies build without debug info: their backtrace frames are rarely
# needed, and it keeps debug builds smaller and faster.
[profile.dev.package."*"]
debug = false
[profile.release]
lto = "thin"
strip = "symbols"
# Benchmarks measure what ships.
[profile.bench]
inherits = "release"