On dashes vs. underscores in crate names:
The Rust Book says dashes: "$ cargo new my-project"
https://doc.rust-lang.org/book/ch07-01-packages-and-crates.html
Rust RFC 430 says underscores: "Crates: snake_case (but prefer single word)"
https://github.com/rust-lang/rfcs/blob/master/text/0430-finalizing-naming-conventions.md
Rust API Guidelines says ¯\_(ツ)_/¯: "Crates: unclear"
https://rust-lang.github.io/api-guidelines/naming.html
with a link to https://github.com/rust-lang/api-guidelines/issues/29
So I guess we're going with dashes.
--- /dev/null
+/target
+/Cargo.lock
--- /dev/null
+[package]
+name = "pluta-lesnura"
+version = "0.1.0"
+edition = "2021"
+authors = ["Scott Worley <scottworley@scottworley.com>"]
+description = "A cooperative game of AI notkilleveryoneism"
+license = "AGPL-3.0"
+repository = "https://git.scottworley.com/pluta-lesnura"
+
+
+[dependencies]
--- /dev/null
+pub fn add(left: usize, right: usize) -> usize {
+ left + right
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ let result = add(2, 2);
+ assert_eq!(result, 4);
+ }
+}