fn main() {
let me = Person {
name: "Sreyas ✨",
from: "India 🇮🇳",
fav_lang: "Rust 🦀",
age: Box::new(|current_year: u32| -> u32 {
current_year - 2003
}),
system: System {
os: "Linux 🤓",
distro: Distro {
name: "Fedora 🎩",
version: 40,
kernel: cmd("$(uname -r | cut -d"-" -f1)"), // 6.11.10
},
prev_distro: vec!["Ubuntu", "EndeavourOS", "ZorinOS"],
},
dev: Dev {
programming: Programming {
languages: Languages {
knows: vec!["Javascript", "Python", "C", "C++", "Java", "Bash", "PHP"],
learning: vec!["Rust 🦀", "TypeScript"],
},
web_development: WebDevelopment {
knows: {
let mut map = HashMap::new();
map.insert("frontEnd", vec!["Javascript", "React", "JQuery", "TailwindCSS", "HTML", "CSS", "SCSS", "SASS"]);
map.insert("backEnd", vec!["PHP", "NodeJS"]);
map.insert("fullStack", vec!["NextJS", Flash ⚡]); // Just kidding, Actually I know it's Flask 🤫.
map.insert("lib", vec!["Redux", "React-router-dom", "Zustand", "Shadcn"]);
map
},
learning: {
let mut map = HashMap::new();
map.insert("frontEnd", vec![]);
map.insert("backEnd", vec!["Rust 🦀", "Actix", "Rocket", "Axum", "Express"]);
map.insert("orm", vec!["Drizzle", "Prisma", "Diesel"]);
map
},
},
db: Database {
knows: vec!["Supabase", "MongoDB", "MySql", "MariaDB", "OracleDB", "Firebase"],
learning: vec!["PostgreSQL"],
},
mobile: Mobile {
learning: vec!["ReactNative"],
},
},
},
tools: Tools {
design: vec!["Figma"],
workflow: vec!["Git", "Github"],
},
editors: vec!["VScode ❤️", "VIM ⚡", "NeoVim 🔥"],
};
println!("{:#?}", me);
}