cargo_e/
lib.rs

1#![doc = include_str!("../README.md")]
2
3// Re-export std common modules
4pub mod prelude {
5    pub use std::env;
6    pub use std::error::Error;
7    pub use std::fs;
8    pub use std::io;
9    pub use std::path::{Path, PathBuf};
10    pub use std::process::exit;
11    pub use std::process::Child;
12    pub use std::process::Command;
13    pub use std::process::Stdio;
14    pub use std::sync::mpsc;
15    pub use std::sync::{Arc, Mutex};
16    pub use std::time::Instant;
17    pub use tracing::{debug, error, info};
18}
19
20pub mod e_findmain;
21pub use e_findmain::*;
22pub mod e_types;
23pub use e_types::*;
24pub mod e_bacon;
25pub use e_bacon::*;
26pub mod e_cli;
27pub use e_cli::Cli;
28pub mod e_manifest;
29pub use e_manifest::{collect_workspace_members, locate_manifest};
30pub mod e_parser;
31pub use e_parser::parse_available;
32pub mod e_runner;
33pub use e_runner::run_example;
34pub mod e_collect;
35pub mod e_command_builder;
36pub mod e_discovery;
37pub mod e_features;
38pub mod e_target;
39pub mod e_tui;
40pub mod e_workspace;
41
42#[allow(unused_macros)]
43macro_rules! doc_with_joke {
44    (
45        $(#[$attr:meta])*
46        $vis:vis fn $name:ident($($arg:tt)*) -> $ret:ty $body:block
47    ) => {
48        $(#[$attr])*                           // Re-emit external doc attributes.
49        #[doc = "Have you read the Guide for You To Read?"] // Extra injected doc comment.
50        $vis fn $name($($arg)*) -> $ret $body    // Emit the function.
51    };
52}
53
54// Define the helper macro.
55// macro_rules! doc_with_funny {
56//     ($doc:expr) => {
57//         #[doc = concat!($doc, "\n\nSee also the [Guide for You To Read](index.html) for more details.")]
58//     };
59// }
60
61// Define the helper macro that captures external attributes and injects an extra doc attribute.
62// macro_rules! doc_with_funny {
63//     (
64//         $(#[$attr:meta])*
65//         $vis:vis fn $name:ident($($arg:tt)*) -> $ret:ty $body:block
66//     ) => {
67//         $(#[$attr])*                           // Re-emit external doc attributes.
68//         #[doc = "Have you read the Guide for You To Read?"] // Extra injected doc comment.
69//         $vis fn $name($($arg)*) -> $ret $body    // Emit the function.
70//     };
71// }
72
73// #[doc = include_str!("../documents/guide.md")]
74// pub mod a_guide {
75//     /// An example constant to force module inclusion.
76//     doc_with_guide!("This function does something important.");
77//     pub const a_const: () = ();
78
79//     /// An example function to force module inclusion.
80//     pub fn a_function() {}
81
82//     /// An example struct to force module inclusion.
83//     pub struct AStruct;
84
85//     /// An example enum to force module inclusion.
86//     pub enum AEnum {
87//         AVariant,
88//     }
89
90//     /// An example trait to force module inclusion.
91//     pub trait ATrait {}
92
93//     /// An example type alias to force module inclusion.
94//     pub type AType = ();
95// }
96
97// // Re-export so the module shows in the public API.
98// pub use a_guide as __THE_GUIDE;
99
100#[macro_use]
101pub mod a_funny_docs;
102
103#[doc = include_str!("../documents/guide.md")]
104pub mod a_guide {
105    // A constant with a humorous aside
106    #[doc = "A wacky constant that reminds you of the fleeting nature of existence—because constants, like our dreams, never change."]
107    #[doc = "Imagine staring into the abyss of an unchanging value and laughing at the cosmic joke: even when everything is fixed, there’s always room for a little absurdity. In a world of mutable chaos, this constant stands as a monument to the absurdity of permanence."]
108    #[doc = "SEE ALSO THE **[GUIDE FOR YOU TO READ](index.html) FOR MORE DETAILS** ON THE MYSTERIES OF CONSTANTS."]
109    pub const A_CONST: () = ();
110    // A function with a humorous aside
111    #[doc = "An eccentric function that performs its task with a whimsical twist."]
112    #[doc = "Picture a function that cracks jokes as it runs—each call a mini stand-up routine where recursion becomes a humorous loop and error handling turns into a comedy of exceptions. This function reminds you that even in logic there is laughter."]
113    #[doc = "SEE ALSO THE **[GUIDE FOR YOU TO READ](index.html) FOR MORE DETAILS** ON THE ART OF FUNCTIONAL HUMOR."]
114    pub fn a_function() {}
115
116    // A struct with a humorous aside
117    #[doc = "A delightfully absurd struct that encapsulates the essence of lighthearted programming."]
118    #[doc = "Think of it as the punchline to a well-crafted joke: simple on the surface yet bursting with hidden layers of wit. This struct is the blueprint for designing data structures that know how to have a good time even when they’re being strictly typed."]
119    #[doc = "SEE ALSO THE **[GUIDE FOR YOU TO READ](index.html) FOR MORE DETAILS** ON STRUCTURING YOUR HUMOR."]
120    pub struct AStruct;
121
122    // An enum with a humorous aside
123    #[doc = "An enum whose variants are as unpredictable as the punchline of an offbeat comedy routine."]
124    #[doc = "Each variant is a different flavor of chaos—a reminder that sometimes, even in the binary world of enums, you need a twist of fate and a pinch of absurdity. Embrace the randomness with a hearty chuckle."]
125    #[doc = "SEE ALSO THE **[GUIDE FOR YOU TO READ](index.html) FOR MORE DETAILS** ON ENUMERATING THE LAUGHTER."]
126    //#[doc = doc_with_funny!("**ENUMERATE THE LAUGHTER:** This enum's variants are as surprising as a punchline in the middle of a monologue. Discover the unexpected twist in every variant.")]
127    pub enum AEnum {
128        #[doc = "A variant that boldly goes where no variant has gone before—capturing the essence of unexpected hilarity."]
129        AVariant,
130    }
131
132    // A trait with a humorous aside
133    #[doc = "A quirky trait that defines behaviors with a tongue-in-cheek twist."]
134    #[doc = "Imagine a trait written by a stand-up comedian: each method is a punchline, each implementation an opportunity for subtle humor. Types implementing this trait are expected not just to act, but to entertain—blending functionality with a dash of wit."]
135    #[doc = "SEE ALSO THE **[GUIDE FOR YOU TO READ](index.html) FOR MORE DETAILS** ON TRAIT-ORIENTED COMEDY."]
136    pub trait ATrait {}
137
138    // A type alias with a humorous aside
139    #[doc = "A type alias that serves as a humorous shortcut to a more verbose reality."]
140    #[doc = "Sometimes types need nicknames too. This alias is like that clever one-liner you whisper at a party—short, memorable, and unexpectedly delightful. It’s the wink in the midst of an otherwise serious type system."]
141    #[doc = "SEE ALSO THE **[GUIDE FOR YOU TO READ](index.html) FOR MORE DETAILS** ON ALIASING THE ORDINARY INTO THE EXTRAORDINARY."]
142    pub type AType = ();
143}
144
145/// If you didn't get it the first time, then look again!  
146/// Check out the **[GUIDE FOR YOU TO READ](theSeachIsOver/index.html)** for all the brilliant details you missed.
147pub use a_guide as theSeachIsOver;