-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
137 lines (114 loc) · 4.96 KB
/
Cargo.toml
File metadata and controls
137 lines (114 loc) · 4.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
cargo-features = [ "codegen-backend", "profile-rustflags", "trim-paths" ]
# cargo-features = ["profile-rustflags", "trim-paths"] # required for both trimming paths and setting rustflags
# The aboe also needs the profile.dev to be uncommented to use the cranelift backend
[package]
name = "rust_template"
version = "0.1.0"
authors = [ "MrDwarf7", "Blake B. <github.com/MrDwarf7>" ]
edition = "2024"
description = "It does cool stuff!"
# license = "MIT"
license-file = "LICENSE"
readme = "README.md"
# For running the main server as a watch, call
# cargo watch -q -c -w src/ -x run
######################################################################################################################################################
######################################################################################################################################################
# [package.metadata.winresource]
# OriginalFilename = "csv_parser_rs.exe"
# FileDescription = "A CLI tool to parse a CSV file and filter out rows based on a set of criteria."
# LegalCopyright = "Copyright © 2025 by Blake B. @github.com/MrDwarf7"
# #CompanyName = "https://github.com/MrDwarf7"
#
# [target.'cfg(windows)'.build-dependencies]
# windres = "0.2"
#
# [build-dependencies]
# winresource = "0.1.19"
# windres = "0.2.2"
# winapi = { version = "0.3.9" }
######################################################################################################################################################
######################################################################################################################################################
[dependencies]
# eyre = "*"
# dotenvy = "*"
# futures = "*"
#
# clap = "*"
# anstyle = "*"
# Base dependencies/Commons
# reqwest = { version = "*", features = ["cookies", "json", "multipart", "stream"] }
# uuid = { version = "*", features = ["v4"] }
# serde = { version = "*", features = ["derive"] }
# serde_json = "*"
thiserror = "*"
# tokio = { version = "*", features = ["full", "tracing"] }
# Logging and tracing
# tracing = "*"
# tracing-subscriber = { version = "*", features = [
# "ansi",
# "chrono",
# "env-filter",
# "serde",
# "std",
# ] }
# Extra stuff
# tokio-util = { version = "*", features = ["codec"] }
# toml = "*"
# dirs = "*" # Useful to get XDG spec dirs
# Utilities
# async-trait = "*"
# static-toml = "*"
# walkdir = "*"
# chrono = "*"
# itertools = "*"
######################################################################################################################################################
######################################################################################################################################################
## See `./.cargo_options.toml` for options & brief details & directions
[profile.dev]
opt-level = 1
codegen-units = 256
incremental = true
codegen-backend = "cranelift"
debug = "line-tables-only"
debug-assertions = true
overflow-checks = true
strip = "none" # true | false | "none" | "symbols" | "debuginfo" ## Leave off @ w. THIS IS NOT OBFUSCATION.
panic = "abort" # "unwind" | "abort"
lto = "off" # "false" ### # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
trim-paths = "none"
# rustflags = ["-Zthreads=16"]
# tune-cpu = "native"
######################################################################################################################################################
[profile.release]
opt-level = 3
codegen-units = 1
incremental = false
codegen-backend = "cranelift" # May break deps.
debug = "none"
debug-assertions = false
overflow-checks = false # debatable
strip = "symbols" # true | false | "none" | "symbols" | "debuginfo" ## Leave off @ w. THIS IS NOT OBFUSCATION.
panic = "unwind"
lto = "off" # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
trim-paths = [ "diagnostics", "object" ]
# rustflags = ["-Zthreads=16"]
# tune-cpu = "native"
[profile.dev.package."*"]
inherits = "release"
codegen-backend = "cranelift" #### May break deps. for external crates
[profile.release.package."*"]
inherits = "release"
codegen-backend = "cranelift" #### May break deps. for external crates??????
######################################################################################################################################################
######################################################################################################################################################
# Lint levels / priorities/priority
# 0 = forbid
# 1 = deny
# 2 = warn
# 3 = allow
[lints.rust]
unsafe_code = { level = "forbid", priority = 0 }
# unsafe_code = "forbid"
[lints.clippy]
enum_glob_use = { level = "warn", priority = 2 }