Expand description
Read-only reader for the subset of R’s RDS serialization format used by installed-package help databases.
parse reads a decompressed XDR serialization stream. file provides
the bounded standalone-file entry layer, including supported compression
envelopes.
This crate is scoped to installed-R-package information. Unknown SEXP
values are hard errors, never silently accepted. RObject/RValue are a
supported advanced API with encapsulated fields and non-exhaustive enums;
consumers must include wildcard match arms. The typed package views are
the stable convenience surface. parse accepts only decompressed XDR,
while file::from_bytes accepts raw XDR, gzip, xz, bzip2, and zstd
envelopes when enabled. Default resource limits are depth 5,000, vectors
8,000,000 elements, 16,000,000 total elements, and 256 MiB file inputs.
Modules§
- file
- Bounded standalone RDS file reading.
- package
- Typed access to an installed package’s
Meta/package.rdsmetadata.
Structs§
- Attribute
- Attributes
- Byte
Cursor - A read-only cursor over an in-memory byte slice.
- Header
- The serialized RDS stream header.
- Limits
- Persisted
- RObject
- RVersion
- An R version encoded in the serializer’s packed
major * 65536 + minor * 256 + patchform. - Symbol
Enums§
- EnvHandle
- An opaque handle to an environment.
- Error
- Decode errors produced by
rd-rds. - REncoding
- RStr
- RValue
- Sexp
Kind