Version 0.2.1

Library for building Ion binary skills.

Provides the standard self-management infrastructure that all Ion binary skills are expected to implement: self skill, self info, self check, self update.

Quick start

In build.rs:

fn main() {
    ionem::build::emit_target();
    ionem::build::copy_skill_md();  // or render_skill_md_vars / render_skill_md
}

In src/main.rs:

use ionem::self_update::SelfManager;

const SKILL_MD: &str = include_str!(concat!(env!("OUT_DIR"), "/SKILL.md"));

let manager = SelfManager::new(
    "owner/my-tool",
    "my-tool",
    "v",
    env!("CARGO_PKG_VERSION"),
    env!("TARGET"),
);

See [build] for SKILL.md preparation and [self_update::SelfManager] for the runtime API.

Modules

ModuleDescription
buildBuild-script helpers for binary skills.
error
releaseGitHub release fetching and platform detection for binary skills.
self_updateReusable self-management infrastructure for binary skills.
shell

Re-exports

  • pub use error::Error as Error
  • pub use error::Result as Result