sagiegurari / cargo-make
1 2
#![deny(
2
    absolute_paths_not_starting_with_crate,
3
    ambiguous_associated_items,
4
    anonymous_parameters,
5
    arithmetic_overflow,
6
    array_into_iter,
7
    asm_sub_register,
8
    bindings_with_variant_name,
9
    broken_intra_doc_links,
10
    cenum_impl_drop_cast,
11
    clashing_extern_declarations,
12
    coherence_leak_check,
13
    conflicting_repr_hints,
14
    confusable_idents,
15
    const_err,
16
    dead_code,
17
    deprecated,
18
    deprecated_in_future,
19
    ellipsis_inclusive_range_patterns,
20
    explicit_outlives_requirements,
21
    exported_private_dependencies,
22
    ill_formed_attribute_input,
23
    illegal_floating_point_literal_pattern,
24
    improper_ctypes,
25
    improper_ctypes_definitions,
26
    incomplete_features,
27
    incomplete_include,
28
    indirect_structural_match,
29
    inline_no_sanitize,
30
    invalid_codeblock_attributes,
31
    invalid_type_param_default,
32
    invalid_value,
33
    irrefutable_let_patterns,
34
    keyword_idents,
35
    late_bound_lifetime_arguments,
36
    macro_expanded_macro_exports_accessed_by_absolute_paths,
37
    meta_variable_misuse,
38
    missing_copy_implementations,
39
    missing_crate_level_docs,
40
    missing_docs,
41
    mixed_script_confusables,
42
    mutable_borrow_reservation_conflict,
43
    mutable_transmutes,
44
    no_mangle_const_items,
45
    no_mangle_generic_items,
46
    non_ascii_idents,
47
    non_camel_case_types,
48
    non_shorthand_field_patterns,
49
    non_snake_case,
50
    non_upper_case_globals,
51
    order_dependent_trait_objects,
52
    overflowing_literals,
53
    overlapping_patterns,
54
    path_statements,
55
    patterns_in_fns_without_body,
56
    private_doc_tests,
57
    private_in_public,
58
    proc_macro_derive_resolution_fallback,
59
    pub_use_of_private_extern_crate,
60
    redundant_semicolons,
61
    safe_packed_borrows,
62
    soft_unstable,
63
    stable_features,
64
    trivial_bounds,
65
    trivial_casts,
66
    trivial_numeric_casts,
67
    type_alias_bounds,
68
    tyvar_behind_raw_pointer,
69
    unaligned_references,
70
    uncommon_codepoints,
71
    unconditional_panic,
72
    unconditional_recursion,
73
    unknown_crate_types,
74
    unnameable_test_items,
75
    unreachable_code,
76
    unreachable_patterns,
77
    unreachable_pub,
78
    unsafe_code,
79
    unstable_features,
80
    unstable_name_collisions,
81
    unused_allocation,
82
    unused_assignments,
83
    unused_attributes,
84
    unused_braces,
85
    unused_comparisons,
86
    unused_crate_dependencies,
87
    unused_doc_comments,
88
    unused_extern_crates,
89
    unused_features,
90
    unused_import_braces,
91
    unused_imports,
92
    unused_labels,
93
    unused_lifetimes,
94
    unused_macros,
95
    unused_must_use,
96
    unused_mut,
97
    unused_parens,
98
    unused_qualifications,
99
    unused_unsafe,
100
    unused_variables,
101
    where_clauses_object_safety
102
)]
103
#![warn(macro_use_extern_crate, unknown_lints)]
104
#![allow(
105
    bare_trait_objects,
106
    box_pointers,
107
    elided_lifetimes_in_paths,
108
    missing_doc_code_examples,
109
    missing_debug_implementations,
110
    single_use_lifetimes,
111
    unused_results,
112
    variant_size_differences,
113
    warnings,
114
    renamed_and_removed_lints
115
)]
116

117
//! # cargo-make
118
//!
119
//! Rust task runner and build tool.<br>
120
//! The cargo-make task runner enables to define and configure sets of tasks and run them as a flow.<br>
121
//! A task is a command or a script to execute.<br>
122
//! Tasks can have dependencies which are also tasks that will be executed before the task itself.<br>
123
//! With a simple toml based configuration file, you can define a multi platform build script that can run build, test,
124
//! documentation generation, bench tests execution, security validations and more by running a single command.
125
//!
126
//! ## Installation
127
//! In order to install, just run the following command
128
//!
129
//! ```sh
130
//! cargo install cargo-make
131
//! ```
132
//!
133
//! This will install cargo-make in your ~/.cargo/bin.<br>
134
//! Make sure to add ~/.cargo/bin directory to your PATH variable.
135
//!
136
//! # Contributing
137
//! See [contributing guide](https://github.com/sagiegurari/cargo-make/blob/master/.github/CONTRIBUTING.md)
138
//!
139
//! # License
140
//! Developed by Sagie Gur-Ari and licensed under the
141
//! [Apache 2](https://github.com/sagiegurari/cargo-make/blob/master/LICENSE) open source license.
142
//!
143

144
#[macro_use]
145
extern crate log;
146
#[macro_use]
147
extern crate serde_derive;
148

149
#[cfg(test)]
150
mod test;
151

152
// make types public for docs
153
pub mod types;
154

155
mod cache;
156
mod cli;
157
mod cli_commands;
158
mod command;
159
mod condition;
160
mod config;
161
mod descriptor;
162
mod environment;
163
mod execution_plan;
164
mod functions;
165
mod installer;
166
mod io;
167
mod legacy;
168
mod logger;
169
mod profile;
170
mod recursion_level;
171
mod runner;
172
mod scriptengine;
173
mod storage;
174
mod time_summary;
175
mod toolchain;
176
mod version;
177

178
/// Handles the command line arguments and executes the runner.
179 8
pub fn run_cli(command_name: String, sub_command: bool) {
180 8
    cli::run_cli(command_name, sub_command)
181 0
}

Read our documentation on viewing source code .

Loading