From b055a2b3fff662ddf7f210f4a57787dc7d340933 Mon Sep 17 00:00:00 2001 From: jmcph4 Date: Fri, 24 Jan 2025 11:25:23 +1000 Subject: [PATCH] Initial commit --- .github/FUNDING.yml | 1 + .github/workflows/main.yml | 62 ++++++++++++++++++++++++++++++++++++++ .gitignore | 25 +++++++++++++++ Cargo.toml | 6 ++++ README.md | 4 +++ rustfmt.toml | 2 ++ src/main.rs | 3 ++ 7 files changed, 103 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/main.yml create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 rustfmt.toml create mode 100644 src/main.rs diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..fbbf989 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: [jmcph4] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1f02904 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,62 @@ +name: Rust + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Run build + run: cargo build --verbose + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Run tests + run: cargo test --verbose + + - name: Generate documentation + run: cargo doc --verbose + + - name: Run coverage + run: cargo install cargo-tarpaulin && cargo tarpaulin --avoid-cfg-tarpaulin # --fail-under 75 + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Run Rustfmt + run: cargo fmt -- --check + + - name: Run Clippy + run: cargo clippy --verbose + + - name: Run Cargo check + run: cargo check --verbose + + benchmark: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Run benchmarks + run: cargo bench --verbose + + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Run dependency security audit + run: cargo install cargo-audit && cargo --verbose audit + + - name: Install cargo-outdated + run: cargo install cargo-outdated + + - name: Run depedency version audit + run: cargo outdated --root-deps-only --verbose --exit-code 1 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e0ca5bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +# RustRover +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +Cargo.lock + +# Miscellaneous +msg.tmp +*.tmp +*.secret + diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..05e444d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "bundled" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..1d502e3 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# `bundled` # + +`bundled` is a lightweight server that exposes various MEV APIs. + diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..5cd3daa --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,2 @@ +max_width = 80 + diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}