Skip to content

Commit

Permalink
add sample rust project
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshvg committed Feb 22, 2024
1 parent e9c5204 commit 846a6e4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI Rustfmt
on: pull_request

jobs:
format:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: nightly
override: true
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: review
1 change: 1 addition & 0 deletions test_rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
8 changes: 8 additions & 0 deletions test_rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "test_rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
4 changes: 4 additions & 0 deletions test_rs/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main()
{
println!("Hello, world!");
}

0 comments on commit 846a6e4

Please sign in to comment.