Skip to content

Commit

Permalink
Merge pull request #39 from bkchr/bkchr-2.0.0
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
bkchr authored Oct 3, 2023
2 parents 1fdce5d + 39a7c18 commit cc100ed
Show file tree
Hide file tree
Showing 10 changed files with 287 additions and 74 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@1.60.0
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all

msrv:
name: "Check MSRV: 1.66.0"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.66.0 # MSRV
- uses: Swatinem/rust-cache@v2
- name: Default features
run: cargo test --all
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
23 changes: 23 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Basic
edition = "2021"
max_width = 100
use_small_heuristics = "Max"
# Imports
imports_granularity = "Crate"
reorder_imports = true
# Consistency
newline_style = "Unix"
# Misc
chain_width = 80
spaces_around_ranges = false
binop_separator = "Back"
reorder_impl_items = false
match_arm_leading_pipes = "Preserve"
match_arm_blocks = false
match_block_trailing_comma = true
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
# Format comments
comment_width = 100
wrap_comments = true
13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proc-macro-crate"
version = "1.3.1"
version = "2.0.0"
authors = ["Bastian Köcher <git@kchr.de>"]
edition = "2021"
categories = ["development-tools::procedural-macro-helpers"]
Expand All @@ -12,13 +12,12 @@ description = """
Replacement for crate (macro_rules keyword) in proc-macros
"""
readme = "./README.md"
rust-version = "1.60.0"
rust-version = "1.66.0"

[dependencies]
toml_edit = "0.19"
once_cell = "1.13.0"
toml_edit = "0.20.2"

[dev-dependencies]
quote = "1.0.7"
syn = "1.0.33"
proc-macro2 = "1.0.18"
quote = "1.0.33"
syn = "2.0.37"
proc-macro2 = "1.0.67"
Loading

0 comments on commit cc100ed

Please sign in to comment.