Anchor 1.0 中的 anchor init 现在将为您生成格式更好的 Solana 程序,而不是将所有内容放在 lib.rs 中。 这将教导新的 Rust 开发者更好的程序格式化实践。 您仍然可以使用 --template single 的旧方法。