1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # Soon Migrate
//!
//! A CLI tool for migrating Solana Anchor projects to the SOON Network.
//!
//! This library provides the core functionality for the `soon-migrate` binary,
//! including configuration management, oracle detection, and migration logic.
//!
//! ## Features
//! - Migration of Solana Anchor project configurations
//! - Oracle detection and analysis
//! - Backup and restore functionality
//! - Detailed reporting and recommendations
/// Command-line interface configuration and argument parsing.
///
/// This module handles the definition and parsing of command-line arguments,
/// providing a clean interface for the rest of the application to access
/// user-provided configuration.
/// Error types used throughout the crate.
///
/// This module defines the error types and error handling utilities used
/// across the application, ensuring consistent error reporting and handling.
/// Core migration logic and functionality.
///
/// This module contains the main migration logic, including configuration
/// file parsing, backup/restore functionality, and the core migration process.
/// Oracle detection and analysis.
///
/// This module provides functionality to detect and analyze oracle usage
/// in Solana programs, with support for various oracle providers like
/// Pyth, Switchboard, and Chainlink.
/// Re-export commonly used items for easier access
pub use *;
pub use MigrationError;
pub use *;
pub use *;
/// The current version of the soon-migrate crate.
///
/// This is automatically set from the `Cargo.toml` version field.
pub const VERSION: &str = env!;