Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 2.8 KB

fennel_rules.md

File metadata and controls

48 lines (30 loc) · 2.8 KB

Public API re-exports

fennel_binary

fennel_binary(name, deps, data, tool)

Fennel binary target. Will run the given tool with the registered fennel toolchain.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
deps Runtime dependencies of target List of labels optional []
data extra files to be available at runtime List of labels optional []
tool fennel file to run Label required

fennel_library

fennel_library(name, deps, srcs, macros, preprocessor, strip_prefix)

Library of fennel, compiled all src files into one big lua file

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
deps fennel deps List of labels optional []
srcs fennel srcs List of labels required
macros fennel macros required for compilation, but will not be compiled into the library and left as .fnl files List of labels optional []
preprocessor Processes fennel files into a format suitable for passing to the fennel compiler without any extra magic flags that need passing Label optional None
strip_prefix Strip prefix from files before compiling String optional ""