Skip to content

Latest commit

Β 

History

History
75 lines (59 loc) Β· 2.21 KB

File metadata and controls

75 lines (59 loc) Β· 2.21 KB

πŸ¦€ Template Usage Guide

This directory is a cargo-generate template ready for use.

πŸ“‹ For Template Users

To use this template to create new projects:

# Install dependencies
cargo install cargo-generate just
gh auth login

# Create a new project
cargo generate --git https://github.com/yourname/rust-starter-template.git --name my-new-project
cd my-new-project
./post_gen.sh

πŸ”§ Template Status

Current State βœ…

  • Cargo.toml uses name = "linkdin_url" - Template ready
  • Dockerfile uses CMD ["./target/release/linkdin_url"] - Template ready
  • src/main.rs includes Remolab ASCII header
  • Full dependency stack included for comprehensive development

Template Variables

When users run cargo generate, these variables will be replaced:

  • linkdin_url β†’ User's chosen project name
  • Hamze GHALEBI <ghalebi@gmail.com> β†’ Can be configured in cargo-generate

Testing the Template

To test template generation locally:

cargo generate --path . --name test-project
cd test-project
just check
just docker-build
just run --help

Dependencies Included

Runtime:

  • anyhow - Error handling and context
  • clap - Command line argument parsing
  • env_logger - Environment-based logger
  • log - Logging facade
  • rig-core - AI/LLM framework core
  • schemars - JSON Schema generation
  • serde - Serialization/deserialization
  • tokio - Async runtime with full features
  • tracing-subscriber - Structured logging

Development:

  • pretty_assertions - Better test output

🎯 Ready-to-Use Features

βœ… Development Tools: justfile, clippy, rustfmt, editorconfig
βœ… CI/CD: GitHub Actions workflow
βœ… Docker: Multi-stage build with dependencies
βœ… CLI: clap-based command line interface
βœ… Async Runtime: tokio with full features
βœ… Error Handling: anyhow for context-rich errors
βœ… Serialization: serde for JSON/YAML/etc
βœ… Logging: log + env_logger + tracing-subscriber
βœ… AI/LLM Ready: rig-core framework included
βœ… Schema Generation: schemars for JSON schemas
βœ… Testing: pretty_assertions for better test output
βœ… Automation: GitHub repo creation script
βœ… Branding: Remolab ASCII header