fix: whitespaces
This commit is contained in:
parent
b40a1f301b
commit
14079c99cd
2 changed files with 9 additions and 9 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -10,14 +10,14 @@ license = "{{license}}"
|
|||
repository = "git@github.com:{{username}}/{{project-name}}.git"
|
||||
|
||||
[dependencies]
|
||||
{% if serde %}
|
||||
{%- if serde -%}
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
{% endif %}
|
||||
{% if tracing %}
|
||||
{%- endif -%}
|
||||
{%- if tracing -%}
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.3"
|
||||
{% endif %}
|
||||
{% if async %}
|
||||
{%- endif -%}
|
||||
{%- if async -%}
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{% if async %}
|
||||
{%- if async -%}
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
|
Loading…
Reference in a new issue