Code Monkey home page Code Monkey logo

cavity's Introduction

Cavity: The suckless Rust Project Template

Cavity is a Rust project template which comes with direnv & just integration for an effortless Developer Experience โ‡๏ธ

Dependencies

  1. just: To simplify repeatedly run commands.
  2. wactchexec: Watches files in current dir & re-builds project on any changes.
  3. direnv: To create an isolated development environment
  4. nix-direnv: For nix/flakes users.

Usage

  • Create file scratch.md: We recommend creating this file for local planning purposes. It is not tracked by Git.

  • Create file .envrc: This file is used by direnv. Not tracked by Git. Add the following contents to it:

# Flakes users: uncomment the line below
# use flake

# Load project specific env variables this way.
export FOO=foo

# Run `direnv allow` to start using direnv. 
  • Building your project: Use the just command to run your project. To test your project run just test.

  • Testing your project: Use the just test command to test your project. Check the justfile file for more.

  • Nix/Flakes: "flake.nix" & "flake.lock" are flake files. Remove them if you're not using nix/flakes.

  • Edit Cargo.toml: Change the project name in the Cargo.toml file to your project name.

  • README.md: Replace this README.md file with your project's README.md.

Directory Structure

  • src/: Contains project source code.
  • tests/: Houses integration tests.
  • target/: Contains compiled files & executables.
  • ui/: Use it for your frontend. Remove if unnecessary.

cavity's People

Contributors

txtyash 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.