cpp-redis / cpp_redis

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
MIT License
713 stars 198 forks source link

Add a function to declare tacopie dependency #57

Closed agasparovic-sabre closed 4 years ago

agasparovic-sabre commented 4 years ago

Typically, Bazel-aware third-party libraries provide a function that can be called from a WORKSPACE to add the library's dependencies. By doing this, cpp_redis can be declared like so:

http_archive( name = "com_github_cpp_redis_cpp_redis", urls = ["https://github.com/cpp-redis/cpp_redis/archive/147c589b239cee8521a7fdb827c98f3e8cc3c897.tar.gz"], strip_prefix = "cpp_redis-147c589b239cee8521a7fdb827c98f3e8cc3c897", sha256 = "2c72ae0466495124facba23e5e79b9f1df539e1c8dc025115cd7ba76d14676a1", )

load("@com_github_cpp_redis_cpp_redis//:repositories.bzl", "cpp_redis_repositories") cpp_redis_repositories()

agasparovic-sabre commented 4 years ago

Gentle ping... :)