layout | title | short_title |
---|---|---|
default |
Example Sbt Project |
Example Sbt Project |
This page will present an example project meant to quickly get you up and running with the miniboxing plugin.
Miniboxing-example
is an sbt project with a single source file. It is hosted on github at https://github.com/miniboxing/miniboxing-example and can be cloned by running:
{% highlight bash %} $ git clone https://github.com/miniboxing/miniboxing-example.git {% endhighlight %}
Once you cloned the project, change directory to miniboxing-example
and run sbt
. In the console, you'll have the following options:
compile
will compile the project (runningset scalacOptions += "-P:minibox:log"
beforecompile
will also log the class specialization process)run
will run the project: it will output the names of miniboxed classes for different cases, so you get a feeling of what miniboxing does under the hoodconsole
is probably the most interesting task, as it allows you to try your own programs with miniboxing (the other examples rely on using the console)
The README
file of the project shows the output you should expect for the different commands.
Like the miniboxing plugin, the example project is distributed under a 3-clause BSD license so you can build your project on top of it.
{% include status.md %}