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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
//! # Ferrous Forge
//!
//! The Type-Safe Rust Development Standards Enforcer
//!
//! Ferrous Forge is a comprehensive system-wide tool that automatically enforces
//! professional Rust development standards across all projects on your machine.
//!
//! @task T016
//! @epic T014
//!
//! ## Features
//!
//! - Zero underscore bandaid coding enforcement
//! - Edition 2024 automatic upgrades
//! - System-wide cargo command hijacking
//! - Automatic project template injection
//! - Real-time code validation
//! - Professional CI/CD setup
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use ferrous_forge::{Config, Result};
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! // Load or create default configuration
//! let config = Config::load_or_default().await?;
//! println!("Ferrous Forge v{}", ferrous_forge::VERSION);
//! println!("Required edition: {}", config.required_edition);
//! Ok(())
//! }
//! ```
//!
//! ### CLI Usage
//!
//! ```bash
//! cargo install ferrous-forge
//! ferrous-forge init
//! cargo new my-project # Now follows all standards automatically
//! ```
//!
//! ## Modules
//!
//! ### Core
//! - [`cli`] — Command line interface definitions and argument parsing
//! - [`commands`] — Implementation of all Ferrous Forge commands
//! - [`config`] — Configuration management and hierarchical config system
//! - [`error`] — Error types and result handling
//!
//! ### Standards & Validation
//! - [`standards`] — Development standards definitions and enforcement
//! - [`validation`] — Core validation logic and rule enforcement
//! - [`safety`] — Safety pipeline and enforcement mechanisms
//! - [`formatting`] — Code formatting enforcement and validation
//!
//! ### Rust Ecosystem
//! - [`edition`] — Rust edition management and upgrade assistance
//! - [`rust_version`] — Rust version checking and compatibility validation
//! - [`doc_coverage`] — Documentation coverage checking and reporting
//! - [`security`] — Security auditing and vulnerability scanning
//! - [`test_coverage`] — Test coverage integration and reporting
//!
//! ### Tooling
//! - [`templates`] — Project template system and built-in templates
//! - [`git_hooks`] — Git hooks installation and management
//! - [`cargo_intercept`] — Cargo command interception for publish validation
//! - [`updater`] — Self-update functionality and version management
//!
//! ### Analysis
//! - [`ai_analyzer`] — AI-powered violation analysis and fix suggestions
//! - [`performance`] — Performance optimizations for validation
/// AI-powered violation analysis and fix suggestions
/// Cargo command interception for publish validation
/// Command line interface definitions and argument parsing
/// Implementation of all Ferrous Forge commands
/// Configuration management and hierarchical config system
/// Documentation coverage checking and reporting
/// Rust edition management and upgrade assistance
/// Error types and result handling
/// Code formatting enforcement and validation
/// Git hooks installation and management
/// Performance optimizations for validation
/// Rust version checking and compatibility validation
/// Safety pipeline and enforcement mechanisms
/// Security auditing and vulnerability scanning
/// Development standards definitions and enforcement
/// Project template system and built-in templates
/// Test coverage integration and reporting
/// Self-update functionality and version management
/// Core validation logic and rule enforcement
// Re-export commonly used types
pub use crateConfig;
pub use crate;
/// Current version of Ferrous Forge
pub const VERSION: &str = env!;
/// Minimum supported Rust version
pub const MIN_RUST_VERSION: &str = "1.82.0";
/// Edition enforced by Ferrous Forge
pub const REQUIRED_EDITION: &str = "2024";