-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
31 lines (28 loc) · 896 Bytes
/
mise.toml
File metadata and controls
31 lines (28 loc) · 896 Bytes
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
[tasks.build]
description = "Build the project in release mode"
sources = [
'Cargo.toml',
'src/**/*.rs',
] # skip running if these files haven't changed
outputs = [
'target/release/eip712',
] # skip running if this file exists and is newer than the sources
run = "cargo build --release"
[tasks.check]
run = [
"cargo fmt -- --check",
"cargo clippy -- -D warnings",
"cargo test --all-features",
]
[tasks."sign"]
depends = ['build']
usage = '''
flag "--pretty" help="Pretty print the output hash and the EIP-712 message"
'''
run = "./target/release/eip712 sign --private-key ${PRIVATE_KEY} {% if usage.pretty %} --pretty {% endif %}./example.eip712.json"
[tasks."hash"]
depends = ["build"]
usage = '''
flag "--pretty" help="Pretty print the output hash and the EIP-712 message"
'''
run = "./target/release/eip712 hash {% if usage.pretty %} --pretty {% endif %} ./example.eip712.json"