2020-06-09 08:19:59 -04:00
|
|
|
# Installation
|
|
|
|
|
|
|
|
In order to use sailfish templates, you have add two dependencies in your `Cargo.toml`.
|
|
|
|
|
2021-01-03 04:00:29 -05:00
|
|
|
``` toml
|
2020-06-09 08:19:59 -04:00
|
|
|
[dependencies]
|
2023-10-22 05:01:13 -04:00
|
|
|
sailfish = "0.8.3"
|
2020-06-09 08:19:59 -04:00
|
|
|
```
|
2020-12-16 10:04:47 -05:00
|
|
|
|
2021-01-03 04:00:29 -05:00
|
|
|
## Feature Flags
|
|
|
|
|
|
|
|
Sailfish accepts the following feature flags
|
2020-12-16 10:04:47 -05:00
|
|
|
|
2021-01-01 05:08:24 -05:00
|
|
|
|Feature|Description|
|
|
|
|
|--|--|
|
|
|
|
|derive|enable derive macros (enabled by default)|
|
|
|
|
|json|enable `json` filter|
|
|
|
|
|perf-inline|Add more `#[inline]` attributes. This may improve rendering performance, but generates a bit larger binary (enabled by default)|
|