Remove serde_stacker which depends on cc

This commit is contained in:
Edwin Cheng 2021-01-01 15:26:55 +08:00
parent a65025604d
commit ae92baba6a
3 changed files with 1 additions and 36 deletions

33
Cargo.lock generated
View file

@ -1182,7 +1182,6 @@ dependencies = [
"log",
"serde",
"serde_json",
"serde_stacker",
"tt",
]
@ -1240,15 +1239,6 @@ dependencies = [
"toolchain",
]
[[package]]
name = "psm"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a"
dependencies = [
"cc",
]
[[package]]
name = "pulldown-cmark"
version = "0.8.0"
@ -1567,16 +1557,6 @@ dependencies = [
"syn",
]
[[package]]
name = "serde_stacker"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4c92391a63e3b83f77334d8beaaf11bac4c900f3769483e543bf76a81bf8ee2"
dependencies = [
"serde",
"stacker",
]
[[package]]
name = "sharded-slab"
version = "0.1.0"
@ -1622,19 +1602,6 @@ dependencies = [
"text_edit",
]
[[package]]
name = "stacker"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21ccb4c06ec57bc82d0f610f1a2963d7648700e43a6f513e564b9c89f7991786"
dependencies = [
"cc",
"cfg-if 0.1.10",
"libc",
"psm",
"winapi 0.3.9",
]
[[package]]
name = "stdx"
version = "0.0.0"

View file

@ -12,7 +12,6 @@ doctest = false
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_stacker = "0.1"
log = "0.4.8"
crossbeam-channel = "0.5.0"
jod-thread = "0.1.1"

View file

@ -63,8 +63,7 @@ pub trait Message: Serialize + DeserializeOwned {
// Note that some proc-macro generate very deep syntax tree
// We have to disable the current limit of serde here
deserializer.disable_recursion_limit();
let deserializer = serde_stacker::Deserializer::new(&mut deserializer);
Some(Self::deserialize(deserializer)?)
Some(Self::deserialize(&mut deserializer)?)
}
})
}