Skip to content

Commit cc100ed

Browse files
authored
Merge pull request #39 from bkchr/bkchr-2.0.0
Release 2.0.0
2 parents 1fdce5d + 39a7c18 commit cc100ed

File tree

10 files changed

+287
-74
lines changed

10 files changed

+287
-74
lines changed

.github/workflows/rust.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,32 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: dtolnay/rust-toolchain@1.60.0
18+
- uses: dtolnay/rust-toolchain@stable
1919
- run: cargo test --all
20-
20+
msrv:
21+
name: "Check MSRV: 1.66.0"
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
- name: Install Rust
27+
uses: dtolnay/rust-toolchain@stable
28+
with:
29+
toolchain: 1.66.0 # MSRV
30+
- uses: Swatinem/rust-cache@v2
31+
- name: Default features
32+
run: cargo test --all
33+
rustfmt:
34+
name: rustfmt
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
- name: Install Rust
40+
uses: dtolnay/rust-toolchain@nightly
41+
with:
42+
toolchain: nightly
43+
components: rustfmt
44+
- uses: Swatinem/rust-cache@v2
45+
- name: Check formatting
46+
run: cargo fmt --all -- --check

.rustfmt.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Basic
2+
edition = "2021"
3+
max_width = 100
4+
use_small_heuristics = "Max"
5+
# Imports
6+
imports_granularity = "Crate"
7+
reorder_imports = true
8+
# Consistency
9+
newline_style = "Unix"
10+
# Misc
11+
chain_width = 80
12+
spaces_around_ranges = false
13+
binop_separator = "Back"
14+
reorder_impl_items = false
15+
match_arm_leading_pipes = "Preserve"
16+
match_arm_blocks = false
17+
match_block_trailing_comma = true
18+
trailing_comma = "Vertical"
19+
trailing_semicolon = false
20+
use_field_init_shorthand = true
21+
# Format comments
22+
comment_width = 100
23+
wrap_comments = true

Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "proc-macro-crate"
3-
version = "1.3.1"
3+
version = "2.0.0"
44
authors = ["Bastian Köcher <[email protected]>"]
55
edition = "2021"
66
categories = ["development-tools::procedural-macro-helpers"]
@@ -12,13 +12,12 @@ description = """
1212
Replacement for crate (macro_rules keyword) in proc-macros
1313
"""
1414
readme = "./README.md"
15-
rust-version = "1.60.0"
15+
rust-version = "1.66.0"
1616

1717
[dependencies]
18-
toml_edit = "0.19"
19-
once_cell = "1.13.0"
18+
toml_edit = "0.20.2"
2019

2120
[dev-dependencies]
22-
quote = "1.0.7"
23-
syn = "1.0.33"
24-
proc-macro2 = "1.0.18"
21+
quote = "1.0.33"
22+
syn = "2.0.37"
23+
proc-macro2 = "1.0.67"

0 commit comments

Comments
 (0)