@@ -140,9 +140,9 @@ impl WorkMap {
140
140
}
141
141
142
142
pub struct Database {
143
- priv db_filename : Path ,
144
- priv db_cache : TreeMap < ~str , ~str > ,
145
- db_dirty : bool
143
+ db_filename : Path ,
144
+ db_cache : TreeMap < ~str , ~str > ,
145
+ pub db_dirty : bool ,
146
146
}
147
147
148
148
impl Database {
@@ -225,26 +225,26 @@ pub type FreshnessMap = TreeMap<~str,extern fn(&str,&str)->bool>;
225
225
226
226
#[ deriving( Clone ) ]
227
227
pub struct Context {
228
- db : Arc < RWLock < Database > > ,
229
- priv cfg: Arc < json:: Object > ,
228
+ pub db : Arc < RWLock < Database > > ,
229
+ cfg : Arc < json:: Object > ,
230
230
/// Map from kinds (source, exe, url, etc.) to a freshness function.
231
231
/// The freshness function takes a name (e.g. file path) and value
232
232
/// (e.g. hash of file contents) and determines whether it's up-to-date.
233
233
/// For example, in the file case, this would read the file off disk,
234
234
/// hash it, and return the result of comparing the given hash and the
235
235
/// read hash for equality.
236
- priv freshness : Arc < FreshnessMap >
236
+ freshness : Arc < FreshnessMap >
237
237
}
238
238
239
239
pub struct Prep < ' a > {
240
- priv ctxt : & ' a Context ,
241
- priv fn_name : & ' a str ,
242
- priv declared_inputs : WorkMap ,
240
+ ctxt : & ' a Context ,
241
+ fn_name : & ' a str ,
242
+ declared_inputs : WorkMap ,
243
243
}
244
244
245
245
pub struct Exec {
246
- priv discovered_inputs : WorkMap ,
247
- priv discovered_outputs : WorkMap
246
+ discovered_inputs : WorkMap ,
247
+ discovered_outputs : WorkMap
248
248
}
249
249
250
250
enum Work < ' a , T > {
0 commit comments