Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scizzorz committed Jul 13, 2019
1 parent 0d85cdd commit ea07b7a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mold/.clones
35 changes: 35 additions & 0 deletions mold.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[[includes]]
url = "https://github.com/philipdexter/std.mold"

[recipes.build]
help = "Build using cargo"
command = ["cargo", "build"]

[recipes.check]
help = "Check for errors using cargo"
command = ["cargo", "check"]

[recipes.test]
help = "Run tests using cargo"
command = ["cargo", "test"]

[recipes.install]
help = "Install the current project using cargo"
command = ["cargo", "install", "--force", "--path", "."]

[recipes.fmt]
help = "Format using rustfmt"
command = ["cargo", "fmt"]

[recipes.clean]
help = "Clean build artifacts using cargo"
command = ["cargo", "clean"]

[recipes.clean-self]
help = "Clean build artifacts using cargo"
type = "sh"

[recipes.lint]
help = "Lint using clippy"
command = ["cargo", "clippy", "--", "-D", "warnings"]
deps = ["clean-self"]
2 changes: 2 additions & 0 deletions mold/clean-self.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
guess=$(cat Cargo.toml | grep "^name")
echo $guess

0 comments on commit ea07b7a

Please sign in to comment.