| Crates.io | evil-id |
| lib.rs | evil-id |
| version | 0.1.3 |
| created_at | 2025-08-10 03:59:25.223138+00 |
| updated_at | 2025-12-01 01:19:50.631436+00 |
| description | A very easy to use (and evil) id type. |
| homepage | |
| repository | https://github.com/the-aNamee/evil-id |
| max_upload_size | |
| id | 1788475 |
| size | 22,098 |
This is a simple crate that I have created because I needed an id and I can't ever make things simple for myself.
EvilID is pretty simple.
let id: EvilID = EvilID::generate(); // A new id can be created with the generate function.
let id_string: String = id.get(); // The stringify function creates a 16 character string representing the id.
let also_id: EvilID = EvilID::new_from(id_string.clone()).expect("Shouldn't happen."); // We can get the id back from a String. MAke sure to give it a valid id string or it will throw an error.
let is_eq = id == also_id; // They should be the same.
println!("ID: {id_string}\nIs eq: {is_eq}");
This code will return something like:
ID: QFTF-PAMI-DGME-KJXA
Is eq: true
What is so evil you might ask? Just look inside of the repo!