mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
refactor(embedded): Hide unused items
This commit is contained in:
parent
1df0ce5583
commit
3bbd1e5da7
@ -21,7 +21,7 @@ pub fn parse_from(path: &std::path::Path) -> CargoResult<RawScript> {
|
|||||||
parse(&body, path)
|
parse(&body, path)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse(body: &str, path: &std::path::Path) -> CargoResult<RawScript> {
|
fn parse(body: &str, path: &std::path::Path) -> CargoResult<RawScript> {
|
||||||
let comment = match extract_comment(body) {
|
let comment = match extract_comment(body) {
|
||||||
Ok(manifest) => Some(manifest),
|
Ok(manifest) => Some(manifest),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
@ -99,7 +99,7 @@ fn write(
|
|||||||
Ok(manifest_path)
|
Ok(manifest_path)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn expand_manifest(script: &RawScript, config: &Config) -> CargoResult<String> {
|
fn expand_manifest(script: &RawScript, config: &Config) -> CargoResult<String> {
|
||||||
let manifest = expand_manifest_(script, config)
|
let manifest = expand_manifest_(script, config)
|
||||||
.with_context(|| format!("failed to parse manifest at {}", script.path.display()))?;
|
.with_context(|| format!("failed to parse manifest at {}", script.path.display()))?;
|
||||||
let manifest = remap_paths(
|
let manifest = remap_paths(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user