@@ -3,7 +3,6 @@ use std::collections::{BTreeMap, HashMap};
3
3
use std:: fmt;
4
4
use std:: hash:: { Hash , Hasher } ;
5
5
use std:: path:: { Path , PathBuf } ;
6
- use std:: rc:: Rc ;
7
6
use std:: sync:: Arc ;
8
7
9
8
use anyhow:: Context as _;
@@ -62,10 +61,10 @@ impl EitherManifest {
62
61
#[ derive( Clone , Debug ) ]
63
62
pub struct Manifest {
64
63
// alternate forms of manifests:
65
- contents : Rc < String > ,
66
- document : Rc < toml_edit:: ImDocument < String > > ,
67
- original_toml : Rc < TomlManifest > ,
68
- normalized_toml : Rc < TomlManifest > ,
64
+ contents : Arc < String > ,
65
+ document : Arc < toml_edit:: ImDocument < String > > ,
66
+ original_toml : Arc < TomlManifest > ,
67
+ normalized_toml : Arc < TomlManifest > ,
69
68
summary : Summary ,
70
69
71
70
// this form of manifest:
@@ -108,10 +107,10 @@ pub struct Warnings(Vec<DelayedWarning>);
108
107
#[ derive( Clone , Debug ) ]
109
108
pub struct VirtualManifest {
110
109
// alternate forms of manifests:
111
- contents : Rc < String > ,
112
- document : Rc < toml_edit:: ImDocument < String > > ,
113
- original_toml : Rc < TomlManifest > ,
114
- normalized_toml : Rc < TomlManifest > ,
110
+ contents : Arc < String > ,
111
+ document : Arc < toml_edit:: ImDocument < String > > ,
112
+ original_toml : Arc < TomlManifest > ,
113
+ normalized_toml : Arc < TomlManifest > ,
115
114
116
115
// this form of manifest:
117
116
replace : Vec < ( PackageIdSpec , Dependency ) > ,
@@ -500,10 +499,10 @@ compact_debug! {
500
499
501
500
impl Manifest {
502
501
pub fn new (
503
- contents : Rc < String > ,
504
- document : Rc < toml_edit:: ImDocument < String > > ,
505
- original_toml : Rc < TomlManifest > ,
506
- normalized_toml : Rc < TomlManifest > ,
502
+ contents : Arc < String > ,
503
+ document : Arc < toml_edit:: ImDocument < String > > ,
504
+ original_toml : Arc < TomlManifest > ,
505
+ normalized_toml : Arc < TomlManifest > ,
507
506
summary : Summary ,
508
507
509
508
default_kind : Option < CompileKind > ,
@@ -742,10 +741,10 @@ impl Manifest {
742
741
743
742
impl VirtualManifest {
744
743
pub fn new (
745
- contents : Rc < String > ,
746
- document : Rc < toml_edit:: ImDocument < String > > ,
747
- original_toml : Rc < TomlManifest > ,
748
- normalized_toml : Rc < TomlManifest > ,
744
+ contents : Arc < String > ,
745
+ document : Arc < toml_edit:: ImDocument < String > > ,
746
+ original_toml : Arc < TomlManifest > ,
747
+ normalized_toml : Arc < TomlManifest > ,
749
748
replace : Vec < ( PackageIdSpec , Dependency ) > ,
750
749
patch : HashMap < Url , Vec < Dependency > > ,
751
750
workspace : WorkspaceConfig ,
0 commit comments