diff --git a/Cargo.toml b/Cargo.toml index c3a7f24..44b12c9 100644 --- a/Cargo.toml +++ b/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 -%} diff --git a/src/main.rs b/src/main.rs index 7d5748a..2c38e14 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 -%}