Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Documentation says varint is the default, but it isn't unless you use Options #348

@joshtriplett

Description

@joshtriplett

The documentation at https://docs.rs/bincode/1.3.1/bincode/config/trait.Options.html says that the default int encoding is varint. If you use DefaultOptions, that's true: bincode::DefaultOptions::new().serialize_into(...) will use varint encoding. However, the top-level functions like bincode::serialize_into say they use "the default configuration", but they appear to use fixint encoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions