build: fix compilation without default features (#218)

* build: fix compilation with optional features
* Remove unused config from Cargo.toml
* Fix cache keys
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
morenol
2022-11-02 05:09:03 -05:00
committed by GitHub
parent 4cf7e4d7b7
commit 4b096ad558
7 changed files with 45 additions and 15 deletions
+3 -1
View File
@@ -52,6 +52,7 @@ impl<'a> Debug for dyn Kernel<'_> + 'a {
}
}
#[cfg(feature = "serde")]
impl<'a> Serialize for dyn Kernel<'_> + 'a {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
@@ -64,7 +65,8 @@ impl<'a> Serialize for dyn Kernel<'_> + 'a {
}
/// Pre-defined kernel functions
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone)]
pub struct Kernels {}
impl<'a> Kernels {