From 72e7b4e671838b1eabb98fe0f88b0e4f5d5877aa Mon Sep 17 00:00:00 2001
From: Andreas Herrmann <andreash87@gmx.ch>
Date: Mon, 22 May 2023 08:45:53 +0200
Subject: [PATCH] Fill in the README with a minimal description

---
 README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 61 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md
index 88e6448d..826a704a 100644
--- a/README.md
+++ b/README.md
@@ -1,28 +1,76 @@
-# Zig rules for Bazel
+# Bazel build rules for Zig
 
 Build [Zig code][zig] with the [Bazel build system][bazel].
 
 [zig]: https://ziglang.org/
 [bazel]: https://bazel.build/
 
-Ready to get started? Copy this repo, then
+## Status
 
-1. search for "com_myorg_rules_mylang" and replace with the name you'll use for your workspace
-1. search for "myorg" and replace with GitHub org
-1. search for "mylang" and replace with the language/tool your rules are for
-1. rename directory "mylang" similarly
-1. run `pre-commit install` to get lints (see CONTRIBUTING.md)
-1. if you don't need to fetch platform-dependent tools, then remove anything toolchain-related.
-1. update the `actions/cache@v2` bazel cache key in [.github/workflows/ci.yaml](.github/workflows/ci.yaml) and [.github/workflows/release.yml](.github/workflows/release.yml) to be a hash of your source files.
-1. (optional) install the [Renovate app](https://github.com/apps/renovate) to get auto-PRs to keep the dependencies up-to-date.
-1. delete this section of the README (everything up to the SNIP).
+🚧 This is a hobby project in early development. 🚧
 
----- SNIP ----
+Please [get in touch](https://github.com/aherrmann) if you would like to use
+these rules in production.
 
-# Bazel rules for Zig
+Take a look at the [planned functionality][planned-functionality] tracking
+issue to get a picture of which functionality is already implemented and what
+is still missing.
+
+[planned-functionality]: https://github.com/aherrmann/rules_zig/issues/1
 
 ## Installation
 
+Add the following to your WORKSPACE file to install rules_zig:
+
+```bzl
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+http_archive(
+    name = "rules_zig",
+    sha256 = "$SHA256",
+    strip_prefix = "rules_zig-$COMMIT",
+    urls = ["https://github.com/aherrmann/rules_zig/archive/$COMMIT.tar.gz"],
+)
+
+load(
+    "@rules_zig//zig:repositories.bzl",
+    "rules_zig_dependencies",
+    "zig_register_toolchains",
+)
+
+rules_zig_dependencies()
+
+zig_register_toolchains(
+    name = "zig",
+    zig_version = "0.10.1",
+)
+```
+
+<!-- TODO[AH] Point to release installation instructions
+
 From the release you wish to use:
 <https://github.com/aherrmann/rules_zig/releases>
 copy the WORKSPACE snippet into your `WORKSPACE` file.
+
+-->
+
+<!-- TODO[AH] Write a user-guide
+  https://github.com/aherrmann/rules_zig/issues/59
+
+## User Guide Documentation
+
+-->
+
+## Reference Documentation
+
+Generated API documentation for the provided rules is available in
+[`./docs/rules.md`](./docs/rules.md).
+
+## Usage Examples
+
+<!-- TODO[AH] Create an instructive example.
+  https://github.com/aherrmann/rules_zig/issues/58
+-->
+
+Examples can be found among the end-to-end tests under
+[`./e2e/workspace`](./e2e/workspace).