[package]
name = "rialo-s-program-error"
description = "Solana ProgramError type and related definitions."
documentation = "https://docs.rs/rialo-s-program-error"
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
publish = ["crates-io"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
all-features = true
rustdoc-args = ["--cfg=docsrs"]

[features]
borsh = ["dep:borsh"]
serde = ["dep:serde", "dep:serde_derive"]

[dependencies]
borsh = { workspace = true, optional = true }
num-traits = { workspace = true }
rialo-s-decode-error = { workspace = true }
rialo-s-instruction = { workspace = true, default-features = false, features = [
    "std",
] }
rialo-s-msg = { workspace = true }
rialo-s-pubkey = { workspace = true, default-features = false }
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }

[lints]
workspace = true
