@storm-software/workspace-tools 1.158.1 → 1.159.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +278 -69
  3. package/config/nx.json +2 -2
  4. package/declarations.d.ts +15 -4
  5. package/executors.json +35 -10
  6. package/index.js +50 -0
  7. package/meta.json +1 -1
  8. package/package.json +1 -1
  9. package/src/executors/cargo-build/executor.d.ts +7 -0
  10. package/src/executors/cargo-build/executor.js +68635 -0
  11. package/src/executors/cargo-build/schema.d.ts +3 -0
  12. package/src/executors/cargo-build/schema.json +138 -0
  13. package/src/executors/cargo-check/executor.d.ts +7 -0
  14. package/src/executors/cargo-check/executor.js +68634 -0
  15. package/src/executors/cargo-check/schema.d.ts +3 -0
  16. package/src/executors/cargo-check/schema.json +138 -0
  17. package/src/executors/cargo-clippy/executor.d.ts +7 -0
  18. package/src/executors/cargo-clippy/executor.js +68635 -0
  19. package/src/executors/cargo-clippy/schema.d.ts +3 -0
  20. package/src/executors/cargo-clippy/schema.json +36 -0
  21. package/src/executors/cargo-doc/executor.d.ts +7 -0
  22. package/src/executors/cargo-doc/executor.js +68640 -0
  23. package/src/executors/cargo-doc/schema.d.ts +3 -0
  24. package/src/executors/cargo-doc/schema.json +146 -0
  25. package/src/executors/cargo-format/executor.d.ts +7 -0
  26. package/src/executors/cargo-format/executor.js +68635 -0
  27. package/src/executors/cargo-format/schema.d.ts +3 -0
  28. package/src/executors/cargo-format/schema.json +134 -0
  29. package/src/plugins/rust/cargo-toml.d.ts +11 -0
  30. package/src/plugins/rust/index.js +99 -34
  31. package/src/plugins/typescript/index.js +1 -1
  32. package/src/utils/cargo.d.ts +4 -0
  33. package/src/utils/index.js +50 -0
@@ -0,0 +1,3 @@
1
+ import { CargoBaseExecutorSchema } from "../../../declarations";
2
+
3
+ export type CargoCheckExecutorSchema = CargoBaseExecutorSchema;
@@ -0,0 +1,138 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "cargo-check",
4
+ "outputCapture": "direct-nodejs",
5
+ "version": 2,
6
+ "title": "Cargo Check",
7
+ "description": "Check a Rust project with Cargo",
8
+ "type": "object",
9
+ "properties": {
10
+ "release": {
11
+ "type": "boolean",
12
+ "default": false,
13
+ "description": "Run the Cargo command for the project in release mode"
14
+ },
15
+ "profile": {
16
+ "type": "string",
17
+ "description": "Build artifacts with the specified profile"
18
+ },
19
+ "toolchain": {
20
+ "type": "string",
21
+ "description": "The Rust toolchain to use",
22
+ "enum": ["stable", "beta", "nightly"],
23
+ "default": "stable"
24
+ },
25
+ "features": {
26
+ "oneOf": [
27
+ {
28
+ "type": "string"
29
+ },
30
+ {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ }
36
+ ],
37
+ "description": "Features of workspace members may be enabled with package-name/feature-name syntax. Array of names is supported"
38
+ },
39
+ "allFeatures": {
40
+ "type": "boolean",
41
+ "default": false,
42
+ "description": "Build all binary targets",
43
+ "alias": "all-features"
44
+ },
45
+ "target": {
46
+ "type": "string",
47
+ "description": "Build the specified target"
48
+ },
49
+ "lib": {
50
+ "type": "boolean",
51
+ "description": "Build the package's library",
52
+ "default": false
53
+ },
54
+ "bin": {
55
+ "oneOf": [
56
+ {
57
+ "type": "string"
58
+ },
59
+ {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ ],
66
+ "description": "Build the specified binary. Array of names or common Unix glob patterns is supported"
67
+ },
68
+ "bins": {
69
+ "type": "boolean",
70
+ "default": false,
71
+ "description": "Build all binary targets"
72
+ },
73
+ "example": {
74
+ "oneOf": [
75
+ {
76
+ "type": "string"
77
+ },
78
+ {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string"
82
+ }
83
+ }
84
+ ],
85
+ "description": "Build the specified example. Array of names or common Unix glob patterns is supported"
86
+ },
87
+ "examples": {
88
+ "type": "boolean",
89
+ "default": false,
90
+ "description": "Build all example targets"
91
+ },
92
+ "test": {
93
+ "oneOf": [
94
+ {
95
+ "type": "string"
96
+ },
97
+ {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "string"
101
+ }
102
+ }
103
+ ],
104
+ "description": "Build the specified test. Array of names or common Unix glob patterns is supported"
105
+ },
106
+ "tests": {
107
+ "type": "boolean",
108
+ "default": false,
109
+ "description": "Build all test targets"
110
+ },
111
+ "bench": {
112
+ "oneOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "array",
118
+ "items": {
119
+ "type": "string"
120
+ }
121
+ }
122
+ ],
123
+ "description": "Build the specified bench. Array of names or common Unix glob patterns is supported"
124
+ },
125
+ "benches": {
126
+ "type": "boolean",
127
+ "default": false,
128
+ "description": "Build all targets in benchmark mode that have the bench = true manifest flag set. By default this includes the library and binaries built as benchmarks, and bench targets. Be aware that this will also build any required dependencies, so the lib target may be built twice (once as a benchmark, and once as a dependency for binaries, benchmarks, etc.). Targets may be enabled or disabled by setting the bench flag in the manifest settings for the target."
129
+ },
130
+ "allTargets": {
131
+ "type": "boolean",
132
+ "default": false,
133
+ "description": "Build all test targets",
134
+ "alias": "all-targets"
135
+ }
136
+ },
137
+ "required": []
138
+ }
@@ -0,0 +1,7 @@
1
+ import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
2
+ import { CargoClippyExecutorSchema } from "./schema";
3
+ export declare function cargoClippyExecutor(options: CargoClippyExecutorSchema, context: ExecutorContext): Promise<{
4
+ success: boolean;
5
+ }>;
6
+ declare const _default: PromiseExecutor<CargoClippyExecutorSchema>;
7
+ export default _default;