We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cargo
1 parent e8f000d commit 513b1cfCopy full SHA for 513b1cf
packages/perseus-cli/src/build.rs
@@ -92,7 +92,8 @@ pub fn build_internal(
92
vec![
93
("PERSEUS_ENGINE_OPERATION", "build"),
94
("CARGO_TARGET_DIR", "dist/target_engine"),
95
- ("RUSTFLAGS", "--cfg=engine")
+ ("RUSTFLAGS", "--cfg=engine"),
96
+ ("CARGO_TERM_COLOR", "always")
97
]
98
)?);
99
@@ -137,11 +138,13 @@ pub fn build_internal(
137
138
139
("CARGO_TARGET_DIR", "dist/target_wasm"),
140
("RUSTFLAGS", &wasm_release_rustflags),
141
+ ("CARGO_TERM_COLOR", "always"),
142
143
} else {
144
145
146
("RUSTFLAGS", "--cfg=client"),
147
148
149
}
150
packages/perseus-cli/src/check.rs
@@ -123,7 +123,8 @@ fn cargo_check(
123
// and the browser simultaneously (different targets, so no
124
// commonalities gained by one directory)
125
126
127
128
129
130
@@ -143,7 +144,8 @@ fn cargo_check(
&browser_msg,
- ("RUSTFLAGS", "--cfg=client")
+ ("RUSTFLAGS", "--cfg=client"),
151
@@ -185,7 +187,8 @@ fn run_static_generation(
185
187
186
188
189
190
191
192
193
194
packages/perseus-cli/src/cmd.rs
@@ -34,6 +34,7 @@ pub fn run_cmd(
34
.args([shell_param, &cmd])
35
.envs(envs)
36
.current_dir(dir)
37
+ // A pipe is set for stdio
38
.output()
39
.map_err(|err| ExecutionError::CmdExecFailed { cmd, source: err })?;
40
packages/perseus-cli/src/export.rs
@@ -203,7 +203,8 @@ pub fn export_internal(
203
204
("PERSEUS_ENGINE_OPERATION", "export"),
205
206
207
208
209
210
@@ -248,11 +249,13 @@ pub fn export_internal(
248
249
250
251
252
253
254
255
256
257
258
259
260
261
packages/perseus-cli/src/export_error_page.rs
@@ -28,6 +28,7 @@ pub fn export_error_page(
28
("PERSEUS_ENGINE_OPERATION", "export_error_page"),
29
30
("RUSTFLAGS", "--cfg=engine"),
31
32
],
33
|| {},
)?;
packages/perseus-cli/src/install.rs
@@ -112,7 +112,10 @@ impl Tools {
112
&workspace_root,
113
&lf_spinner,
114
&lf_msg,
115
- vec![("RUSTFLAGS", "--cfg=engine")],
+ vec![
116
117
118
+ ],
119
)
120
.map_err(|err| InstallError::LockfileGenerationFailed { source: err })?;
121
if exit_code != 0 {
packages/perseus-cli/src/serve.rs
@@ -85,7 +85,8 @@ fn build_server(
85
&sb_msg,
86
87
88
89
90
91
packages/perseus-cli/src/snoop.rs
@@ -4,6 +4,8 @@ use crate::parse::{Opts, SnoopServeOpts};
4
use crate::{errors::*, get_user_crate_name};
5
use std::path::PathBuf;
6
7
+// NOTE: Cargo colors are left to the terminal directly here.
8
+
9
/// Runs static generation processes directly so the user can see detailed logs.
10
/// This is commonly used for allowing users to see `dbg!` and the like in their
11
/// builder functions.
packages/perseus-cli/src/tinker.rs
@@ -63,7 +63,8 @@ pub fn tinker_internal(
63
64
("PERSEUS_ENGINE_OPERATION", "tinker"),
65
66
67
68
69
70
0 commit comments