Serde (original) (raw)

Introduction

A serde integration is gated behind the "serde" feature flag. It is slower, produces slightly larger output, and (by extension) is not compatible with the nativebitcode::{Encode, Decode}.

Unsupported features

bitcode isn't self-describing, so it doesn't support serde features that rely on self-description:

The serde version of bitcode only supports up to 256 variants per enum.

Compatibility notes