Skip to main content

Assemblies

An assembly is what a build makes: a single file, named by the project's coordinate, that holds all of its compiled code. There are two kinds, one for each kind of build file.

Build fileMakesFor a project robot at 0.1.0
IsolateAssemblyBuildA program, which a board runsout/robot-0.1.0.nylon
LibraryAssemblyBuildA library, which other projects useout/robot-0.1.0.nylib

A build goes to the project's out/ folder. A new version doesn't replace an old one, so out/ keeps both.

What has to hold​

  • A build with any problem writes nothing. You never get a half-built assembly: fix what the build reports, and build again.
  • Each module compiles on its own, against the libraries the build file names.
  • A program needs an entry point. If it has more than one, exactly one is marked entrypoint.default (Getting Started).
  • A library has no entry point. It runs only as part of a program that uses it.

Building and running​

In IntelliJ, Run builds the project first, the same way Build does, and then sends the program to your board. The run window names the board the program went to.