resolve: None,
target_directory: ws.target_dir().display().to_string(),
version: VERSION,
+ workspace_root: ws.root().display().to_string(),
})
}
}),
target_directory: ws.target_dir().display().to_string(),
version: VERSION,
+ workspace_root: ws.root().display().to_string(),
})
}
resolve: Option<MetadataResolve>,
target_directory: String,
version: u32,
+ workspace_root: String,
}
/// Newtype wrapper to provide a custom `Serialize` implementation.
"root": "foo 0.5.0 (path+file:[..]foo)"
},
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#));
}
"root": "foo 0.5.0 (path+file:[..]foo)"
},
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#));
}
"root": "foo 0.5.0 (path+file:[..]foo)"
},
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#));
}
]
},
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#));
}
]
},
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#));
}
"root": null
},
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#))
}
"workspace_members": ["baz 0.5.0 (path+file:[..]baz)", "bar 0.5.0 (path+file:[..]bar)"],
"resolve": null,
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#))
}
"workspace_members": [ "foo 0.5.0 (path+file:[..]foo)" ],
"resolve": null,
"target_directory": "[..]foo[/]target",
- "version": 1
+ "version": 1,
+ "workspace_root": "[..][/]foo"
}"#;
#[test]