0.1.0
This commit is contained in:
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