0.1.0
This commit is contained in:
12
kb-program-ids/Cargo.toml
Normal file
12
kb-program-ids/Cargo.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# file: kb-program-ids/Cargo.toml
|
||||
# version: 1
|
||||
|
||||
[package]
|
||||
name = "kb-program-ids"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
22
kb-program-ids/src/lib.rs
Normal file
22
kb-program-ids/src/lib.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
// file: kb-program-ids/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
//! Program identifier registry.
|
||||
|
||||
/// One program identifier entry.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct ProgramIdEntry {
|
||||
/// Stable symbolic name.
|
||||
pub name: &'static str,
|
||||
/// Base58 program identifier.
|
||||
pub address: &'static str,
|
||||
}
|
||||
|
||||
/// Returns the initial canonical program registry.
|
||||
pub fn entries() -> &'static [crate::ProgramIdEntry] {
|
||||
return &[];
|
||||
}
|
||||
Reference in New Issue
Block a user