noleader 0.1.2

A small leader election package using NATS keyvalue store as the distributed locking mechanism. Does not require a min / max set of nodes
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "noleader"
version = "0.1.2"
authors = ["kjuulh <contact@kasperhermansen.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A small leader election package using NATS keyvalue store as the distributed locking mechanism. Does not require a min / max set of nodes"
readme = "README.md"
license = "MIT"
repository = "https://git.front.kjuulh.io/kjuulh/noleader"
resolver = "2"

[lib]
name = "noleader"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic/main.rs"

[[example]]
name = "lots_of_candidates"
path = "examples/lots_of_candidates/main.rs"

[dependencies.anyhow]
version = "1.0.71"

[dependencies.async-nats]
version = "0.42"

[dependencies.bytes]
version = "1"

[dependencies.rand]
version = "0.9.1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"
features = ["log"]

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]