[dependencies.bytemuck]
default-features = false
features = ["derive", "const_zeroed", "align_offset"]
version = "^1"
[dependencies.paste]
default-features = false
version = "^1"
[dependencies.pina_macros]
default-features = false
optional = true
version = "0.2.0"
[dependencies.pinocchio]
default-features = false
version = "^0.9"
[dependencies.pinocchio-associated-token-account]
default-features = false
optional = true
version = "^0.2"
[dependencies.pinocchio-log]
default-features = false
features = ["macro"]
optional = true
version = "^0.5"
[dependencies.pinocchio-pubkey]
default-features = false
features = ["const"]
version = "^0.3"
[dependencies.pinocchio-system]
default-features = false
version = "^0.3"
[dependencies.pinocchio-token]
default-features = false
optional = true
version = "^0.4"
[dependencies.pinocchio-token-2022]
default-features = false
optional = true
version = "^0.1"
[dependencies.typed-builder]
default-features = false
version = "^0.23"
[features]
default = ["logs", "derive"]
derive = ["dep:pina_macros"]
logs = ["dep:pinocchio-log"]
token = ["dep:pinocchio-associated-token-account", "dep:pinocchio-token", "dep:pinocchio-token-2022"]
[lib]
name = "pina"
path = "src/lib.rs"
[lints.clippy]
blocks_in_conditions = "allow"
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expl_impl_clone_on_copy = "allow"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
no_effect_underscore_binding = "allow"
tabs-in-doc-comments = "allow"
too_many_lines = "allow"
wildcard_dependencies = "deny"
wildcard_imports = "allow"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
edition_2024_expr_fragment_specifier = "allow"
unsafe_code = "deny"
unstable_features = "deny"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
check-cfg = ['cfg(target_os, values("solana"))', 'cfg(target_feature, values("static-syscalls"))']
level = "warn"
priority = 0
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "a solana and pinocchio smart contract framework"
edition = "2024"
homepage = "https://pina.rs"
keywords = ["solana", "pinnochio"]
license = "Apache-2.0"
name = "pina"
readme = "readme.md"
repository = "https://github.com/pina-rs/pina"
resolver = "2"
version = "0.2.0"
[[test]]
name = "account_macro"
path = "tests/account_macro.rs"
[[test]]
name = "accounts_derive"
path = "tests/accounts_derive.rs"
[[test]]
name = "discriminator_macro"
path = "tests/discriminator_macro.rs"
[[test]]
name = "error_macro"
path = "tests/error_macro.rs"
[[test]]
name = "event_macro"
path = "tests/event_macro.rs"
[[test]]
name = "instruction_macro"
path = "tests/instruction_macro.rs"