Skip to content

Commit

Permalink
Arrange forc.toml fields alphabetically (#754)
Browse files Browse the repository at this point in the history
* arranged fields alphabetically

* fixed format variables
  • Loading branch information
eureka-cpu authored Feb 8, 2022
1 parent e42dcc9 commit 9cdba5c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions forc/src/utils/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ pub(crate) fn default_manifest(project_name: &str) -> String {

format!(
r#"[project]
name = "{}"
author = "{}"
author = "{real_name}"
entry = "main.sw"
license = "Apache-2.0"
name = "{project_name}"
[dependencies]
core = {{ git = "http://github.com/FuelLabs/sway-lib-core" }}
std = {{ git = "http://github.com/FuelLabs/sway-lib-std" }}
"#,
project_name, real_name
"#
)
}

Expand All @@ -27,11 +26,11 @@ pub(crate) fn default_tests_manifest(project_name: &str) -> String {

format!(
r#"[package]
name = "{}"
version = "0.1.0"
authors = ["{}"]
authors = ["{real_name}"]
edition = "2021"
license = "Apache-2.0"
name = "{project_name}"
version = "0.1.0"
[dependencies]
fuel-gql-client = {{ version = "0.2", default-features = false }}
Expand All @@ -43,11 +42,10 @@ rand = "0.8"
tokio = {{ version = "1.12", features = ["rt", "macros"] }}
[[test]]
harness = true
name = "integration_tests"
path = "tests/harness.rs"
harness = true
"#,
project_name, real_name,
"#
)
}

Expand Down

0 comments on commit 9cdba5c

Please sign in to comment.