perlmod: drop derive requirement on serde

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-10-15 09:37:24 +02:00
parent 55f3db4827
commit d253472380
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ maintenance = { status = "experimental" }
[dependencies]
bitflags = "1.2.1"
libc = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde = "1.0"
perlmod-macro = { path = "../perlmod-macro", optional = true, version = "0.4.0" }

View File

@ -213,8 +213,12 @@ pub fn stack_push(value: crate::Mortal) {
/// ```no_run
/// # use serde::Serialize;
///
/// # #[derive(Serialize)]
/// # struct Output;
/// # impl Serialize for Output {
/// # fn serialize<S: serde::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
/// # serializer.serialize_unit()
/// # }
/// # }
///
/// # fn code_to_extract_parameters() {}
/// # fn actual_rust_function(_arg: ()) -> Result<Output, String> { Ok(Output) }