Skip to main content

cargo_toml

Function cargo_toml 

Source
pub fn cargo_toml(project_name: &str) -> String
Expand description

Generate Cargo.toml content for a new AllFrame project

Creates a minimal Cargo.toml with:

  • Project name and metadata
  • Core dependencies: tokio, serde, anyhow, async-trait
  • Binary configuration

Note: The allframe crate dependency will be added once it’s published to crates.io.

§Arguments

  • project_name - Name of the project (used for package name and binary name)

§Returns

A formatted Cargo.toml file content as a String