Class LocalRustCompilerAbstract

Can compile Rust smart contracts. Will only perform a build if a contract is not built yet or FADROMA_REBUILD=1 is set.

Hierarchy (view full)

Constructors

Properties

buildGid?: number = ...

Owner gid that is set on build artifacts.

buildUid?: number = ...

Owner uid that is set on build artifacts.

caching: boolean = !this.config.getFlag('FADROMA_REBUILD', ()=>false)

Whether to enable caching and reuse contracts from artifacts directory.

config: Config
id: string = 'local'

Unique identifier of this compiler implementation.

noFetch: boolean = ...

Whether to skip any git fetch calls in the build script.

outputDir: Directory = ...

Name of directory where build artifacts are collected.

quiet: boolean = ...

Whether the build log should be printed only on error, or always

revision: string = Program.HEAD

Default Git reference from which to build sources.

script?: string = ...

The build script.

toolchain: string = ...

Version of Rust toolchain to use.

verbose: boolean = ...

Whether the build process should print more detail to the console.

Methods

  • This implementation groups the passed source by workspace and ref, in order to launch one build container per workspace/ref combination and have it build all the crates from that combination in sequence, reusing the container's internal intermediate build cache.

    Parameters

    Returns Promise<CompiledCode[]>

  • Parameters

    • sourcePath: string
    • sourceRef: string
    • tasks: Set<CompileTask>

    Returns void

  • Parameters

    • __namedParameters: {
          outputDir: string;
          sourceRef: string;
          tasks: Set<CompileTask>;
      }
      • outputDir: string
      • sourceRef: string
      • tasks: Set<CompileTask>

    Returns Promise<Record<number, CompiledCode>>

Generated using TypeDoc