aboutsummaryrefslogtreecommitdiffstats
path: root/cli/template/Cargo.toml
diff options
context:
space:
mode:
authormurilo ijanc2025-11-20 17:03:54 -0300
committermurilo ijanc2025-11-20 17:03:54 -0300
commitefda331aa8bf3fb18f7cea38418e5952f02852f2 (patch)
tree9c2f8d25b5788d19fe75ba92df9b6a8ab313cd88 /cli/template/Cargo.toml
parentcd7cf0434f173b3ac135f2678ab38d1bc82f19c4 (diff)
downloadtemplates-efda331aa8bf3fb18f7cea38418e5952f02852f2.tar.gz
Add template cli
Diffstat (limited to 'cli/template/Cargo.toml')
-rw-r--r--cli/template/Cargo.toml61
1 files changed, 61 insertions, 0 deletions
diff --git a/cli/template/Cargo.toml b/cli/template/Cargo.toml
new file mode 100644
index 0000000..41f977e
--- /dev/null
+++ b/cli/template/Cargo.toml
@@ -0,0 +1,61 @@
+[package]
+name = "{{project-name}}"
+version = "0.1.0"
+
+authors = ["{{authors}}"]
+description = "{{project-description}}"
+edition = "2024"
+license = "ISC"
+
+#
+# lints
+#
+
+[lints.rust]
+absolute_paths_not_starting_with_crate = "warn"
+non_ascii_idents = "warn"
+tail_expr_drop_order = "warn"
+unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_nightly)'] }
+unit-bindings = "warn"
+unsafe_op_in_unsafe_fn = "warn"
+unused_unsafe = "warn"
+
+[lints.clippy]
+all = { level = "warn", priority = -1 }
+
+#
+# dep
+#
+
+[dependencies]
+anyhow = "=1.0.100"
+clap = { version = "=4.5.53", features = ["derive"] }
+env_logger = "=0.11.8"
+log = "=0.4.28"
+
+#
+# profiles
+#
+
+[profile.dev]
+debug = false
+
+[profile.test]
+debug = false
+
+[profile.release-with-debug]
+inherits = "release"
+strip = false
+debug = true
+
+[profile.coverage]
+inherits = "release"
+opt-level = 2
+codegen-units = 256
+lto = "thin"
+debug-assertions = true
+overflow-checks = true
+
+[profile.dev-no-debug-assertions]
+inherits = "dev"
+debug-assertions = false