Skip to content

Commit

Permalink
add full rustfmt configuration (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl authored Jun 20, 2022
1 parent 5b88074 commit 837db5f
Show file tree
Hide file tree
Showing 8 changed files with 689 additions and 18 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Dependabot configuration file
#

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Report cargo version
run: cargo --version
- name: Report rustfmt version
Expand All @@ -28,6 +32,18 @@ jobs:
os: [ ubuntu-18.04, windows-2019, macos-10.15 ]
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
default: false
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
default: true
- name: Build
run: cargo build --tests --verbose
- name: Run tests
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
Cargo.lock
318 changes: 318 additions & 0 deletions Cargo.lock

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

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "rustfmt-wrapper"
version = "0.1.0"
version = "0.2.0"
authors = ["Adam H. Leventhal <[email protected]>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
description = "Library wrapper around rustfmt for use by code generators"
repository = "https://github.com/oxidecomputer/rustfmt-wrapper"
Expand All @@ -12,9 +12,11 @@ categories = ["development-tools",
"development-tools::procedural-macro-helpers"]

[dependencies]
toolchain_find = "0.2.0"
thiserror = "1.0.25"
serde = { version = "1", features = ["derive"] }
tempfile = "3.2.0"
thiserror = "1.0.25"
toml = "0.5.9"
toolchain_find = "0.2.0"

[dev-dependencies]
quote = "1.0.9"
Expand Down
Loading

0 comments on commit 837db5f

Please sign in to comment.