2 releases
| 0.1.1 | Sep 4, 2025 |
|---|---|
| 0.1.0 | Sep 4, 2025 |
#10 in #sbf
290 downloads per month
Used in arch-token-metadata-cli
190KB
66 lines
Contains (ELF lib, 185KB) elf/arch_token_metadata.so
arch_token_metadata_elf
Prebuilt ELF binary for the Arch Token Metadata on-chain program.
- This crate embeds the compiled program binary at compile time using
include_bytes!. - The build script prefers a packaged
elf/arch_token_metadata.so(included in the crate), and falls back to a workspace-built artifact during local development.
Usage:
use arch_token_metadata_elf::{ARCH_TOKEN_METADATA_ELF, PROGRAM_ID};
let elf_bytes: &[u8] = ARCH_TOKEN_METADATA_ELF;
let program_id: [u8; 32] = PROGRAM_ID;
Publishing notes:
- Ensure
elf/arch_token_metadata.soexists before publishing. In this workspace, build the program with:cargo build-sbf --manifest-path programs/arch-token-metadata/Cargo.tomland copy the output tosdks/arch-token-metadata-elf/elf/arch_token_metadata.so.
Dependencies
~14MB
~228K SLoC