[package]
name = "near-parameters"
version.workspace = true
authors.workspace = true
edition.workspace = true
description = "This crate provides the information about the configuration of the near protocol"
repository.workspace = true
license.workspace = true
publish = true

[lints]
workspace = true

[dependencies]
enum-map.workspace = true
num-rational.workspace = true
serde.workspace = true
serde_yaml.workspace = true
serde_repr.workspace = true
schemars = {workspace = true, optional = true }
strum.workspace = true
thiserror.workspace = true
borsh.workspace = true
clap = { workspace = true, optional = true }

# FIXME: this ideally should not depend on near-primitives-core...
near-primitives-core.workspace = true
near-account-id.workspace = true
near-schema-checker-lib.workspace = true

[dev-dependencies]
assert_matches.workspace = true
insta.workspace = true

[features]
nightly = [
  "near-primitives-core/nightly",
]
calimero_zero_storage = []

protocol_schema = [
  "near-schema-checker-lib/protocol_schema",
]

schemars = [
  "dep:schemars",
  "near-primitives-core/schemars",
]
