# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "agave-precompiles"
version = "4.0.0-beta.3"
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Solana precompiled programs."
homepage = "https://anza.xyz/"
documentation = "https://docs.rs/agave-precompiles"
readme = false
license = "Apache-2.0"
repository = "https://github.com/anza-xyz/agave"

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

[features]
agave-unstable-api = []

[lib]
name = "agave_precompiles"
path = "src/lib.rs"

[[bench]]
name = "ed25519_instructions"
path = "benches/ed25519_instructions.rs"

[[bench]]
name = "secp256k1_instructions"
path = "benches/secp256k1_instructions.rs"

[[bench]]
name = "secp256r1_instructions"
path = "benches/secp256r1_instructions.rs"

[dependencies.agave-feature-set]
version = "=4.0.0-beta.3"
features = ["agave-unstable-api"]

[dependencies.bincode]
version = "1.3.3"

[dependencies.digest]
version = "0.10.7"

[dependencies.ed25519-dalek]
version = "=1.0.1"

[dependencies.libsecp256k1]
version = "0.6.0"
features = [
    "std",
    "static-context",
    "hmac",
]
default-features = false

[dependencies.openssl]
version = "0.10"

[dependencies.sha3]
version = "0.10.8"

[dependencies.solana-ed25519-program]
version = "3.0.0"

[dependencies.solana-message]
version = "3.1.0"

[dependencies.solana-precompile-error]
version = "3.0.0"

[dependencies.solana-pubkey]
version = "4.1.0"
default-features = false

[dependencies.solana-sdk-ids]
version = "3.1.0"

[dependencies.solana-secp256k1-program]
version = "3.0.1"
features = ["serde"]

[dependencies.solana-secp256r1-program]
version = "3.0.0"
features = ["openssl-vendored"]

[dev-dependencies.agave-logger]
version = "=4.0.0-beta.3"
features = ["agave-unstable-api"]

[dev-dependencies.bytemuck]
version = "1.25.0"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.rand0-7]
version = "0.7"
package = "rand"

[dev-dependencies.solana-instruction]
version = "3.2.0"

[dev-dependencies.solana-keccak-hasher]
version = "3.1.0"
features = ["sha3"]

[dev-dependencies.solana-secp256k1-program]
version = "3.0.1"
features = ["bincode"]

[lints.clippy]
arithmetic_side_effects = "deny"
default_trait_access = "deny"
manual_let_else = "deny"
used_underscore_binding = "deny"

[lints.rust]
boxed_slice_into_iter = "deny"
dependency_on_unit_never_type_fallback = "deny"
deprecated_safe_2024 = "deny"
impl_trait_overcaptures = "deny"
missing_unsafe_on_extern = "deny"
never_type_fallback_flowing_into_unsafe = "deny"
rust_2024_guarded_string_incompatible_syntax = "deny"
rust_2024_incompatible_pat = "deny"
rust_2024_prelude_collisions = "deny"
static_mut_refs = "deny"
unsafe_attr_outside_unsafe = "deny"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    'cfg(target_os, values("solana"))',
    'cfg(feature, values("frozen-abi", "no-entrypoint"))',
    'cfg(target_arch, values("sbf"))',
]
