Fix can not build with indexing-zh (#1433)
* fix can not build zola with search/indexing-zh feature * fix can not build components/utils after enabled indexing-zh feature error[E0252]: the name `Deserialize` is defined multiple times --> components/utils/src/de.rs:2:5 | 1 | use serde::{Deserialize, Deserializer}; | ----------- previous import of the macro `Deserialize` here 2 | use serde_derive::Deserialize; | ^^^^^^^^^^^^^^^^^^^^^^^^^ `Deserialize` reimported here | = note: `Deserialize` must be defined only once in the macro namespace of this module
This commit is contained in:
parent
421a2512f7
commit
4f7b960985
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -3016,7 +3016,6 @@ dependencies = [
|
|||
"minify-html",
|
||||
"percent-encoding",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
"slug",
|
||||
"tempfile",
|
||||
"tera",
|
||||
|
@ -3325,6 +3324,7 @@ dependencies = [
|
|||
"percent-encoding",
|
||||
"relative-path",
|
||||
"same-file",
|
||||
"search",
|
||||
"serde_json",
|
||||
"site",
|
||||
"termcolor",
|
||||
|
|
|
@ -44,6 +44,7 @@ site = { path = "components/site" }
|
|||
errors = { path = "components/errors" }
|
||||
front_matter = { path = "components/front_matter" }
|
||||
utils = { path = "components/utils" }
|
||||
search = { path = "components/search" }
|
||||
|
||||
[dev-dependencies]
|
||||
same-file = "1"
|
||||
|
|
|
@ -10,8 +10,7 @@ tera = "1"
|
|||
unicode-segmentation = "1.2"
|
||||
walkdir = "2"
|
||||
toml = "0.5"
|
||||
serde = "1"
|
||||
serde_derive = "1"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
slug = "0.1"
|
||||
percent-encoding = "2"
|
||||
filetime = "0.2.12"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use serde::{Deserialize, Deserializer};
|
||||
use serde_derive::Deserialize;
|
||||
use tera::{Map, Value};
|
||||
|
||||
/// Used as an attribute when we want to convert from TOML to a string date
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use serde_derive::{Deserialize, Serialize};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
|
|
|
@ -21,7 +21,7 @@ If you want to use per-language taxonomies, ensure you set the `lang` field in t
|
|||
configuration.
|
||||
|
||||
Note: By default, Chinese and Japanese search indexing is not included. You can include
|
||||
the support by building `zola` using `cargo build --features search/indexing-ja search/indexing-zh`.
|
||||
the support by building `zola` using `cargo build --features search/indexing-ja --features search/indexing-zh`.
|
||||
Please also note that, enabling Chinese indexing will increase the binary size by approximately
|
||||
5 MB while enabling Japanese indexing will increase the binary size by approximately 70 MB
|
||||
due to the incredibly large dictionaries.
|
||||
|
|
Loading…
Reference in a new issue