feat: add base packages
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
ab059e7938
commit
2e5c7afb22
15
Cargo.lock
generated
Normal file
15
Cargo.lock
generated
Normal file
@ -0,0 +1,15 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "cuddle-components"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "dagger-components"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "dagger-cuddle-please"
|
||||
version = "0.1.0"
|
@ -1,4 +1,6 @@
|
||||
[workspace]
|
||||
members = [
|
||||
|
||||
"crates/cuddle-components",
|
||||
"crates/dagger-components",
|
||||
"crates/dagger-cuddle-please"
|
||||
]
|
2
crates/cuddle-components/.gitignore
vendored
Normal file
2
crates/cuddle-components/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/target
|
||||
/Cargo.lock
|
8
crates/cuddle-components/Cargo.toml
Normal file
8
crates/cuddle-components/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "cuddle-components"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
14
crates/cuddle-components/src/lib.rs
Normal file
14
crates/cuddle-components/src/lib.rs
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
8
crates/dagger-components/Cargo.toml
Normal file
8
crates/dagger-components/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "dagger-components"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
14
crates/dagger-components/src/lib.rs
Normal file
14
crates/dagger-components/src/lib.rs
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
8
crates/dagger-cuddle-please/Cargo.toml
Normal file
8
crates/dagger-cuddle-please/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "dagger-cuddle-please"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
14
crates/dagger-cuddle-please/src/lib.rs
Normal file
14
crates/dagger-cuddle-please/src/lib.rs
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user