Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (78 loc) · 2.89 KB
/
Copy pathCargo.toml
File metadata and controls
91 lines (78 loc) · 2.89 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[workspace]
resolver = "3"
members = ["odorobo", "odoroboctl"]
[workspace.package]
rust-version = "1.95.0"
[workspace.dependencies]
sentry = "0.49.3"
stable-eyre = "0.2"
clap = { version = "4", features = ["derive", "env"] }
tokio = { version = "1" }
reqwest = { version = "0.13", features = ["json"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = [
"env-filter",
"fmt",
"json",
] }
ulid = { version = "3.0", features = ["serde", "uuid"] }
bytesize = { version = "2.3", features = ["serde"] }
# our crates
odorobo = { path = "odorobo" }
fyra-proc-macros = { git = "https://github.com/FyraLabs/fyra-proc-macros" }
# fyra-proc-macros = { path = "../fyra-proc-macros/" }
# these are for performance optimizations, based on https://nnethercote.github.io/perf-book/build-configuration.html#optimization-level
# these options can take a while to compile (up to 5-10 minutes), so its really only necessary for production binaries.
# also look in .cargo/config.toml for info on microarchitecture optimizations.
[profile.release-optimized]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
# we are specifically NOT using panic = "abort" because we need to use catch_unwind for kameo actors on_panic.
# for any crates using kameo actors on_panic, this would literally break the binary.
# For specific crates/binaries this might be something we do, but I (caleb) doubt it.
# Keep symbol names in production binaries so panic backtraces remain actionable.
strip = "none"
incremental = false # this is just to get reproducible builds. incremental compiles aren't consistent and can sometimes be broken when combined with optimizations
[workspace.lints.clippy]
complexity = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
disallowed_macros = "deny"
excessive_nesting = "warn"
arithmetic_side_effects = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
create_dir = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
field_scoped_visibility_modifiers = "deny"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
impl_trait_in_params = "warn"
infinite_loop = "deny"
let_underscore_must_use = "deny"
let_underscore_untyped = "warn"
needless_raw_strings = "warn"
rc_buffer = "warn"
rc_mutex = "deny"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
semicolon_outside_block = "warn"
str_to_string = "warn"
string_lit_chars_any = "warn"
tests_outside_test_module = "warn"
todo = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unneeded_field_pattern = "warn"
unwrap_in_result = "warn"
missing_errors_doc = "allow"
needless_for_each = "allow"