Skip to content

Commit ae7fa48

Browse files
authored
chore: update templates for cargo-generate 0.23.0 (#95)
1 parent f12c85e commit ae7fa48

File tree

12 files changed

+34
-30
lines changed

12 files changed

+34
-30
lines changed

component-generated/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "component-generated"
33
version = "0.1.0"
44
edition = "2021"
55
description = "An example generated using the component template"
6-
authors = ["Josh McKinney <[email protected].com>"]
6+
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
77
build = "build.rs"
88

99

@@ -12,12 +12,12 @@ build = "build.rs"
1212
[dependencies]
1313
better-panic = "0.3.0"
1414
clap = { version = "4.5.20", features = [
15-
"derive",
16-
"cargo",
17-
"wrap_help",
18-
"unicode",
19-
"string",
20-
"unstable-styles",
15+
"derive",
16+
"cargo",
17+
"wrap_help",
18+
"unicode",
19+
"string",
20+
"unstable-styles",
2121
] }
2222
color-eyre = "0.6.3"
2323
config = "0.14.0"

component-generated/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Josh McKinney <[email protected].com>
3+
Copyright (c) 2024 Orhun Parmaksız <orhunparmaksiz@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

component-generated/src/errors.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@ pub fn init() -> Result<()> {
5656
/// this can be customized.
5757
#[macro_export]
5858
macro_rules! trace_dbg {
59-
(target: $target:expr, level: $level:expr, $ex:expr) => {{
59+
(target: $target:expr, level: $level:expr, $ex:expr) => {
60+
{
6061
match $ex {
6162
value => {
6263
tracing::event!(target: $target, $level, ?value, stringify!($ex));
6364
value
6465
}
6566
}
66-
}};
67+
}
68+
};
6769
(level: $level:expr, $ex:expr) => {
6870
trace_dbg!(target: module_path!(), level: $level, $ex)
6971
};

component/template/src/errors.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@ pub fn init() -> Result<()> {
5656
/// this can be customized.
5757
#[macro_export]
5858
macro_rules! trace_dbg {
59-
(target: $target:expr, level: $level:expr, $ex:expr) => {{
59+
(target: $target:expr, level: $level:expr, $ex:expr) => {
60+
{
6061
match $ex {
6162
value => {
6263
tracing::event!(target: $target, $level, ?value, stringify!($ex));
6364
value
6465
}
6566
}
66-
}};
67+
}
68+
};
6769
(level: $level:expr, $ex:expr) => {
6870
trace_dbg!(target: module_path!(), level: $level, $ex)
6971
};

event-driven-async/template/.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
1515
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
group: {% raw %}${{ github.workflow }}-${{ github.head_ref || github.run_id }}{% endraw %}
1818
cancel-in-progress: true
1919

2020
jobs:
@@ -63,8 +63,8 @@ jobs:
6363
env:
6464
RUSTDOCFLAGS: --cfg docsrs
6565
test:
66-
runs-on: ${{ matrix.os }}
67-
name: test ${{ matrix.os }}
66+
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
67+
name: test {% raw %}${{ matrix.os }}{% endraw %}
6868
strategy:
6969
fail-fast: false
7070
matrix:

event-driven/template/.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
1515
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
group: {% raw %}${{ github.workflow }}-${{ github.head_ref || github.run_id }}{% endraw %}
1818
cancel-in-progress: true
1919

2020
jobs:
@@ -63,8 +63,8 @@ jobs:
6363
env:
6464
RUSTDOCFLAGS: --cfg docsrs
6565
test:
66-
runs-on: ${{ matrix.os }}
67-
name: test ${{ matrix.os }}
66+
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
67+
name: test {% raw %}${{ matrix.os }}{% endraw %}
6868
strategy:
6969
fail-fast: false
7070
matrix:

hello-world-generated/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "hello-world-generated"
33
version = "0.1.0"
4-
authors = ["Josh McKinney <[email protected].com>"]
4+
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
55
license = "MIT"
66
edition = "2021"
77

hello-world-generated/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Josh McKinney <[email protected].com>
3+
Copyright (c) Orhun Parmaksız <orhunparmaksiz@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

hello-world-generated/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a [Ratatui] app generated by the [Hello World template].
77

88
## License
99

10-
Copyright (c) Josh McKinney <[email protected].com>
10+
Copyright (c) Orhun Parmaksız <orhunparmaksiz@gmail.com>
1111

1212
This project is licensed under the MIT license ([LICENSE] or <http://opensource.org/licenses/MIT>)
1313

hello-world/template/.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
1515
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
group: {% raw %}${{ github.workflow }}-${{ github.head_ref || github.run_id }}{% endraw %}
1818
cancel-in-progress: true
1919

2020
jobs:
@@ -63,8 +63,8 @@ jobs:
6363
env:
6464
RUSTDOCFLAGS: --cfg docsrs
6565
test:
66-
runs-on: ${{ matrix.os }}
67-
name: test ${{ matrix.os }}
66+
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
67+
name: test {% raw %}${{ matrix.os }}{% endraw %}
6868
strategy:
6969
fail-fast: false
7070
matrix:

simple-async/template/.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
1515
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
group: {% raw %}${{ github.workflow }}-${{ github.head_ref || github.run_id }}{% endraw %}
1818
cancel-in-progress: true
1919

2020
jobs:
@@ -63,8 +63,8 @@ jobs:
6363
env:
6464
RUSTDOCFLAGS: --cfg docsrs
6565
test:
66-
runs-on: ${{ matrix.os }}
67-
name: test ${{ matrix.os }}
66+
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
67+
name: test {% raw %}${{ matrix.os }}{% endraw %}
6868
strategy:
6969
fail-fast: false
7070
matrix:

simple/template/.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
1515
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
group: {% raw %}${{ github.workflow }}-${{ github.head_ref || github.run_id }}{% endraw %}
1818
cancel-in-progress: true
1919

2020
jobs:
@@ -63,8 +63,8 @@ jobs:
6363
env:
6464
RUSTDOCFLAGS: --cfg docsrs
6565
test:
66-
runs-on: ${{ matrix.os }}
67-
name: test ${{ matrix.os }}
66+
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
67+
name: test {% raw %}${{ matrix.os }}{% endraw %}
6868
strategy:
6969
fail-fast: false
7070
matrix:

0 commit comments

Comments
 (0)