Skip to content

Commit

Permalink
chore: Initalized project
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0X8 committed Nov 15, 2024
1 parent d379b74 commit 338e62a
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Set up Rust
uses: actions/checkout@v4
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --verbose -- -D warnings
- name: Run audit
run: cargo audit
24 changes: 24 additions & 0 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Automated Code Formatting

on:
push:
branches:
- "*"
- "*/*"
- "**"

jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: pull
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
16 changes: 16 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"recommendations": [
"github.vscode-github-actions",
"ms-vscode.hexeditor",
"wakatime.vscode-wakatime",
"github.vscode-pull-request-github",
"fill-labs.dependi",
"tamasfe.even-better-toml",
"github.remotehub",
"dustypomerleau.rust-syntax",
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb",
"usernamehw.errorlens",
"gruntfuggly.todo-tree"
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"editor.tabSize": 4,
"errorLens.enabled": true,
"errorLens.gutterIconsEnabled": true,
"errorLens.gutterIconSet": "squareRounded",
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)|todo!|unimplemented!",
"rust-analyzer.check.command": "clippy",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true,
},
}
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "hssp5"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 338e62a

Please sign in to comment.