Package org.eolang.maven.rust_project
Class Cargo
- java.lang.Object
-
- org.eolang.maven.rust_project.Cargo
-
public class Cargo extends Object
Class to manipulate Cargo.toml file.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String crate, String version)
Adds dependency.void
save(File target)
Save it to specified folder.
-
-
-
Constructor Detail
-
Cargo
public Cargo(String name)
Ctor.- Parameters:
name
- Name of lib.
-
-
Method Detail
-
add
public void add(String crate, String version)
Adds dependency.- Parameters:
crate
- Dependency name.version
- Dependency version.
-
save
public void save(File target) throws IOException
Save it to specified folder.- Parameters:
target
- Directory where to save to.- Throws:
IOException
- If any issues with I/O
-
-