# bazel-rules-leveldb **Repository Path**: primihub/bazel-rules-leveldb ## Basic Information - **Project Name**: bazel-rules-leveldb - **Description**: bazel-rules-leveldb - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-21 - **Last Updated**: 2025-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Bazel build rules for LevelDB Follows a "repos/deps" pattern (in order to help with recursive dependencies). To use: 1. Copy `bazel/repos.bzl` into your repository at `3rdparty/bazel-rules-leveldb/repos.bzl` and add an empty `BUILD` (or `BUILD.bazel`) to `3rdparty/bazel-rules-leveldb` as well. 2. Copy all of the directories from `3rdparty` that you ***don't*** already have in ***your*** repository's `3rdparty` directory. 3. Either ... add the following to your `WORKSPACE` (or `WORKSPACE.bazel`): ```bazel load("//3rdparty/bazel-rules-leveldb:repos.bzl", leveldb_repos="repos") leveldb_repos() load("@com_github_3rdparty_bazel_rules_leveldb//bazel:deps.bzl", leveldb_deps="deps") leveldb_deps() ``` Or ... to simplify others depending on ***your*** repository, add the following to your `repos.bzl`: ```bazel load("//3rdparty/bazel-rules-leveldb:repos.bzl", leveldb="repos") def repos(): leveldb() ``` And the following to your `deps.bzl`: ```bazel load("@com_github_3rdparty_bazel_rules_leveldb//bazel:deps.bzl", leveldb="deps") def deps(): leveldb() ``` 4. You can then use `@com_github_google_leveldb//:leveldb` in your target's `deps`. 5. Repeat the steps starting at (1) at the desired version of this repository that you want to use.