Class RustNode

  • All Implemented Interfaces:
    FFINode

    public final class RustNode
    extends Object
    implements FFINode
    FFINode for Rust inserts.
    Since:
    0.34
    • 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.
    • 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.