File tree Expand file tree Collapse file tree 10 files changed +287
-74
lines changed Expand file tree Collapse file tree 10 files changed +287
-74
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11[package ]
22name = " proc-macro-crate"
3- version = " 1.3.1 "
3+ version = " 2.0.0 "
44authors = [
" Bastian Köcher <[email protected] >" ]
55edition = " 2021"
66categories = [" development-tools::procedural-macro-helpers" ]
@@ -12,13 +12,12 @@ description = """
1212Replacement for crate (macro_rules keyword) in proc-macros
1313"""
1414readme = " ./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 "
You can’t perform that action at this time.
0 commit comments