embed_rust_in_rust/
lib.rs

1//! # Embed Rust 🚀 in Rust 🚀 easily.
2//! To get started, add `use embed-rust`🚀`-in-rust`🚀`::*;` to your code
3//!
4//! Then, create a function called `main`
5//!
6//! Congratulations! You have now embedded Rust 🚀 in Rust 🚀!
7//!
8//! Ferris is proud of you. 
9
10/// This function tells you if the code is running in Rust 🚀.
11// There's more to this code then it seems, but it's a secret
12pub fn is_in_rust() -> bool {
13    true
14}
15
16#[cfg(test)]
17mod tests {
18    use super::*;
19
20    #[test]
21    fn it_works() {
22        // Tests run in Rust 🚀, thus it needs to be true
23        let result = is_in_rust();
24        assert_eq!(result, true);
25    }
26}