Commit 6a189db 1 parent fa3c773 commit 6a189db Copy full SHA for 6a189db
File tree 2 files changed +32
-3
lines changed
2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+ on :
3
+ push :
4
+ branches : [ "master" ]
5
+ pull_request :
6
+ branches : [ "master" ]
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Install Task
15
+ uses : arduino/setup-task@v2
16
+ with :
17
+ version : 3.x
18
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
19
+ -
uses :
pre-commit/[email protected]
20
+ - name : Set up Rust toolchain
21
+ run : rustup update stable && rustup default stable
22
+ - name : Lint
23
+ run : task lint
24
+ - name : Build
25
+ run : cargo build --verbose
26
+ - name : Run tests
27
+ run : task test
Original file line number Diff line number Diff line change
1
+ ![ Build] ( https://github.com/AndreiPashkin/compose-idents/actions/workflows/build.yml/badge.svg )
2
+
1
3
# compose-idents
2
4
3
5
A procedural macro that allows to construct identifiers from one or more arbitrary parts.
4
6
5
7
## Motivation
6
8
7
- Rust's declarative macros do not allow generating new identifiers, because they are designed to operate on
8
- the syntactic level (as opposed to the lexical level) using simple pattern matching.
9
+ Rust's declarative macros do not allow generating new identifiers, because they are designed to operate on
10
+ the syntactic level (as opposed to the lexical level) using simple pattern matching.
9
11
10
- For example the following code won't work:
12
+ For example the following code won't work:
11
13
``` rust
12
14
macro_rules! my_macro {
13
15
($ name : ident ) => {
You can’t perform that action at this time.
0 commit comments