File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
crates/cargo-test-support/src Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,13 @@ pub struct Project {
233
233
234
234
/// Create a project to run tests against
235
235
///
236
- /// The project can be constructed programmatically or from the filesystem with [`Project::from_template`]
236
+ /// - Creates a [`basic_manifest`] if one isn't supplied
237
+ ///
238
+ /// To get started, see:
239
+ /// - [`project`]
240
+ /// - [`project_in`]
241
+ /// - [`project_in_home`]
242
+ /// - [`Project::from_template`]
237
243
#[ must_use]
238
244
pub struct ProjectBuilder {
239
245
root : Project ,
@@ -257,6 +263,7 @@ impl ProjectBuilder {
257
263
self . root . target_debug_dir ( )
258
264
}
259
265
266
+ /// Create project in `root`
260
267
pub fn new ( root : PathBuf ) -> ProjectBuilder {
261
268
ProjectBuilder {
262
269
root : Project { root } ,
@@ -266,6 +273,7 @@ impl ProjectBuilder {
266
273
}
267
274
}
268
275
276
+ /// Create project, relative to [`paths::root`]
269
277
pub fn at < P : AsRef < Path > > ( mut self , path : P ) -> Self {
270
278
self . root = Project {
271
279
root : paths:: root ( ) . join ( path) ,
You can’t perform that action at this time.
0 commit comments