Skip to content

Commit d4c6f0c

Browse files
maksimryndinWiseMrMusa
authored andcommitted
exclude gh workflows from cargo generate substitution (#36)
- [x] cannot generate a project with cargo generate because of the workflows `.github/workflows/coverage.yml` (better just to exclude them from vars expansion at all)
1 parent d25446f commit d4c6f0c

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@ Signed commits
100100
}
101101
```
102102

103+
<<<<<<< HEAD
104+
=======
105+
## How to use
106+
107+
Either with "Use this template" green button on Github or, in case of using another git hosting service (or have to avoid referencing this repository), you can use [cargo-generate](https://github.com/cargo-generate/cargo-generate).
108+
109+
```sh
110+
cargo install cargo-generate
111+
112+
cargo generate --git https://github.com/NethermindEth/rust-template
113+
```
114+
115+
>>>>>>> 8271dbd (exclude gh workflows from cargo generate substitution (#36))
103116
## Examples
104117

105118
See [examples](./examples/).

cargo-generate.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[template]
2+
name = "rust-template"
3+
description = "A template for a new Rust project"
4+
author = "Nethermind"
5+
license = "Apache-2.0"
6+
cargo_generate_version = ">=0.23.0"
7+
8+
# Exclude files from the placeholder generated for the template
9+
exclude = [
10+
".github/workflows",
11+
"target",
12+
]

0 commit comments

Comments
 (0)