File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,7 @@ impl Manifest {
483
483
pub fn contents ( & self ) -> & str {
484
484
self . contents . as_str ( )
485
485
}
486
+ /// See [`Manifest::resolved_toml`] for what "resolved" means
486
487
pub fn to_resolved_contents ( & self ) -> CargoResult < String > {
487
488
let toml = toml:: to_string_pretty ( self . resolved_toml ( ) ) ?;
488
489
Ok ( format ! ( "{}\n {}" , MANIFEST_PREAMBLE , toml) )
@@ -496,6 +497,11 @@ impl Manifest {
496
497
& self . original_toml
497
498
}
498
499
/// The [`TomlManifest`] with all fields expanded
500
+ ///
501
+ /// This is the intersection of what fields need resolving for cargo-publish that also are
502
+ /// useful for the operation of cargo, including
503
+ /// - workspace inheritance
504
+ /// - target discovery
499
505
pub fn resolved_toml ( & self ) -> & TomlManifest {
500
506
& self . resolved_toml
501
507
}
Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ fn to_workspace_root_config(
256
256
ws_root_config
257
257
}
258
258
259
+ /// See [`Manifest::resolved_toml`] for more details
259
260
#[ tracing:: instrument( skip_all) ]
260
261
fn resolve_toml (
261
262
original_toml : & manifest:: TomlManifest ,
You can’t perform that action at this time.
0 commit comments