Skip to content

πŸ’‘ πŸ—οΈ A boilerplate API client template for Rust API clients wrappers

License

Notifications You must be signed in to change notification settings

GuilhermeStracini/apiclient-boilerplate-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ API Client Boilerplate Template for Rust πŸ¦€

πŸ—οΈ A streamlined boilerplate template to kickstart your Rust API client wrappers (also known as SDKs).


🌟 About

This repository is a template to jumpstart your Rust development for API client wrappers.
It provides a solid foundation with preconfigured project structure, CI integration, and helper scripts.

πŸ”§ What's included?

  • πŸ“¦ A ready-to-use Cargo.toml with project placeholders.
  • πŸ› οΈ Scripts for quick automated setup (Windows & Linux/Mac).
  • βœ… AppVeyor CI pipeline configuration.

    πŸ’‘ AppVeyor is free for open-source projects. For private repositories, you can use alternatives like GitHub Actions, CircleCI, or Azure DevOps.

  • πŸ“„ Clean project layout with room for source code and documentation.

πŸš€ Getting Started

⚑ Automated Setup

🐧 Now supported for Windows, Linux, and Mac environments!

  1. Click the green "Use this template" button at the top.
  2. Name your new repository and clone it to your machine.
  3. Run the setup script based on your OS:
    • πŸͺŸ On Windows: Execute initial-setup.bat or initial-setup.ps1
    • 🐧 On Linux/Mac: Execute initial-setup.sh
  4. Follow the on-screen instructions and get started in seconds! πŸš€

πŸ› οΈ Manual Setup

Would you prefer to do it step-by-step? No problem!

  1. Click the green "Use this template" button.
  2. Clone your newly created repository to your machine.
  3. Clean up:
    • Delete this file (README.md) and rename README.template.md to README.md.
  4. Update the placeholders:
    • AppVeyor CI: Edit appveyor.yml with your secure tokens or configure a different CI tool (GitHub Actions, CircleCI, Azure Pipelines).
    • Cargo.toml: Update the package name, version, and other metadata.
    • Badges: Fix all {username}/{repo} paths in README.md.
  5. Add usage instructions for your API client in README.md.
  6. Update _config.yml for GitHub Pages documentation (if needed).

πŸ“‚ Project Structure

πŸ“¦ your-project-name  
β”œβ”€β”€ Cargo.toml               # Project metadata and dependencies  
β”œβ”€β”€ README.md                # Your main documentation  
β”œβ”€β”€ appveyor.yml             # AppVeyor CI configuration  
β”œβ”€β”€ Src/                     # Place your API client code here  
β”œβ”€β”€ Tests/                   # Add unit and integration tests here  
└── _config.yml              # Optional GitHub Pages configuration  

πŸ›‘οΈ License

πŸ“„ Licensed under the MIT License.
This means you are free to use, modify, and distribute the code with attribution.

πŸ”— View LICENSE | Learn about MIT

πŸ”’ Feel free to replace this with any license that best suits your project!


πŸŽ‰ Contribute & Customize

πŸ’¬ Got ideas? Found an issue? Open an issue or contribute with a pull request!
Don’t forget to ⭐ star this repository if it helped save you time. πŸš€


πŸ¦€ Happy Coding in Rust! 🎯