Class Project


  • public final class Project
    extends Object
    To create the cargo project.
    Since:
    1.0
    • 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.