2 releases (1 stable)

1.2.0 May 17, 2024
1.2.0-dev Mar 20, 2024

#1610 in Encoding

Download history 126/week @ 2024-06-16 102/week @ 2024-06-23 129/week @ 2024-06-30 95/week @ 2024-07-07 125/week @ 2024-07-14 156/week @ 2024-07-21 134/week @ 2024-07-28 200/week @ 2024-08-04 254/week @ 2024-08-11 421/week @ 2024-08-18 438/week @ 2024-08-25 466/week @ 2024-09-01 538/week @ 2024-09-08 447/week @ 2024-09-15 377/week @ 2024-09-22 308/week @ 2024-09-29

1,675 downloads per month
Used in 19 crates (14 directly)

Custom license

520KB
12K SLoC

Scrypto Binary Object Representation

Scrypto Binary Object Representation (SBOR) is an open, efficient and Rust-native data format used by Scrypto and Radix Engine V2.

Why Another Data Format?

Data serialization and deserialization are required for Scrypto in many places, e.g. system function calls and component interactions. We need a framework that supports efficient data encoding, decoding and describing.

Serde and its supported data formats have been a good start, but didn't meet all our requirements.

  • Bincode is performant but require data schema for decoding;
  • JSON is self-descriptive but is slow because of its text-based representation;
  • Neither supports schema generation.

Design Objectives

  • Rust Native: It should support most, if not all, Rust types.
  • Schemaless: It should support schemaless data encoding and encoding.
  • Fully Specified: It should come with full specification.
  • Fast: It should be fast.

Dependencies

~3MB
~66K SLoC