diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b67358 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Rust +/target/ diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..792d762 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "tta" +version = "0.0.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a5a6ee7 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,31 @@ +[workspace] +resolver = "2" +members = ["tta"] + +[workspace.package] +version = "0.0.0" +edition = "2021" + +[workspace.dependencies] + +[workspace.lints] +rust.unsafe_code = { level = "forbid", priority = 1 } +# Lint groups +rust.deprecated_safe = "warn" +rust.future_incompatible = "warn" +rust.keyword_idents = "warn" +rust.rust_2018_idioms = "warn" +rust.unused = "warn" +# Individual lints +rust.let_underscore_drop = "warn" +rust.non_local_definitions = "warn" +rust.redundant_imports = "warn" +rust.redundant_lifetimes = "warn" +rust.single_use_lifetimes = "warn" +rust.unit_bindings = "warn" +rust.unused_crate_dependencies = "warn" +rust.unused_import_braces = "warn" +rust.unused_lifetimes = "warn" +rust.unused_qualifications = "warn" +# Clippy +clippy.use_self = "warn" diff --git a/tta/Cargo.toml b/tta/Cargo.toml new file mode 100644 index 0000000..02dcb4c --- /dev/null +++ b/tta/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tta" +version = { workspace = true } +edition = { workspace = true } + +[dependencies] + +[lints] +workspace = true diff --git a/tta/src/lib.rs b/tta/src/lib.rs new file mode 100644 index 0000000..5d3957a --- /dev/null +++ b/tta/src/lib.rs @@ -0,0 +1,3 @@ +pub fn greet(name: &str) -> String { + format!("Hello {name}!") +}