anchor init in Anchor 1.0 will now generate a better formatted Solana program for you instead of everything in lib . rs This will teach better practices on formatting your program for newer Rust devs You can still use the old way with --template single