arch_program 0.7.0

A Rust library for building programs that run inside the Arch Virtual Machine. Provides core functionality for creating instructions, managing accounts, handling program errors, and interacting with the Arch runtime environment. Includes utilities for logging, transaction handling, and Bitcoin UTXO management.
Documentation

Build #4095687 2026-08-10 16:54:33

# rustc version rustc 1.99.0-nightly (969b803cb 2026-08-09)

# docs.rs version docsrs 0.0.0 (c0e43eba3fa5e6341d933cf845300a19b1ac3e4e 2026-08-06 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "37a01a193485c6fd7c13bde35c87811c54831d687d97e281090b5da9255c7026" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260809-1.99.0-nightly-969b803cb\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting arch_program v0.7.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `Pack` [INFO] [stderr] | [INFO] [stderr] = note: the link appears in this line: [INFO] [stderr] [INFO] [stderr] The [`Pack`] serialization trait. [INFO] [stderr] ^^^^^^ [INFO] [stderr] = note: no item named `Pack` in scope [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `Rent::minimum_balance` [INFO] [stderr] --> src/rent.rs:14:57 [INFO] [stderr] | [INFO] [stderr] 14 | /// added to an accounts data length when calculating [`Rent::minimum_balance`]. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no item named `Rent` in scope [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `crate::sysvar::stake_history` [INFO] [stderr] --> src/stake/history.rs:7:32 [INFO] [stderr] | [INFO] [stderr] 7 | //! [`sysvar::stake_history`]: crate::sysvar::stake_history [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `sysvar` in module `arch_program` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `u8;33` [INFO] [stderr] --> src/vote/validator_state.rs:7:76 [INFO] [stderr] | [INFO] [stderr] 7 | /// It would be better to have the bootnode pubkey and whitelist saved as [u8;33] instead of Vec<u8> [INFO] [stderr] | ^^^^^ no item named `u8;33` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unclosed HTML tag `u8` [INFO] [stderr] --> src/vote/validator_state.rs:7:97 [INFO] [stderr] | [INFO] [stderr] 7 | /// It would be better to have the bootnode pubkey and whitelist saved as [u8;33] instead of Vec<u8> [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::invalid_html_tags)]` on by default [INFO] [stderr] help: try marking as source code [INFO] [stderr] | [INFO] [stderr] 7 | /// It would be better to have the bootnode pubkey and whitelist saved as [u8;33] instead of `Vec<u8>` [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: Rust code block is empty [INFO] [stderr] --> src/log.rs:56:1 [INFO] [stderr] | [INFO] [stderr] 56 | / /// Print a message to the log. [INFO] [stderr] 57 | | /// [INFO] [stderr] 58 | | /// Supports simple strings as well as Rust [format strings][fs]. When passed a [INFO] [stderr] 59 | | /// single expression it will be passed directly to [`sol_log`]. The expression [INFO] [stderr] ... | [INFO] [stderr] 82 | | /// ``` [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = help: mark blocks that do not contain Rust code as text: ```text [INFO] [stderr] = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/program_option.rs:883:35 [INFO] [stderr] | [INFO] [stderr] 883 | /// Returns [`COption::None`][COption::None]. [INFO] [stderr] | --------------- ^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 883 - /// Returns [`COption::None`][COption::None]. [INFO] [stderr] 883 + /// Returns [`COption::None`]. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `arch_program` (lib doc) generated 7 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: borsh v1.6.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/arch_program/index.html [INFO] running `Command { std: "docker" "inspect" "37a01a193485c6fd7c13bde35c87811c54831d687d97e281090b5da9255c7026", kill_on_drop: false }`