commit 978527367f159ff3d9f90723e73cf2560c8f54b8 Author: Oliver Nordbjerg Date: Mon Sep 19 19:25:12 2022 +0200 chore: init diff --git a/.github/ci.yml b/.github/ci.yml new file mode 100644 index 000000000..44bb99e2f --- /dev/null +++ b/.github/ci.yml @@ -0,0 +1,57 @@ +on: + push: + branches: + - master + pull_request: + +env: + NEXTEST_EXPERIMENTAL_FILTER_EXPR: 1 + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true + - name: cargo test + run: cargo test --locked --workspace --all-features + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + components: rustfmt, clippy + override: true + + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true + + - name: cargo fmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all --check + + - name: cargo clippy + uses: actions-rs/clippy-check@v1 + with: + args: --all --all-features -- -D warnings + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 000000000..19c311e5f --- /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 = "reth" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..a67796ccc --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "reth" +version = "0.1.0" +edition = "2021" + +[dependencies] + +[[bin]] +path = "bin/reth.rs" +name = "reth" \ No newline at end of file diff --git a/bin/reth.rs b/bin/reth.rs new file mode 100644 index 000000000..e7a11a969 --- /dev/null +++ b/bin/reth.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ +