commit 4e03846cb25e167c11076c0ac0dcf7e3af17f359
Author: Sylvia Ivory <git@sivory.net>
Date: Sun, 15 Jun 2025 19:12:48 -0700
Repository Skeleton
Diffstat:
8 files changed, 79 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,9 @@
+/target
+/notes.md
+
+
+# Added by cargo
+#
+# already existing elements were commented out
+
+#/target
diff --git a/Cargo.lock b/Cargo.lock
@@ -0,0 +1,15 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "fjordgard"
+version = "0.1.0"
+
+[[package]]
+name = "fjordgard-unsplash"
+version = "0.1.0"
+
+[[package]]
+name = "fjordgard-weather"
+version = "0.1.0"
diff --git a/Cargo.toml b/Cargo.toml
@@ -0,0 +1,12 @@
+[workspace]
+members = [
+ "crates/weather",
+ "crates/unsplash"
+]
+
+[package]
+name = "fjordgard"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
diff --git a/crates/unsplash/Cargo.toml b/crates/unsplash/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "fjordgard-unsplash"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
diff --git a/crates/unsplash/src/lib.rs b/crates/unsplash/src/lib.rs
@@ -0,0 +1,14 @@
+pub fn add(left: u64, right: u64) -> u64 {
+ left + right
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ let result = add(2, 2);
+ assert_eq!(result, 4);
+ }
+}
diff --git a/crates/weather/Cargo.toml b/crates/weather/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "fjordgard-weather"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
diff --git a/crates/weather/src/lib.rs b/crates/weather/src/lib.rs
@@ -0,0 +1,14 @@
+pub fn add(left: u64, right: u64) -> u64 {
+ left + right
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ let result = add(2, 2);
+ assert_eq!(result, 4);
+ }
+}
diff --git a/src/main.rs b/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}