Skip to content

Commit 174d63b

Browse files
committed
s/cargo-script/rust-script
1 parent 1fc9c34 commit 174d63b

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

src/file_assoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn install_file_association() -> Result<()> {
5959
}
6060
}
6161

62-
println!("Created run-cargo-script registry entry.");
62+
println!("Created rust-script registry entry.");
6363
println!("- Handler set to: {}", rcs_path);
6464

6565
let hklm = RegKey::predef(wre::HKEY_LOCAL_MACHINE);
@@ -99,7 +99,7 @@ pub fn uninstall_file_association() -> Result<()> {
9999
if ignored_missing {
100100
println!("Ignored some missing registry entries.");
101101
}
102-
println!("Deleted run-cargo-script registry entry.");
102+
println!("Deleted rust-script registry entry.");
103103

104104
{
105105
let hklm = RegKey::predef(wre::HKEY_LOCAL_MACHINE);

src/main.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
/*!
2-
`cargo-script` is a Cargo subcommand designed to let people quickly and easily run Rust "scripts" which can make use of Cargo's package ecosystem.
3-
4-
Or, to put it in other words, it lets you write useful, but small, Rust programs without having to create a new directory and faff about with `Cargo.toml`.
5-
6-
As such, `cargo-script` does two major things:
7-
8-
1. Given a script, it extracts the embedded Cargo manifest and merges it with some sensible defaults. This manifest, along with the source code, is written to a fresh Cargo package on-disk.
9-
10-
2. It caches the generated and compiled packages, regenerating them only if the script or its metadata have changed.
11-
*/
121
#![forbid(unsafe_code)]
132
extern crate env_logger;
143
#[macro_use]

src/manifest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
This module is concerned with how `cargo-script` extracts the manfiest from a script file.
2+
This module is concerned with how `rust-script` extracts the manfiest from a script file.
33
*/
44
extern crate pulldown_cmark;
55
extern crate regex;
@@ -307,7 +307,7 @@ fn test_strip_hashbang() {
307307
assert_eq!(
308308
strip_hashbang(
309309
"\
310-
#!/usr/bin/env run-cargo-script
310+
#!/usr/bin/env rust-script
311311
and the rest
312312
\
313313
"

src/platform.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ mod inner {
8383
}
8484

8585
/**
86-
Returns `true` if `cargo-script` should force Cargo to use coloured output.
86+
Returns `true` if `rust-script` should force Cargo to use coloured output.
8787
88-
This depends on whether `cargo-script`'s STDERR is connected to a TTY or not.
88+
This depends on whether `rust-script`'s STDERR is connected to a TTY or not.
8989
*/
9090
pub fn force_cargo_color() -> bool {
9191
atty::is(atty::Stream::Stderr)
@@ -147,7 +147,7 @@ pub mod inner {
147147
}
148148

149149
/**
150-
Returns `true` if `cargo-script` should force Cargo to use coloured output.
150+
Returns `true` if `rust-script` should force Cargo to use coloured output.
151151
152152
Always returns `false` on Windows because colour is communicated over a side-channel.
153153
*/

0 commit comments

Comments
 (0)