Debian Codegraph @

.cargo/vendor/half/Makefile.toml

raw
1 [config]
2 min_version = "0.35.0"
3
4 [env]
5 CI_CARGO_TEST_FLAGS = { value = "--locked -- --nocapture", condition = { env_true = [
6 "CARGO_MAKE_CI",
7 ] } }
8 CARGO_MAKE_CARGO_ALL_FEATURES = { source = "${CARGO_MAKE_RUST_CHANNEL}", default_value = "--all-features", mapping = { "nightly" = "--all-features" } }
9 CARGO_MAKE_CLIPPY_ARGS = { value = "${CARGO_MAKE_CLIPPY_ALL_FEATURES_WARN}", condition = { env_true = [
10 "CARGO_MAKE_CI",
11 ] } }
12
13 # Override for CI flag additions
14 [tasks.test]
15 args = [
16 "test",
17 "@@remove-empty(CARGO_MAKE_CARGO_VERBOSE_FLAGS)",
18 "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )",
19 "@@split(CI_CARGO_TEST_FLAGS, )",
20 ]
21
22 # Let clippy run on non-nightly CI
23 [tasks.clippy-ci-flow]
24 condition = { env_set = ["CARGO_MAKE_RUN_CLIPPY"] }
25
26 # Let format check run on non-nightly CI
27 [tasks.check-format-ci-flow]
28 condition = { env_set = ["CARGO_MAKE_RUN_CHECK_FORMAT"] }
29
30 [tasks.check-docs]
31 description = "Checks docs for errors."
32 category = "Documentation"
33 install_crate = false
34 env = { RUSTDOCFLAGS = "-D warnings" }
35 command = "cargo"
36 args = [
37 "doc",
38 "--workspace",
39 "--no-deps",
40 "@@remove-empty(CARGO_MAKE_CARGO_VERBOSE_FLAGS)",
41 "${CARGO_MAKE_CARGO_ALL_FEATURES}",
42 ]
43
44 # Build & Test with no features enabled
45 [tasks.post-ci-flow]
46 run_task = [
47 { name = [
48 "check-docs",
49 "build-no-std",
50 "test-no-std",
51 "build-no-std-alloc",
52 "test-no-std-alloc",
53 ] },
54 ]
55
56 [tasks.build-no-std]
57 description = "Build without any features"
58 category = "Build"
59 env = { CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--no-default-features" }
60 run_task = "build"
61
62 [tasks.test-no-std]
63 description = "Run tests without any features"
64 category = "Test"
65 env = { CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--no-default-features" }
66 run_task = "test"
67
68 [tasks.build-no-std-alloc]
69 description = "Build without any features except alloc"
70 category = "Build"
71 env = { CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--no-default-features --features alloc" }
72 run_task = "build"
73
74 [tasks.test-no-std-alloc]
75 description = "Run tests without any features except alloc"
76 category = "Test"
77 env = { CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--no-default-features --features alloc" }
78 run_task = "test"