multiliquid-svm-sdk 0.1.2

Unsigned transaction builders, account codecs, and quoting for Multiliquid on Solana
Documentation
//! Integration guides and runnable examples, published alongside the API reference.
//!
//! - [`integration`]: client configuration, quotes, transactions, and Treasury planning.
//! - [`mainnet`]: deployment addresses and a read-only HTTP quote walkthrough.
//! - [`offline_quote`]: deterministic quotes and instruction encoding without RPC.
//! - [`development`]: contributor checks, packaging, and releases.

// Each guide ends with relative link definitions for reading on GitHub. Markdown uses the first definition of a
// label, so these intra-doc definitions take precedence in rustdoc and keep navigation within the built version.
macro_rules! guide_links {
    () => {
        "[quickstart]: crate\n\
         [guides]: crate::guides\n\
         [integration]: crate::guides::integration\n\
         [mainnet]: crate::guides::mainnet\n\
         [complete-example]: crate::guides::mainnet#complete-http-quote-example\n"
    };
}

macro_rules! http_quote_example {
    ($fence:literal) => {
        concat!(
            "\n## Complete HTTP quote example\n\nCopy this program into `src/main.rs` in your application.\n\n```",
            $fence,
            "\n",
            include_str!("../examples/quote.rs"),
            "\n```\n"
        )
    };
}

#[doc = guide_links!()]
#[doc = include_str!("../docs/integration.md")]
pub mod integration {}

#[doc = guide_links!()]
#[doc = include_str!("../docs/mainnet.md")]
// Always render the program; it compiles as a doctest only when its required `http` feature is enabled.
#[cfg_attr(feature = "http", doc = http_quote_example!("no_run"))]
#[cfg_attr(not(feature = "http"), doc = http_quote_example!("ignore"))]
pub mod mainnet {}

/// Deterministic quote and instruction encoding with synthetic account data.
///
/// This program works with default features disabled and performs no RPC calls.
/// Copy it into `src/main.rs` in an application depending on `multiliquid-svm-sdk`,
/// then run `cargo run`. It does not require Tokio.
///
/// From a repository checkout, run:
///
/// ```bash
/// cargo run --manifest-path rust/Cargo.toml --locked --no-default-features --example offline_quote
/// ```
#[doc = concat!("\n```rust\n", include_str!("../examples/offline_quote.rs"), "\n```\n")]
pub mod offline_quote {}

#[doc = guide_links!()]
#[doc = include_str!("../docs/development.md")]
pub mod development {}