mirror of
https://github.com/rust-lang/cargo
synced 2024-10-16 04:32:24 +00:00
docs(embedded): Cross-link impls
This commit is contained in:
parent
98ed8abe6d
commit
2cd89e3c25
|
@ -85,6 +85,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
|
|||
ops::run(&ws, &compile_opts, &values_os(args, "args")).map_err(|err| to_run_error(config, err))
|
||||
}
|
||||
|
||||
/// See also `util/toml/mod.rs`s `is_embedded`
|
||||
pub fn is_manifest_command(arg: &str) -> bool {
|
||||
let path = Path::new(arg);
|
||||
1 < path.components().count() || path.extension() == Some(OsStr::new("rs"))
|
||||
|
|
|
@ -74,6 +74,7 @@ pub fn read_manifest(
|
|||
.map_err(|err| ManifestError::new(err, path.into()))
|
||||
}
|
||||
|
||||
/// See also `bin/cargo/commands/run.rs`s `is_manifest_command`
|
||||
fn is_embedded(path: &Path) -> bool {
|
||||
let ext = path.extension();
|
||||
ext.is_none() || ext == Some(OsStr::new("rs"))
|
||||
|
|
Loading…
Reference in a new issue