Skip to content
View nik-rev's full-sized avatar

Block or report nik-rev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nik-rev/README.md

Hi! My favorite programming language is:

fn you_guessed_it() -> impl Debug {
    ..=..=.. ..    .. .. .. ..    .. .. .. ..    .. .. .. ..
    ..=.. ..=..    .. .. .. ..    .. .. .. ..    .. ..=.. ..
    ..=.. ..=..    ..=.. ..=..    .. ..=..=..    ..=..=..=..
    ..=..=.. ..    ..=.. ..=..    ..=.. .. ..    .. ..=.. ..
    ..=.. ..=..    ..=.. ..=..    .. ..=.. ..    .. ..=.. ..
    ..=.. ..=..    ..=.. ..=..    .. .. ..=..    .. ..=.. ..
    ..=.. ..=..    .. ..=..=..    ..=..=.. ..    .. ..=..=..
}

here are some of my stuffs:

derive_aliases github

Custom #[derive] aliases. Write this:

#[derive(Debug, ..Ord, ..Copy)]
//              ^^^^^^^^^^^^^
//              aliases
struct User;

which expands to this:

#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]
//             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//             expanded
struct User;

docstr github

Ergonomic multi-line string literals, even composes with any macro like format!.

use docstr::docstr;

let hello_world_in_c: &'static str = docstr!(
    /// #include <stdio.h>
    ///
    /// int main(int argc, char **argv) {
    ///     printf("hello world\n");
    ///     return 0;
    /// }
);

assert_eq!(hello_world_in_c, r#"#include <stdio.h>

int main(int argc, char **argv) {
    printf("hello world\n");
    return 0;
}"#)

culit github

Lets you define custom literals. Like literals for Duration:

#[culit]
fn main() {
    assert_eq!(
        100d + 11h + 8m + 7s,
        Duration::from_secs(100 * 60 * 60 * 24)
        + Duration::from_secs(11 * 60 * 60)
        + Duration::from_secs(8 * 60)
        + Duration::from_secs(7)
    );
}

Fully custom, can be whatever you want. Like 10nzusize which produces NonZeroUsize and compile errors if it is 0.

simply_colored github

Simplest crate in existence for terminal styles.

use simply_colored::*;

println!("{BLUE}{BOLD}Simply colored!")

countryfetch github

Like Neofetch but for your country

Pinned Loading

  1. peashot peashot Public

    🚧 Screenshot app | Under construction 🚧

    Rust 223 11

  2. derive-aliases derive-aliases Public

    #[derive] aliases

    Rust 92

  3. culit culit Public

    Custom literals in Rust

    Rust 81 1

  4. countryfetch countryfetch Public

    A Command-line tool similar to Neofetch for obtaining information about your country

    Rust 252 9

  5. docstr docstr Public

    Ergonomic multi-line string literals

    Rust 35

  6. subdef subdef Public

    Expressive attribute macro to define nested structures

    Rust 22