-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
103 lines (92 loc) · 3.17 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
97
98
99
100
101
102
103
[workspace]
resolver = "2"
members = ["crates/flutter_bridge", "crates/crypto", "cli"]
exclude = ["flutter"]
[workspace.package]
edition = "2021"
version = "0.1.0"
rust-version = "1.80.0"
authors = ["Haled Odat <haledodat@gmail.com>"]
repository = "https://github.com/HalidOdat/stride"
license = "AGPL-3.0-or-later"
description = "An extensible task menagment application that uses git as it's data store."
[workspace.dependencies]
# Repository Crates
stride_flutter_bridge = { version = "~0.1.0", path = "crates/flutter_bridge" }
stride_crypto = { version = "~0.1.0", path = "crates/crypto" }
# Shared Dependencies
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
uuid = { version = "1.7", features = ["v7", "serde"] }
chrono = { version = "0.4", default-features = false, features = ["serde"] }
anyhow = "1.0"
git2 = { version = "0.19", default-features = false, features = [
"ssh",
"vendored-libgit2",
"vendored-openssl",
] }
base64 = "0.22"
openssl = { version = "0.10", features = ["vendored"] }
log = { version = "0.4" }
env_logger = { version = "0.11", default-features = false }
getrandom = "0.2"
zeroize = { version = "1.0", features = ["zeroize_derive"] }
dirs = "5.0"
[profile.release]
# strip = "debug"
opt-level = "z"
lto = true
codegen-units = 1
[profile.release-debug]
inherits = "release"
debug = true
strip = "none"
[workspace.lints.rust]
# rustc lint groups https://doc.rust-lang.org/rustc/lints/groups.html
warnings = "warn"
future_incompatible = { level = "warn", priority = -1 }
let_underscore = { level = "warn", priority = -1 }
nonstandard_style = { level = "warn", priority = -1 }
rust_2018_compatibility = { level = "warn", priority = -1 }
rust_2018_idioms = { level = "warn", priority = -1 }
rust_2021_compatibility = { level = "warn", priority = -1 }
unused = { level = "warn", priority = -1 }
# rustc allowed-by-default lints https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html
# missing_docs = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_abi = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "warn"
noop_method_call = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_crate_dependencies = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[workspace.lints.rustdoc]
# rustdoc lints https://doc.rust-lang.org/rustdoc/lints.html
broken_intra_doc_links = "warn"
private_intra_doc_links = "warn"
missing_crate_level_docs = "warn"
private_doc_tests = "warn"
invalid_codeblock_attributes = "warn"
invalid_rust_codeblocks = "warn"
bare_urls = "warn"
[workspace.lints.clippy]
# clippy allowed by default
dbg_macro = "warn"
# clippy categories https://doc.rust-lang.org/clippy/
all = { level = "warn", priority = -1 }
correctness = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }