#up #unsafe #replace #reader #trust #bug #shut

bin+lib shut_up

Use trust_me、shut_up or other keywords replace 'unsafe'. Compiler shut up! Readers shut up too! My code has no bugs, trust me!

2 releases

0.1.1 Mar 15, 2024
0.1.0 Mar 15, 2024

#228 in Programming languages

Download history 231/week @ 2024-03-13 24/week @ 2024-03-20 10/week @ 2024-03-27 20/week @ 2024-04-03

285 downloads per month

Apache-2.0

6KB
97 lines

Shut up! Trust me!

Use some keywords replace unsafe in Rust. Compiler shut up! Readers shut up too! My code has no bugs, trust me!

add the following line to your Cargo.toml:

shut_up = "0.1.1"

You can use the following keywords replace unsafe.

use shut_up::{trust_me, shut_up, cpp_start, i_am_your_father, freestyle,
              i_hereby_declare_that_i_fully_understand_that_any_consequence_is_my_own_liability,
              i_can_do_it, get_approval_from_a_senior_or_you_will_get_fired, showtime};

fn main() {
    trust_me! {
        println!("Trust me! This is safe!");
    }

    shut_up! {
        println!("Shut up! This is safe, tooooo!");
    }

    cpp_start! {
        println!("C++, Start!");
    }

    i_am_your_father! {
        println!("I am your father! This is safe, too!");
    }

    i_hereby_declare_that_i_fully_understand_that_any_consequence_is_my_own_liability! {
        println!("I hereby declare that I fully understand that any consequence is my own liability.")
    }

    i_can_do_it! {
        println!("I can do it!")
    }

    get_approval_from_a_senior_or_you_will_get_fired! {
        println!("Get approval from a senior, or you will get fired!")
    }

    freestyle! {
        println!("Are you freestyle?")
    }

    showtime! {
        println!("show time!")
    }
}

No runtime deps