aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template/Cargo.toml
diff options
context:
space:
mode:
authormsi2025-11-16 12:28:25 -0300
committermsi2025-11-16 12:28:25 -0300
commitcd7cf0434f173b3ac135f2678ab38d1bc82f19c4 (patch)
tree9171ea3384d62217fe29d906b43fca9ba9e693c3 /lib/template/Cargo.toml
parentc722f8281d0f19080f19928a69de950c1472cf94 (diff)
downloadtemplates-cd7cf0434f173b3ac135f2678ab38d1bc82f19c4.tar.gz
Add lib template
Diffstat (limited to 'lib/template/Cargo.toml')
-rw-r--r--lib/template/Cargo.toml58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/template/Cargo.toml b/lib/template/Cargo.toml
new file mode 100644
index 0000000..97b9054
--- /dev/null
+++ b/lib/template/Cargo.toml
@@ -0,0 +1,58 @@
+[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]
+
+
+#
+# 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