Skip to content

compiler-explorer/ce-library-wizard

Repository files navigation

CE Library Wizard

A CLI tool that automates the process of adding libraries to Compiler Explorer.

Quick Start

# Clone and run
git clone https://github.com/compiler-explorer/ce-library-wizard.git
cd ce-library-wizard
./run.sh

See the Quick Start Guide for more examples.

Features

  • 🚀 Interactive CLI for adding libraries to Compiler Explorer
  • 🦀 Rust - Fully automated with crate support + bulk top 100 crates
  • ⚔️ C - Shared/static library support
  • C++ - Smart library type detection
  • 🔧 Fortran - FPM package integration
  • 🔢 Multi-version - Add multiple versions in one command
  • 🔐 Multiple authentication methods
  • 🍴 Automatic GitHub fork management
  • 📝 Preview changes before committing

Prerequisites

Set up GitHub CLI:

gh auth login

Basic Usage

# Interactive mode
./run.sh

# Add a Rust library
./run.sh --lang=rust --lib=serde --ver=1.0.195

# Add a C++ library with automatic type detection
./run.sh --lang=cpp --lib=https://github.com/fmtlib/fmt --ver=10.2.1

# Add a header-only C++ library
./run.sh --lang=cpp --lib=https://github.com/bobluppes/graaf --ver=v1.1.1 --type=header-only

# Preview changes first
./run.sh --verify --lang=rust --lib=tokio --ver=1.35.0

Documentation

How it Works

CE Library Wizard automates the complex process of adding libraries to Compiler Explorer by:

  1. Managing GitHub forks and branches automatically
  2. Running language-specific ce_install commands
  3. Updating configuration files in both required repositories
  4. Creating linked pull requests

See Architecture Documentation for details.

Contributing

Contributions are welcome! See our Contributing Guide.

License

MIT

About

A CLI tool that automates the process of adding libraries to Compiler Explorer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •