The optional backtrace feature is slightly problematic when deriving
Serialize and Deserialize. By default, the backtrace crate doesn't support
serde, but it has an optional feature to do so.
Ideally, this problem would be solved by adjusting the dependency in
Cargo.toml:
[features]
serde1 = ["serde", "backtrace?/serde"]
But this syntax is only available in rust 1.60, while the MSRV for
procfs is 1.48.
So the until we bump our MSRV, the backtrace field will be skiped for
serialization. Since this type has a Default impl, we could in theory
deserialize it, but that doesn't seem to make much sense, so the
InternalError struct no longer derives Deserialize.
The optional
backtrace
feature is slightly problematic when deriving Serialize and Deserialize. By default, thebacktrace
crate doesn't support serde, but it has an optional feature to do so.Ideally, this problem would be solved by adjusting the dependency in Cargo.toml:
But this syntax is only available in rust 1.60, while the MSRV for procfs is 1.48.
So the until we bump our MSRV, the
backtrace
field will be skiped for serialization. Since this type has aDefault
impl, we could in theory deserialize it, but that doesn't seem to make much sense, so theInternalError
struct no longer derives Deserialize.