Skip to content

Commit 1a24047

Browse files
committed
chore: more improvements
1 parent 7673a9c commit 1a24047

3 files changed

Lines changed: 8 additions & 22 deletions

File tree

Cargo.toml.liquid

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ documentation = ""
77
repository = ""
88
categories = ["command-line-utilities"]
99
keywords = ["cli"]
10-
1110
{% if license == "MIT" %}
1211
license = "MIT"
1312
{% endif %}
@@ -17,13 +16,8 @@ license = "Apache-2.0"
1716
{% if license == "all" %}
1817
license = "MIT OR Apache-2.0"
1918
{% endif %}
20-
2119
[dependencies]
22-
{% if dotenv == true %}
23-
dotenvy = "0.15.7"
24-
{% endif %}
25-
2620
{% if sentry == true %}
2721
sentry = "0.34.0"
28-
tokio = { version = "1", features = ["full"] }
22+
dotenvy = "0.15.7"
2923
{% endif %}

cargo-generate.toml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[template]
44
cargo_generate_version = ">=0.22.0"
5-
exclude = ["assets/*, Cargo.toml"]
5+
exclude = ["./assets/wallpaper.png, Cargo.toml"]
66

77
[placeholders.package_name]
88
type = "string"
@@ -37,11 +37,6 @@ prompt = "Do you want to create a github release?"
3737
default = false
3838

3939
## Dependencies
40-
[placeholders.dotenv]
41-
type = "bool"
42-
prompt = "Do you want to use dotenv?"
43-
default = false
44-
4540
[placeholders.sentry]
4641
type = "bool"
4742
prompt = "Do you want to use sentry?"
@@ -50,20 +45,17 @@ default = false
5045
# Conditions
5146
## License
5247

53-
[conditional.'license != "MIT" && license != "all"']
54-
exclude = ["LICENSE-MIT"]
55-
56-
[conditional.'license != "APACHE" && license != "all"']
48+
[conditional.'license == MIT']
5749
exclude = ["LICENSE-APACHE"]
5850

51+
[conditional. 'license == APACHE']
52+
exclude = ["LICENSE-MIT"]
53+
5954
## Workflows
6055
[conditional.'github_release == false']
6156
exclude = [".github/workflows/release.yaml"]
6257

6358
## Dependencies
64-
[conditional.'dotenv == false']
65-
exclude = [".env.example"]
66-
6759
[conditional. 'sentry == true']
6860
type = "string"
6961
name = "sentry_dsn"
@@ -72,4 +64,4 @@ default = "https://examplePublicKey@o0.ingest.sentry.io/0"
7264

7365
## Files
7466
[conditional. 'sentry == false']
75-
exclude = ["./src/functions.rs"]
67+
exclude = ["./src/functions.rs", ".env.example"]

src/main.rs.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use {{ project_name }}::{load_sentry};
1+
use {{ package_name }}::{load_sentry};
22
use std::thread::sleep;
33

44
#[path = "1_module/tests/add_sub.rs"]

0 commit comments

Comments
 (0)