Commit 177d3dc 1 parent 22e1f2c commit 177d3dc Copy full SHA for 177d3dc
File tree 2 files changed +31
-3
lines changed
2 files changed +31
-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
+ - name : Set up Rust toolchain
20
+ run : rustup update stable && rustup default stable
21
+ - name : Lint
22
+ run : task lint
23
+ - name : Build
24
+ run : cargo build --verbose
25
+ - name : Run tests
26
+ 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