async-priority-channel 0.2.0

An async channel where pending messages are delivered in order of priority
Documentation
{
  description = "Async channel with messages sorted by priority";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  inputs.utils.url = "github:numtide/flake-utils";

  outputs = { self, nixpkgs, utils }:
    utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
        };
      in
      {
        devShell = pkgs.mkShell rec {
          name = "async-priority-channel";
          shellHook = ''
            export PS1="\n(${name}) \[\033[1;32m\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\[\033[0m\]\n$ "
          '';
          buildInputs = with pkgs; [
            cargo
            rustc
            clippy

            rustfmt
          ];
        };
      });
}