diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-05-14 16:47:20 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-05-14 16:47:36 -0500 |
commit | 041cb7988769c1c93adfb8c47b03e77ae2a4dfa6 (patch) | |
tree | e445d8a4c27387b062afa73b78fdd34f825adf67 | |
parent | Add Go (diff) | |
download | locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.gz locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.bz2 locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.lz locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.xz locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.zst locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.zip |
Add Rust
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r-- | .github/workflows/cmake.yml | 11 | ||||
-rw-r--r-- | .github/workflows/rust.yml | 26 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | Cargo.lock | 7 | ||||
-rw-r--r-- | Cargo.toml | 6 | ||||
-rw-r--r-- | src/lib.rs | 12 |
6 files changed, 67 insertions, 2 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e1b9cb8..37f112f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -1,11 +1,18 @@ -name: CMake Builds +name: C on: push: + paths: + - "**.c" + - "**.h" pull_request: + paths: + - "**.c" + - "**.h" jobs: - build: + cmake: + name: CMake Builds runs-on: $ {{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..712eb10 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,26 @@ +name: Rust + +on: + push: + paths: + - "**.c" + - "**.h" + pull_request: + paths: + - "**.c" + - "**.h" + +jobs: + rust: + name: Rust Builds + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Test + run: cargo test --verbose @@ -137,3 +137,10 @@ go.work.sum # Added by cargo /target + + +# Added by cargo +# +# already existing elements were commented out + +#/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..7386ef7 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "locusts" +version = "1.0.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1053ed3 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "locusts" +version = "1.0.0" +edition = "2021" + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..4054f90 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,12 @@ +#![no_std] +pub fn introduce_locusts(){} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test() { + introduce_locusts(); + } +} |