Registry / crypto / anchor-attribute-access-control

anchor-attribute-access-control

JSON →
library1.0.2rscratesunverified

Anchor attribute macro for instruction access control in Solana programs.

# Cargo.toml [dependencies] anchor-attribute-access-control = "1.0.2"
INSTALL
IMPORT
SIG · ANCHOR-ATTRIBUTE-A
A
anchor-attribute-access-control
cryptorustv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

access_control
use anchor_attribute_access_control::access_control;

Apply access control to an Anchor instruction.

use anchor_attribute_access_control::access_control; #[access_control] pub fn my_instruction(ctx: Context<MyAccounts>) -> Result<()> { Ok(()) }
Debug
Known issues
gotchaRequires the `anchor-lang` crate and Solana SDK.
fix
Add `anchor-lang` and `solana-program` to dependencies.
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
40
Resources
anchor-attribute-access-control — cargo add anchor-attribute-access-control · libregistry