mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 15:47:12 +00:00
Use serde derive feature directly
This commit is contained in:
parent
acda1c77ac
commit
3e1d0666e5
7 changed files with 16 additions and 14 deletions
10
rust/Cargo.lock
generated
10
rust/Cargo.lock
generated
|
@ -1,5 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "adler32"
|
||||
version = "1.0.4"
|
||||
|
@ -706,9 +708,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "minifier"
|
||||
version = "0.0.36"
|
||||
version = "0.0.41"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1152a0a768a747fd88f25b1d47d28b9450e11df8ebdcaadea4cc55d9c0e79673"
|
||||
checksum = "5594542d20834f2b974f5e5fb8e0cf1c67a2119dcadc29ef5d93a081fb30cc08"
|
||||
dependencies = [
|
||||
"macro-utils",
|
||||
]
|
||||
|
@ -1258,7 +1260,6 @@ dependencies = [
|
|||
"select",
|
||||
"semver",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
"serde_json",
|
||||
"tar",
|
||||
"tokio",
|
||||
|
@ -1339,6 +1340,9 @@ name = "serde"
|
|||
version = "1.0.104"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "414115f25f818d7dfccec8ee535d76949ae78584fc4f79a6f45a904bf8ab4449"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
|
|
|
@ -3,12 +3,12 @@ name = "rust-search-extension"
|
|||
version = "0.1.0"
|
||||
authors = ["Folyd <lyshuhow@gmail.com>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.102"
|
||||
serde_json = "1.0.41"
|
||||
serde_derive = "1.0.102"
|
||||
minifier = "0.0.36"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
minifier = "0.0.41"
|
||||
unicode-segmentation = "1.6.0"
|
||||
futures = "0.3.1"
|
||||
tokio = { version = "0.2", features = ["macros", "time"] }
|
||||
|
|
|
@ -7,8 +7,7 @@ use select::document::Document;
|
|||
use select::node::Node;
|
||||
use select::predicate::{Class, Name};
|
||||
use serde::ser::SerializeTuple;
|
||||
use serde::{Serialize, Serializer};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use serde::{Deserialize, Serialize, Serializer};
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
use crate::minify::Minifier;
|
||||
|
|
|
@ -10,7 +10,7 @@ use libflate::gzip::Decoder;
|
|||
use rayon::prelude::*;
|
||||
use semver::Version;
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde_derive::Deserialize;
|
||||
use serde::Deserialize;
|
||||
use tar::Archive;
|
||||
|
||||
use crate::minify::Minifier;
|
||||
|
|
|
@ -3,8 +3,7 @@ use std::path::Path;
|
|||
|
||||
use argh::FromArgs;
|
||||
use serde::ser::SerializeTuple;
|
||||
use serde::{Serialize, Serializer};
|
||||
use serde_derive::Deserialize;
|
||||
use serde::{Deserialize, Serialize, Serializer};
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
use crate::tasks::Task;
|
||||
|
|
|
@ -4,7 +4,7 @@ use std::fs;
|
|||
use std::path::Path;
|
||||
|
||||
use argh::FromArgs;
|
||||
use serde_derive::Deserialize;
|
||||
use serde::Deserialize;
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
use crate::minify::Minifier;
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::{fs, path::Path};
|
|||
use super::Task;
|
||||
use argh::FromArgs;
|
||||
use rayon::slice::ParallelSliceMut;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
const INDEX_PATH: &str = "../extension/index/rfcs.js";
|
||||
|
||||
|
|
Loading…
Reference in a new issue