From 0b8a19f5cc38dcc50f6c8c71700490c8ad921d49 Mon Sep 17 00:00:00 2001 From: Kogia-sima Date: Sun, 20 Dec 2020 22:24:31 +0900 Subject: [PATCH] doc: no longer requires `extern crate sailfish_macros` --- README.md | 4 ---- docs/en/docs/getting-started.md | 5 +---- docs/en/docs/installation.md | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 385deaf..237ee24 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ Dependencies: ```toml [dependencies] sailfish = "0.3.0" -sailfish-macros = "0.3.0" ``` Template file (templates/hello.stpl): @@ -48,9 +47,6 @@ Template file (templates/hello.stpl): Code: ```rust -#[macro_use] -extern crate sailfish_macros; // enable derive macro - use sailfish::TemplateOnce; #[derive(TemplateOnce)] diff --git a/docs/en/docs/getting-started.md b/docs/en/docs/getting-started.md index b16cf83..bfbebee 100644 --- a/docs/en/docs/getting-started.md +++ b/docs/en/docs/getting-started.md @@ -29,10 +29,7 @@ templates/ Import the sailfish crates: ```rust -#[macro_use] -extern crate sailfish_macros; // enable derive macros - -use sailfish::TemplateOnce; // import `TemplateOnce` trait +use sailfish::TemplateOnce; ``` Define the template struct to be rendered: diff --git a/docs/en/docs/installation.md b/docs/en/docs/installation.md index 292bbe3..26c4475 100644 --- a/docs/en/docs/installation.md +++ b/docs/en/docs/installation.md @@ -5,7 +5,6 @@ In order to use sailfish templates, you have add two dependencies in your `Cargo ```toml [dependencies] sailfish = "0.3.0" -sailfish-macros = "0.3.0" ``` `sailfish` crate contains runtime for rendering contents, and `sailfish-macros` serves you derive macros to compile and import the template files.