diff options
Diffstat (limited to '9proc/README.md')
| -rw-r--r-- | 9proc/README.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/9proc/README.md b/9proc/README.md index 1b4d6c1..749c8a1 100644 --- a/9proc/README.md +++ b/9proc/README.md @@ -40,13 +40,14 @@ contract. ## Using the library cloud9's `build.zig` exports two modules: `cloud9` (the protocol) and -`9proc` (this library, which imports `cloud9` itself). A package that -depends on cloud9 takes both from the one dependency: +`9proc` (this library, which imports `cloud9` itself), with no target of +their own. A package that depends on cloud9 takes both from the one +dependency, with no options: ```zig -const cloud9_dep = b.dependency("cloud9", .{ .target = target, .optimize = optimize }); -exe.root_module.addImport("cloud9", cloud9_dep.module("cloud9")); -exe.root_module.addImport("9proc", cloud9_dep.module("9proc")); +const cloud9 = b.dependency("cloud9", .{}); +exe.root_module.addImport("cloud9", cloud9.module("cloud9")); +exe.root_module.addImport("9proc", cloud9.module("9proc")); ``` Embedding the core is three static objects and a push/step/output loop, the |
