-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.toml
More file actions
88 lines (72 loc) · 1.79 KB
/
Makefile.toml
File metadata and controls
88 lines (72 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Freenet Wiki - Build Tasks
# Run with: cargo make <task>
[config]
default_to_workspace = false
[tasks.default]
description = "Build all crates"
alias = "build"
[tasks.build]
description = "Build all crates"
command = "cargo"
args = ["build", "--workspace"]
[tasks.build-release]
description = "Build all crates in release mode"
command = "cargo"
args = ["build", "--workspace", "--release"]
[tasks.test]
description = "Run all tests"
command = "cargo"
args = ["test", "--workspace"]
[tasks.test-common]
description = "Run common library tests"
command = "cargo"
args = ["test", "--package", "freenet-wiki-common"]
[tasks.clippy]
description = "Run clippy"
command = "cargo"
args = ["clippy", "--workspace", "--all-targets"]
[tasks.fmt]
description = "Format code"
command = "cargo"
args = ["fmt", "--all"]
[tasks.fmt-check]
description = "Check code formatting"
command = "cargo"
args = ["fmt", "--all", "--check"]
[tasks.check]
description = "Run cargo check"
command = "cargo"
args = ["check", "--workspace"]
# Contract build tasks
[tasks.build-contract]
description = "Build wiki contract (WASM)"
script = '''
cd contracts/wiki-contract
cargo build --release --target wasm32-unknown-unknown
'''
[tasks.build-delegate]
description = "Build wiki delegate (WASM)"
script = '''
cd delegates/wiki-delegate
cargo build --release --target wasm32-unknown-unknown
'''
# UI build tasks
[tasks.build-ui]
description = "Build UI"
script = '''
cd ui
cargo build --release
'''
# Combined release build
[tasks.release]
description = "Build all components for release"
dependencies = ["build-contract", "build-delegate", "build-ui"]
# Development
[tasks.dev]
description = "Run tests and clippy"
dependencies = ["test", "clippy"]
# Clean
[tasks.clean]
description = "Clean build artifacts"
command = "cargo"
args = ["clean"]