Cargo.toml 1.55 KB
Newer Older
Gav Wood's avatar
Gav Wood committed
[package]
name = "parity-scale-codec"
description = "SCALE - Simple Concatenating Aggregated Little Endians"
Gav Wood's avatar
Gav Wood committed
authors = ["Parity Technologies <admin@parity.io>"]
Gav's avatar
Gav committed
license = "Apache-2.0"
repository = "https://github.com/paritytech/parity-scale-codec"
categories = ["encoding"]
Gav Wood's avatar
Gav Wood committed

[dependencies]
arrayvec = { version = "0.5.1", default-features = false, features = ["array-sizes-33-128", "array-sizes-129-255"] }
serde = { version = "1.0.102", optional = true }
thiolliere's avatar
thiolliere committed
parity-scale-codec-derive = { path = "derive", version = "^1.0.2", default-features = false, optional = true }
Qinxuan Chen's avatar
Qinxuan Chen committed
bitvec = { version = "0.15", default-features = false, features = ["alloc"], optional = true }
byte-slice-cast = { version = "0.3.4", default-features = false, optional = true }
generic-array = { version = "0.13.2", optional = true }
thiolliere's avatar
thiolliere committed
[dev-dependencies]
thiolliere's avatar
thiolliere committed
serde_derive = { version = "1.0" }
thiolliere's avatar
thiolliere committed
parity-scale-codec-derive = { path = "derive", version = "^1.0.2", default-features = false }

[[bench]]
name = "benches"
harness = false

[lib]
bench = false
thiolliere's avatar
thiolliere committed

Gav Wood's avatar
Gav Wood committed
[features]
default = ["std"]
derive = ["parity-scale-codec-derive"]
std = ["serde", "bitvec/std", "byte-slice-cast/std"]
bit-vec = ["bitvec", "byte-slice-cast"]
Gav's avatar
Gav committed

# WARNING: DO _NOT_ USE THIS FEATURE IF YOU ARE WORKING ON CONSENSUS CODE!*
#
# Provides implementations for more data structures than just Vec and Box.
# Concretely it will provide parity-scale-codec implementations for many types
# that can be found in std and/or alloc.
Gav's avatar
Gav committed
[workspace]
members = [
Bastian Köcher's avatar
Bastian Köcher committed
	"derive",
Bastian Köcher's avatar
Bastian Köcher committed
	"fuzzer",