Tool written in rust to read for file changes and accordingly run build commands.

Related tags

Utilities sniff
Overview

Sniff

A simple tool written in rust to read for file changes and accordingly run build commands.

Note this tool is for linux and linux only. If it happens to work on bsd ( which it probably will ) then awesome!

I will provide absolutely no support for windows.

Config file:

  • A global config can be defined in ~/.config/sniff/sniff.json.
  • A local config overrides the global one. Local configs should be placed in the root of the project under the name sniff.json
{
  ".*.rs": ["cargo build --release"],
  ".*.zig": ["zig test .", "zig build"],
  "sniff_ignore_dir": ["target"],
  "sniff_ignore_file": ["test.rs"]
}

Sniff ignore:

  • Make sniff ignore directories with the sniff_ignore_dir key.
  • Make sniff ignore files with the sniff_ignore_file key.

Installation:

Dependencies:

  1. git
  2. make

Steps:

  1. Clone this repo: git clone https://github.com/shinyzenith/sniff &cd sniff
  2. make
  3. sudo make install
You might also like...
Fusion is a cross-platform App Dev ToolKit build on Rust . Fusion lets you create Beautiful and Fast apps for mobile and desktop platform.
Fusion is a cross-platform App Dev ToolKit build on Rust . Fusion lets you create Beautiful and Fast apps for mobile and desktop platform.

Fusion is a cross-platform App Dev ToolKit build on Rust . Fusion lets you create Beautiful and Fast apps for mobile and desktop platform.

Fast file explorer written with Tauri and React.
Fast file explorer written with Tauri and React.

Fast File Explorer This is a fast file explorer written in Rust. After testing on my C drive, this file explorer was able to find a file in 280ms. In

Rust macro to make recursive function run on the heap (i.e. no stack overflow).

Decurse Example #[decurse::decurse] // 👈 Slap this on your recursive function and stop worrying about stack overflow! fn factorial(x: u32) - u32 {

A tool that generates a Sublime Text project file that helps you get started using Scoggle.

README A tool that generates a Sublime Text project file that helps you get started using Scoggle. While Scoggle-Gen may not find every single source

Let Tauri's transparent background rendering window be stacked on Bevy's rendering window in real time to run the game with native-level performance!

Native Bevy with Tauri HUD DEMO 将 Tauri 的透明背景渲染窗口实时叠在 Bevy 的渲染窗口上,以使用原生级别性能运行游戏! Let Tauri's transparent background rendering window be stacked on Bev

A code generator to reduce repetitive tasks and build high-quality Rust libraries. 🦀

LibMake A code generator to reduce repetitive tasks and build high-quality Rust libraries Welcome to libmake 👋 Website • Documentation • Report Bug •

Build and deploy cross platform bioinformatic utilities with Rust.
Build and deploy cross platform bioinformatic utilities with Rust.

The Bioinformatics Toolkit RUST-backed utilities for bioinformatic data processing. Get started The fastest way to get started it to download the appl

A cli utility written in Rust that allows fetching all the labels of a project, save those as a YAML file

A cli utility written in Rust that allows fetching all the labels of a project, save those as a YAML file that you can easily edit or save as backup and apply a saved preset to new repositories.

Build your service-server fast, easy (and without hosting!)
Build your service-server fast, easy (and without hosting!)

service-io is a library to build servers that offering services with really little effort. Choose an input connector. Choose an output connector. Choo

Comments
  • Sniff fails to run command on first run.

    Sniff fails to run command on first run.

    Sniff fails to run given command on first run.

    Steps to reproduce the behavior

    1. Create a sniff.json in the root directory and edit it.

    In my case:

    {
      ".*.rs": ["cargo clippy", "cargo check", "cargo build --release"]
    }
    
    1. Copy sniff's binary to project's root directory.
    2. Run the binary.
    3. Edit required files and save.

    Expected behavior

    Sniff runs the command specified in sniff.json on file change.

    Resulting behavior

    Sniff does not run the command specified in sniff.json the first time one saves the file. However, it is observed that sniff runs the command on later saves.

    opened by rv178 3
Releases(1.0.1)
Owner
Aakash Sen Sharma
Wayland enthusiast.
Aakash Sen Sharma
Watches changes in a rust project, runs test and shows friendly notification

Cargo testify Automatically runs tests on your Rust project and notifies about the result. Install Install prerequisites (for Debian/Ubuntu): apt-get

Sergey Potapov 77 May 16, 2022
💫 Small microservice to handle state changes of Kubernetes pods and post them to Instatus or Statuspages

?? Kanata Small microservice to handle state changes of Kubernetes pods and post to Instatus ?? Why? I don't really want to implement and repeat code

Noel ʕ •ᴥ•ʔ 4 Mar 4, 2022
Generate commit messages using GPT3 based on your changes and commit history.

Commit Generate commit messages using GPT-3 based on your changes and commit history. Install You need Rust and Cargo installed on your machine. See t

Brian Le 40 Jan 3, 2023
Rust program to monitor Windows 10 Registry keys for changes or modifications.

RegMon This Rust program monitors changes to multiple registry keys in Windows 10 and writes the changes to a text file. It also periodically sends a

0x44F 3 Jan 16, 2023
messloc is a drop in replacement for malloc that can transparently recover from memory fragmentation without any changes to application code.

messloc is a drop in replacement for malloc that can transparently recover from memory fragmentation without any changes to application code. Goals Al

null 11 Dec 10, 2022
Remember me my commands

mme is a search tool that helps you to print commands and their description using a custom file. Installation The binary name for rememberme is mme. A

Roberto 27 Dec 23, 2022
Rust crate for making Read streams peekable.

peekread This crate allows you to take an arbitrary Read stream and 'peek ahead' into the stream without consuming the original stream. This is done t

Orson Peters 21 Oct 29, 2022
A tool to run web applications on AWS Lambda without changing code.

AWS Lambda Adapter A tool to run web applications on AWS Lambda without changing code. How does it work? AWS Lambda Adapter supports AWS Lambda functi

AWS Samples 321 Jan 2, 2023
Build tool for Leptos (Rust)

Build tool for Leptos: Features Getting started Single-package setup Workspace setup Build features Parameters reference Compilation parameters Site p

henrik 39 Jan 5, 2023
🦞 wasm-pack based build tool

rsw-rs This project is in early experimental stage. # dev rsw watch # release rsw build # create crate rsw new # rsw.toml name = 'rsw' version = "0.

lencx 71 Dec 30, 2022