Package org.eolang.maven.rust_project
Class Project
- java.lang.Object
-
- org.eolang.maven.rust_project.Project
-
public final class Project extends Object
To create the cargo project.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String name, String raw, List<String> crates)
Adds the module to the project.Path
save()
Saves the project to file system.
-
-
-
Constructor Detail
-
Project
public Project(Path target)
Ctor. Creates a raw cargo project.- Parameters:
target
- Destination path.
-
-
Method Detail
-
add
public void add(String name, String raw, List<String> crates) throws IOException
Adds the module to the project.- Parameters:
name
- Name of function in project.raw
- Content of rust insert.crates
- Dependencies of the module.- Throws:
IOException
- If any issues with I/O
-
save
public Path save() throws IOException
Saves the project to file system.- Returns:
- Path to project.
- Throws:
IOException
- If any issues with I/O.
-
-