mirror of
https://git.proxmox.com/git/perlmod
synced 2025-10-04 22:07:05 +00:00
perlmod: drop derive requirement on serde
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
55f3db4827
commit
d253472380
@ -17,7 +17,7 @@ maintenance = { status = "experimental" }
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "1.2.1"
|
bitflags = "1.2.1"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = "1.0"
|
||||||
|
|
||||||
perlmod-macro = { path = "../perlmod-macro", optional = true, version = "0.4.0" }
|
perlmod-macro = { path = "../perlmod-macro", optional = true, version = "0.4.0" }
|
||||||
|
|
||||||
|
@ -213,8 +213,12 @@ pub fn stack_push(value: crate::Mortal) {
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use serde::Serialize;
|
/// # use serde::Serialize;
|
||||||
///
|
///
|
||||||
/// # #[derive(Serialize)]
|
|
||||||
/// # struct Output;
|
/// # 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 code_to_extract_parameters() {}
|
||||||
/// # fn actual_rust_function(_arg: ()) -> Result<Output, String> { Ok(Output) }
|
/// # fn actual_rust_function(_arg: ()) -> Result<Output, String> { Ok(Output) }
|
||||||
|
Loading…
Reference in New Issue
Block a user