GithubHelp home page GithubHelp logo

crate-template's Introduction

Generic Rust crate template

This is my personalized template for Rust library crates.

It uses porteurbars, so a cargo install --git https://github.com/softprops/porteurbars is needed (the current version on crates.io is incompatible with this template). Then run this to instantiate the template:

porteurbars jonas-schievink/crate-template my-crate

It will then ask for the crate name and also allows changing a few default values.

There are still a few TODOs in README.md, Cargo.toml and lib.rs that need to be filled out before releasing the crate.

Features

The crates created from this template will start out with the following features:

  • CC-0 license
  • Release automation for maximum laziness with cargo-release
    • Changelog will be bumped to the next version
    • Version in Cargo.toml will be bumped
    • Usage example in readme will be updated to refer to the new crate version
    • html_root_url attribute in lib.rs will also be updated
  • Test that makes sure crate version numbers in examples, html_root_url and Cargo.toml are in sync
  • Changelog
  • Readme featuring a crates.io, docs.rs, and Travis CI badge, as well as a basic usage example
  • Travis CI configuration

Feel free to fork this and adapt to your needs.

crate-template's People

Contributors

jonas-schievink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.