From 232f31c6649e6348a5b0b64362f185f7f4db1dc0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 21 Jun 2026 18:33:32 +0800 Subject: Add intro content and merge getting started page --- docs/pages/2-getting-started.md | 62 ----------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 docs/pages/2-getting-started.md (limited to 'docs/pages/2-getting-started.md') diff --git a/docs/pages/2-getting-started.md b/docs/pages/2-getting-started.md deleted file mode 100644 index 35da464..0000000 --- a/docs/pages/2-getting-started.md +++ /dev/null @@ -1,62 +0,0 @@ -

Getting Started

- -## Create a New Project - -```bash -cargo new my-cli -cd my-cli -``` - -## Add Dependency - -Add the following to `Cargo.toml`: - -```toml -[dependencies.mingling] -version = "0.2" -features = [] -``` - -## Enable Features - -**Mingling** has all features disabled by default and does not provide an all-in-one feature like `full`. - -Some features will **directly affect the behavior of the entire lifecycle**, so you need to enable them as needed, for example: - -```toml -[dependencies.mingling] -version = "0.2" -features = [ - "parser", - "comp", -] -``` - -> [!NOTE] -> Visit [docs.rs](https://docs.rs/mingling/latest/mingling/feature/index.html) or [Features](pages/other/features) to learn about all available features. - -## Write the Basic Entry Point - -Edit `src/main.rs` with the following code: - -```rust -use mingling::prelude::*; - -fn main() { - let mut program = ThisProgram::new(); - - program.exec_and_exit(); -} - -gen_program!(); -``` - -## Verify Compilation - -```plaintext -~# cargo check -``` - ---- - -Once everything is good, start building! -- cgit