diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b0241cc..5fc2e68 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -90,7 +90,8 @@ jobs: - name: Install cargo-docs-rs uses: dtolnay/install@cargo-docs-rs - name: cargo docs-rs - run: cargo docs-rs + # TODO: Once we figure out the crates, rename this. + run: cargo docs-rs -p optd-tmp hack: # cargo-hack checks combinations of feature flags to ensure that features are all additive # which is required for feature unification diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..aa9544c --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,3 @@ +[workspace] +members = ["optd-tmp"] +resolver = "2" diff --git a/optd-tmp/Cargo.toml b/optd-tmp/Cargo.toml new file mode 100644 index 0000000..60afae5 --- /dev/null +++ b/optd-tmp/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "optd-tmp" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/optd-tmp/src/lib.rs b/optd-tmp/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/optd-tmp/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); + } +}