Skip to content

Commit

Permalink
Change default license to Apache-2.0. (FuelLabs#480)
Browse files Browse the repository at this point in the history
* Change default license to Apache-2.0.

* Update Forc manifest files.

* Re-order manifest fields.

* Fix typo.

* Fix extra whitespace.
  • Loading branch information
adlerjohn authored Dec 23, 2021
1 parent e8e1b94 commit 6820b85
Show file tree
Hide file tree
Showing 88 changed files with 92 additions and 92 deletions.
2 changes: 1 addition & 1 deletion docs/src/getting-started/forc_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ tree .
```toml
[project]
author = "user"
license = "MIT"
license = "Apache-2.0"
name = "hello_world"
entry = "main.sw"
```
Expand Down
2 changes: 1 addition & 1 deletion example_project/example_dependency/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alex Hansen"
license = "MIT"
license = "Apache-2.0"
name = "example_dependency"
entry = "main.sw"

Expand Down
2 changes: 1 addition & 1 deletion example_project/fuel_project/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alex Hansen"
license = "MIT"
license = "Apache-2.0"
name = "Fuel example project"


Expand Down
10 changes: 5 additions & 5 deletions forc/src/utils/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pub(crate) fn default_manifest(project_name: &str) -> String {

format!(
r#"[project]
author = "{}"
license = "MIT"
name = "{}"
author = "{}"
entry = "main.sw"
license = "Apache-2.0"
"#,
real_name, project_name,
)
Expand All @@ -23,11 +23,11 @@ pub(crate) fn default_tests_manifest(project_name: &str) -> String {

format!(
r#"[package]
author = "{}"
license = "MIT"
name = "{}"
edition = "2021"
version = "0.1.0"
authors = "{}"
edition = "2021"
license = "Apache-2.0"
[dependencies]
tokio = {{ version = "1.12", features = ["rt", "macros"] }}
Expand Down
2 changes: 1 addition & 1 deletion lib-core/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "core"
entry = "lib.sw"
2 changes: 1 addition & 1 deletion lib-std/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alex Hansen"
license = "MIT"
license = "Apache-2.0"
name = "lib-std"
entry = "lib.sw"

Expand Down
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/address_test/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "address_test"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Emily Herbert <emily.herbert@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "aliased_imports"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "array_bad_index"
entry = "main.sw"
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/array_basics/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "array_basics"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "array_dynamic_oob"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "array_generics"
entry = "main.sw"
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/array_oob/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "array_oob"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen <alex.hansen@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "asm_expr_basic"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "asm_missing_return"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "asm_should_not_have_return"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "asm_without_return"
entry = "main.sw"
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/assert_test/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro <nick.furfaro@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "assert_test"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "auth_testing_abi"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "auth_testing_contract"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "b256_bad_jumps"
entry = "main.sw"

Expand Down
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/b256_ops/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "b256_ops"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "b512_panic_test"
entry = "main.sw"

Expand Down
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/b512_test/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "b512_test"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "bad_generic_annotation"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "bad_generic_var_annotation"
entry = "main.sw"
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/bal_opcode/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "bal_opcode"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "balance_test_abi"
entry = "main.sw"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "balance_test_contract"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen <alex.hansen@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "basic_func_decl"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "basic_storage"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "basic_storage_abi"
entry = "main.sw"
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/block_height/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "block_height"
entry = "main.sw"

Expand Down
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/bool_and_or/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "bool_and_or"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "call_basic_storage"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "call_increment_contract"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "alex"
license = "MIT"
license = "Apache-2.0"
name = "caller_auth_test"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "caller_context_test"
entry = "main.sw"

Expand Down
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/const_decl/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "const_decl"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Toby Hutton <toby.hutton@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "const_decl_in_library"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "context_testing_abi"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "context_testing_contract"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen <alex.hansen@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "contract_abi_impl"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen <alex.hansen@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "contract_call"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Nick Furfaro"
license = "MIT"
license = "Apache-2.0"
name = "contract_id_test"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "valid_impurity"
entry = "main.sw"
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/test_programs/dependencies/Forc.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Alexander Hansen <alex.hansen@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "dependencies"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
author = "Emily Herbert <emily.herbert@fuel.sh>"
license = "MIT"
license = "Apache-2.0"
name = "dependencies_parsing_error"
entry = "main.sw"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
author = "Alexander Hansen"
license = "MIT"
license = "Apache-2.0"
name = "disallowed_opcodes"
entry = "main.sw"
Loading

0 comments on commit 6820b85

Please sign in to comment.