doc: Update installation section in documents

This commit is contained in:
Kogia-sima 2021-01-01 19:08:24 +09:00
parent f113734981
commit 5f49f7f938
1 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,10 @@ In order to use sailfish templates, you have add two dependencies in your `Cargo
sailfish = "0.3.0"
```
`sailfish` crate contains runtime for rendering contents, and `sailfish-macros` serves you derive macros to compile and import the template files.
### Feature Flags
These crates are separated so that Rust compiler can compile them independently. This separation makes your compilation faster!
|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)|