sailfish/docs/en/docs/installation.md

454 B

Installation

In order to use sailfish templates, you have add two dependencies in your Cargo.toml.

[dependencies]
sailfish = "0.0.3"
sailfish-macros = "0.0.3"

sailfish crate contains runtime for rendering contents, and sailfish-macros serves you derive macros to compile and import the template files.

These crates are separated so that Rust compiler can compile them independently. This separation makes your compilation faster!