# 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 = "2024"
name = "hpsvm-loader"
version = "0.1.6"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Helpers for working with bpf_loader and HPSVM"
readme = false
license = "Apache-2.0"
repository = "https://github.com/longcipher/hpsvm"

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

[[test]]
name = "loader"
path = "tests/loader.rs"

[dependencies.hpsvm]
version = "0.1.6"

[dependencies.solana-address]
version = "2.6.1"

[dependencies.solana-instruction]
version = "3.4.0"

[dependencies.solana-keypair]
version = "3.1.2"

[dependencies.solana-loader-v3-interface]
version = "7.0.0"
features = ["bincode"]

[dependencies.solana-signer]
version = "3.0.1"

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

[dependencies.solana-transaction-error]
version = "3.2.1"

[dev-dependencies.agave-feature-set]
version = "3.1.14"

[dev-dependencies.solana-account]
version = "3.4.0"

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

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

[dev-dependencies.test-log]
version = "0.2.21"

[lints.clippy]
allow_attributes = "deny"
as_ptr_cast_mut = "allow"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "allow"
collection_is_never_read = "warn"
dbg_macro = "deny"
debug_assert_with_mut_call = "allow"
default_trait_access = "allow"
derive_partial_eq_without_eq = "warn"
doc_markdown = "allow"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
expect_used = "allow"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "allow"
flat_map_option = "warn"
fn_params_excessive_bools = "allow"
format_push_string = "allow"
from_iter_instead_of_collect = "warn"
future_not_send = "allow"
if_not_else = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
items_after_statements = "allow"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "allow"
manual_assert = "warn"
manual_clamp = "warn"
manual_is_variant_and = "warn"
manual_string_new = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_collect = "allow"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "allow"
no_effect_underscore_binding = "allow"
non_send_fields_in_send_ty = "allow"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
or_fun_call = "warn"
panic = "allow"
path_buf_push_overwrite = "warn"
print_stderr = "deny"
print_stdout = "deny"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "allow"
redundant_else = "warn"
redundant_pub_crate = "allow"
ref_option = "allow"
ref_option_ref = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_char_pattern = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
struct_excessive_bools = "allow"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
todo = "deny"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
trivially_copy_pass_by_ref = "allow"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unimplemented = "deny"
uninhabited_references = "warn"
uninlined_format_args = "allow"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unused_async = "allow"
unused_peekable = "warn"
unused_rounding = "warn"
unwrap_used = "deny"
use_self = "warn"
useless_let_if_seq = "warn"
while_float = "warn"
zero_sized_map_values = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
deprecated = "allow"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rustdoc]
all = "warn"
