Skip to content

Commit 18c8c5f

Browse files
committed
Auto merge of #6065 - zachlute:change-project-to-package, r=dwijnand
Replace 'project' with 'package' in many strings and comments. Partial fix for #6056. Shouldn't be anything too interesting or surprising in here. Still need to do documentation, but will do that as a different PR.
2 parents 77e02e7 + f3bd19f commit 18c8c5f

36 files changed

+87
-87
lines changed

src/bin/cargo/cli.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ OPTIONS:
178178
{unified}
179179
180180
Some common cargo commands are (see all commands with --list):
181-
build Compile the current project
182-
check Analyze the current project and report errors, but don't build object files
181+
build Compile the current package
182+
check Analyze the current package and report errors, but don't build object files
183183
clean Remove the target directory
184-
doc Build this project's and its dependencies' documentation
185-
new Create a new cargo project
186-
init Create a new cargo project in an existing directory
184+
doc Build this package's and its dependencies' documentation
185+
new Create a new cargo package
186+
init Create a new cargo package in an existing directory
187187
run Build and execute src/main.rs
188188
test Run the tests
189189
bench Run the benchmarks
190190
update Update dependencies listed in Cargo.lock
191191
search Search registry for crates
192-
publish Package and upload this project to the registry
192+
publish Package and upload this package to the registry
193193
install Install a Rust binary
194194
uninstall Uninstall a Rust binary
195195

src/bin/cargo/commands/generate_lockfile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use cargo::ops;
44

55
pub fn cli() -> App {
66
subcommand("generate-lockfile")
7-
.about("Generate the lockfile for a project")
7+
.about("Generate the lockfile for a package")
88
.arg_manifest_path()
99
}
1010

src/bin/cargo/commands/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
1414
ops::init(&opts, config)?;
1515
config
1616
.shell()
17-
.status("Created", format!("{} project", opts.kind))?;
17+
.status("Created", format!("{} package", opts.kind))?;
1818
Ok(())
1919
}

src/bin/cargo/commands/locate_project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
1919
let root = root.to_str()
2020
.ok_or_else(|| {
2121
format_err!(
22-
"your project path contains characters \
22+
"your package path contains characters \
2323
not representable in Unicode"
2424
)
2525
})

src/bin/cargo/commands/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use cargo::print_json;
66
pub fn cli() -> App {
77
subcommand("metadata")
88
.about(
9-
"Output the resolved dependencies of a project, \
9+
"Output the resolved dependencies of a package, \
1010
the concrete used versions including overrides, \
1111
in machine-readable format",
1212
)

src/bin/cargo/commands/new.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
1414

1515
ops::new(&opts, config)?;
1616
let path = args.value_of("path").unwrap();
17-
let project_name = if let Some(name) = args.value_of("name") {
17+
let package_name = if let Some(name) = args.value_of("name") {
1818
name
1919
} else {
2020
path
2121
};
2222
config
2323
.shell()
24-
.status("Created", format!("{} `{}` project", opts.kind, project_name))?;
24+
.status("Created", format!("{} `{}` package", opts.kind, package_name))?;
2525
Ok(())
2626
}

src/bin/cargo/commands/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn cli() -> App {
2323
.arg_message_format()
2424
.after_help(
2525
"\
26-
If neither `--bin` nor `--example` are given, then if the project only has one
26+
If neither `--bin` nor `--example` are given, then if the package only has one
2727
bin target it will be run. Otherwise `--bin` specifies the bin target to run,
2828
and `--example` specifies the example target to run. At most one of `--bin` or
2929
`--example` can be provided.

src/cargo/core/compiler/build_plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! A graph-like structure used to represent the rustc commands to build the project and the
1+
//! A graph-like structure used to represent the rustc commands to build the package and the
22
//! interdependencies between them.
33
//!
44
//! The BuildPlan structure is used to store the dependency graph of a dry run so that it can be

src/cargo/core/compiler/context/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ use self::compilation_files::CompilationFiles;
3131
/// All information needed to define a Unit.
3232
///
3333
/// A unit is an object that has enough information so that cargo knows how to build it.
34-
/// For example, if your project has dependencies, then every dependency will be built as a library
35-
/// unit. If your project is a library, then it will be built as a library unit as well, or if it
34+
/// For example, if your package has dependencies, then every dependency will be built as a library
35+
/// unit. If your package is a library, then it will be built as a library unit as well, or if it
3636
/// is a binary with `main.rs`, then a binary will be output. There are also separate unit types
3737
/// for `test`ing and `check`ing, amongst others.
3838
///
@@ -462,7 +462,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
462462
// `CARGO_INCREMENTAL`.
463463
// * `profile.dev.incremental` - in `Cargo.toml` specific profiles can
464464
// be configured to enable/disable incremental compilation. This can
465-
// be primarily used to disable incremental when buggy for a project.
465+
// be primarily used to disable incremental when buggy for a package.
466466
// * Finally, each profile has a default for whether it will enable
467467
// incremental compilation or not. Primarily development profiles
468468
// have it enabled by default while release profiles have it disabled

src/cargo/core/compiler/job_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl<'a> JobQueue<'a> {
220220
// maximum number of parallel jobs we have tokens for). A local queue
221221
// is maintained separately from the main dependency queue as one
222222
// dequeue may actually dequeue quite a bit of work (e.g. 10 binaries
223-
// in one project).
223+
// in one package).
224224
//
225225
// After a job has finished we update our internal state if it was
226226
// successful and otherwise wait for pending work to finish if it failed

0 commit comments

Comments
 (0)