# 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" name = "dist_lock" version = "0.0.1" authors = ["tiny.wang "] exclude = ["tests/"] description = "Distributed lock" homepage = "https://github.com/itinycheng/DistLock" readme = "README.md" keywords = [ "distributed", "lock", ] license = "MIT" repository = "https://github.com/itinycheng/DistLock" [dependencies.async-std] version = "1.12.0" features = ["attributes"] optional = true [dependencies.async-trait] version = "0.1.73" optional = true [dependencies.cfg-if] version = "1.0.0" [dependencies.chrono] version = "0.4.26" [dependencies.crossbeam-utils] version = "0.8.16" optional = true [dependencies.diesel] version = "2.1.0" features = ["chrono"] optional = true [dependencies.dist_lock_codegen] version = "0.0.1" optional = true default-features = false [dependencies.gethostname] version = "0.4.3" [dependencies.r2d2] version = "0.8.10" optional = true [dependencies.redis] version = "0.23.0" optional = true [dependencies.thiserror] version = "1.0.44" [dependencies.tokio] version = "1.29.1" features = ["macros"] optional = true [dependencies.zookeeper] version = "0.8.0" optional = true [features] default = ["redis_common"] diesel_mysql = [ "diesel/mysql", "dist_lock_codegen/diesel", ] diesel_mysql_r2d2 = [ "diesel_mysql", "diesel/r2d2", "r2d2", "dist_lock_codegen/diesel", ] diesel_postgres = [ "diesel/postgres", "dist_lock_codegen/diesel", ] diesel_postgres_r2d2 = [ "diesel_postgres", "diesel/r2d2", "r2d2", "dist_lock_codegen/diesel", ] diesel_sqlite = [ "diesel/sqlite", "dist_lock_codegen/diesel", ] diesel_sqlite_r2d2 = [ "diesel_sqlite", "diesel/r2d2", "r2d2", "dist_lock_codegen/diesel", ] redis_async_std = [ "redis/async-std-comp", "redis/cluster-async", "async-std", "async-trait", "crossbeam-utils", "dist_lock_codegen/redis", "dist_lock_codegen/async", ] redis_common = [ "redis/cluster", "dist_lock_codegen/redis", ] redis_r2d2 = [ "redis_common", "redis/r2d2", "r2d2", "dist_lock_codegen/redis", ] redis_tokio = [ "redis/tokio-comp", "redis/cluster-async", "tokio/rt-multi-thread", "async-trait", "crossbeam-utils", "dist_lock_codegen/redis", "dist_lock_codegen/async", ] zookeeper = [ "dep:zookeeper", "dist_lock_codegen/zookeeper", ]