Class RustNode

    • Field Detail

      • LIB

        public static final String LIB
        Name of executable file which is result of cargo building.
    • Constructor Detail

      • RustNode

        public RustNode​(com.jcabi.xml.XML node,
                        Names names,
                        Path lib,
                        Path portal,
                        Path generated)
        Ctor.
        Parameters:
        node - Node.
        names - Names.
        lib - Lib directory.
        portal - Portal directory.
        generated - Generated directory.
      • RustNode

        public RustNode​(com.jcabi.xml.XML node,
                        String name,
                        Path lib,
                        Path portal,
                        Path generated)
        Main constructor.
        Parameters:
        node - Node.
        name - Name.
        lib - Lib directory.
        portal - Portal directory.
        generated - Generated directory.
    • Method Detail

      • generate

        public void generate()
                      throws IOException
        Description copied from interface: FFINode
        Generate necessary files in target. For example, for rust nodes we need to create cargo project in target/Lib and java files in target/generated/EOrust/natives/
        Specified by:
        generate in interface FFINode
        Throws:
        IOException - if any issues with IO.
      • build

        public void build​(Path cache)
        Description copied from interface: Buildable
        Build it.
        Specified by:
        build in interface Buildable
        Parameters:
        cache - Where to save for caching.