-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathMakefile.toml
More file actions
67 lines (52 loc) · 1.45 KB
/
Makefile.toml
File metadata and controls
67 lines (52 loc) · 1.45 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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.fmt]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
command = "cargo"
args = [
"clippy",
"--workspace",
"--lib",
"--bins",
"--examples",
"--",
"-D",
"warnings",
]
[tasks.test]
install_crate = "nextest"
command = "cargo"
args = ["nextest", "run", "--no-tests=pass"]
[tasks.doc-test]
workspace = false
command = "cargo"
args = ["test", "--doc", "-p", "rust-mcp-sdk"]
dependencies = ["doc-test-macros", "doc-test-transport"]
[tasks.doc-test-transport]
workspace = false
command = "cargo"
args = ["test", "--doc", "-p", "rust-mcp-sdk"]
[tasks.doc-test-macros]
workspace = false
command = "cargo"
args = ["test", "--doc", "-p", "rust-mcp-macros"]
[tasks.doc-strict]
command = "cargo"
args = ["doc", "--no-deps"]
env = { RUSTDOCFLAGS = "-D warnings" }
[tasks.build-all-features]
script = '''
set -e
cargo build --lib -p rust-mcp-sdk --no-default-features --features "client,stdio"
cargo build --lib -p rust-mcp-sdk --no-default-features --features "server,stdio"
cargo build --lib -p rust-mcp-sdk --no-default-features --features "hyper-server,streamable-http"
cargo build --lib -p rust-mcp-sdk --no-default-features --features "hyper-server,sse"
'''
[tasks.check]
dependencies = ["fmt", "clippy", "build-all-features", "test", "doc-strict", "doc-test"]
[tasks.clippy-fix]
command = "cargo"
args = ["clippy", "--fix", "--allow-dirty"]