Skip to content

Commit a54acdd

Browse files
authored
feat: add README and tweak Makefile to update workspace cargo file (#6)
1 parent 1ffbd9d commit a54acdd

File tree

16 files changed

+67
-24
lines changed

16 files changed

+67
-24
lines changed

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -101,28 +101,6 @@ $ make generate
101101
🔧 Moving generated files into: `/tmp/my-first-contract-workspace/contracts/first-contract`...
102102
🔧 Initializing a fresh Git repository
103103
✨ Done! New project created /tmp/my-first-contract-workspace/contracts/first-contract
104-
Please update workspace-level Cargo.toml so members include the newly created crate!
105-
```
106-
107-
As the log line hints, after creating the contract, we will need to manually update `Cargo.toml` file to contain the newly created contract crate. When you finished editing, `Cargo.toml` file should look like following:
108-
109-
```
110-
$ cat Cargo.toml
111-
[workspace]
112-
resolver = "2"
113-
114-
members = [
115-
# Please don't remove the following line, we use it to automatically
116-
# detect insertion point for newly generated crates.
117-
# @@INSERTION_POINT@@
118-
"contracts/first-contract",
119-
"tests",
120-
]
121-
122-
[profile.release]
123-
overflow-checks = true
124-
strip = true
125-
codegen-units = 1
126104
```
127105

128106
You can also supply the contract create name when executing the make task:

atomics-contract/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# {{project-name}}
2+
3+
TODO: Write this readme
4+
5+
*This contract was bootstrapped with [ckb-script-templates].*
6+
7+
[ckb-script-templates]: https://github.com/cryptape/ckb-script-templates

atomics-contract/cargo-generate.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[template]
2+
cargo_generate_version = ">=0.16.0"

c-wrapper-crate/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# {{project-name}}
2+
3+
TODO: Write this readme
4+
5+
*This crate was bootstrapped with [ckb-script-templates].*
6+
7+
[ckb-script-templates]: https://github.com/cryptape/ckb-script-templates

c-wrapper-crate/cargo-generate.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[template]
2+
cargo_generate_version = ">=0.16.0"

contract/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# {{project-name}}
2+
3+
TODO: Write this readme
4+
5+
*This contract was bootstrapped with [ckb-script-templates].*
6+
7+
[ckb-script-templates]: https://github.com/cryptape/ckb-script-templates

contract/cargo-generate.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[template]
2+
cargo_generate_version = ">=0.16.0"

stack-reorder-contract/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# {{project-name}}
2+
3+
TODO: Write this readme
4+
5+
*This contract was bootstrapped with [ckb-script-templates].*
6+
7+
[ckb-script-templates]: https://github.com/cryptape/ckb-script-templates
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[template]
2+
cargo_generate_version = ">=0.16.0"

standalone-contract/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# {{project-name}}
2+
3+
TODO: Write this readme
4+
5+
*This contract was bootstrapped with [ckb-script-templates].*
6+
7+
[ckb-script-templates]: https://github.com/cryptape/ckb-script-templates

0 commit comments

Comments
 (0)