[package]
name = "borsh"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@near.org>"]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
categories = ["encoding", "network-programming"]
repository = "https://github.com/near/borsh-rs"
homepage = "https://borsh.io"
description = """
Binary Object Representation Serializer for Hashing
"""
exclude = ["*.snap"]
[lib]
name = "borsh"
path = "src/lib.rs"
[[example]]
name = "serde_json_value"
required-features = ["std", "derive"]
[[bin]]
name = "generate_schema_schema"
path = "src/generate_schema_schema.rs"
required-features = ["std", "unstable__schema"]
[build-dependencies]
cfg_aliases = "0.2.1"
[dependencies]
ascii = { version = "1.1", optional = true }
borsh-derive = { path = "../borsh-derive", version = "~1.5.3", optional = true }
hashbrown = { version = ">=0.11,<0.15.0", optional = true }
bytes = { version = "1", optional = true }
bson = { version = "2", optional = true }
[dev-dependencies]
insta = "1.29.0"
serde_json = { version = "1" }
[package.metadata.docs.rs]
features = ["derive", "unstable__schema", "rc"]
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = ["std"]
derive = ["borsh-derive"]
unstable__schema = ["derive", "borsh-derive/schema"]
std = []
rc = []
de_strict_order = []