Class Cargo


  • public class Cargo
    extends Object
    Class to manipulate Cargo.toml file.
    Since:
    1.0
    • 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