From f387dbb3726364514a3ad693a98d5b2f0bc9161b Mon Sep 17 00:00:00 2001 From: tatref Date: Tue, 30 Jan 2024 00:17:03 +0100 Subject: [PATCH] feat: derive serde for Pfn --- procfs-core/src/process/pagemap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/procfs-core/src/process/pagemap.rs b/procfs-core/src/process/pagemap.rs index a76ead3..289d24d 100644 --- a/procfs-core/src/process/pagemap.rs +++ b/procfs-core/src/process/pagemap.rs @@ -80,6 +80,7 @@ impl MemoryPageFlags { } /// A Page Frame Number, representing a 4 kiB physical memory page +#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))] #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Pfn(pub u64);