# 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 = "2021" rust-version = "1.71.0" name = "distributed-scheduler" version = "2.1.4" authors = ["AH-dark "] build = false exclude = [ ".github", ".idea", ] autobins = false autoexamples = false autotests = false autobenches = false description = "A distributed cronjob library" homepage = "https://github.com/AH-dark/distributed-scheduler" documentation = "https://docs.rs/distributed-scheduler" readme = "README.md" keywords = [ "distributed", "scheduler", "cronjob", "consistent-hashing", ] license = "AGPL-3.0-or-later" repository = "https://github.com/AH-dark/distributed-scheduler.git" [package.metadata.docs.rs] features = [ "driver-redis", "driver-etcd", ] [lib] name = "distributed_scheduler" path = "src/lib.rs" [[example]] name = "etcd" path = "examples/etcd.rs" required-features = ["driver-etcd"] [[example]] name = "redis" path = "examples/redis.rs" required-features = ["driver-redis"] [[example]] name = "redis_zset" path = "examples/redis_zset.rs" required-features = ["driver-redis"] [dependencies.async-trait] version = "0.1" [dependencies.chrono] version = "0.4" [dependencies.etcd-client] version = "0.14" optional = true [dependencies.hashring] version = "0.3.6" [dependencies.job_scheduler] version = "1.2.1" [dependencies.log] version = "0.4" [dependencies.md5] version = "0.7.0" [dependencies.redis] version = "0.27.2" features = ["tokio-comp"] optional = true [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", "time", "sync", ] [dependencies.uuid] version = "1" features = ["v4"] [dev-dependencies.pretty_env_logger] version = "0.5" [dev-dependencies.redis-test] version = "0.6.0" features = ["aio"] [features] driver-etcd = ["dep:etcd-client"] driver-redis = [ "dep:redis", "redis/tokio-comp", ] full = [ "driver-redis", "driver-etcd", ]