GithubHelp home page GithubHelp logo

nikhilmitrax / cargo-notify Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 86 KB

Get desktop notifications for your cargo build commands

License: MIT License

Rust 100.00%
cargo cargo-plugin rust desktop-notifications

cargo-notify's Introduction

cargo-notify

Cargo notify is a cargo plugin to run cargo build-like commands(check, build) and notify users of build completion and number of errors found (if any) through desktop notifications. Pairs nicely with cargo-watch.

Screenshots

Installation

cargo install --git https://github.com/nikhilmitrax/cargo-notify

But why?

The usual development workflow to notice errors in builds is to run (RLS/rust-analyzer) in the IDE, and potentially use carg-watch to run check/build on file change. This works fairly well for small or medium sized projects, but can get a bit cumbersome for larger projects, where the compile time may be longer than a few seconds, at which point, getting a notification is useful.

Interface

cargo notify <cmd>.

For example

cargo notify check
cargo watch -c -x 'notify check'

Contribution Ideas

Any contributions are welcome, but here are a few ideas I hope someone would explore.

  • Remove vendorized cargo_metadata and use the crate directly: The last time I tried using it, there were some problems, and I decided to vendorize and modify it to get going, but maybe we should directly use the crate, and create issues in cargo_metadata's repo if it isn't usable as is. Done! ๐ŸŽ‰

  • Cross Platform Support: Currently tested and found working on MacOS, but the underlying notification crate notify-rust supports BSD and Linux as well, just that it's untested on Linux and BSD.

  • Support for richer notifications: It currently notifies just the number of errors during compilation. It could potentially support richer notifications.

cargo-notify's People

Contributors

nikhilmitrax avatar

Stargazers

 avatar  avatar

Watchers

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