maybe-backoff 0.5.0

Retry operations with exponential backoff policy.
Documentation
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = import nixpkgs { inherit system; };
      in
        {
          devShells.default = pkgs.mkShell {
            nativeBuildInputs = with pkgs; [
              rustc
              cargo
              clippy
              pkg-config
              lld  # LLVM linker needed for WASM
            ];

            buildInputs = with pkgs; [
              openssl
              clang
            ] ++ (if pkgs.stdenv.isDarwin then [ libiconv ] else [ ]);

            packages = with pkgs; [
              rust-analyzer
              (rustfmt.override { asNightly = true; })
            ];

            RUST_BACKTRACE = "1";
            RUST_LOG = "debug";
            LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
          };
        }
    );
}