diff --git a/CLAUDE.md b/CLAUDE.md index 049fbb6..e9e4aaa 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -50,10 +50,10 @@ directly. `src/root.zig` is the library, and it imports zig-ogg as `ogg`: ```console $ nix develop --command zig test --dep ogg -Mroot=src/root.zig \ - -Mogg=zig-pkg//src/root.zig --test-filter "wasted bits" + -Mogg=zig-pkg//src/root.zig --test-filter "wasted bits" ``` -`` is the `.hash` of the `zig_ogg` dependency in `build.zig.zon`; +`` is the `.hash` of the `ogg` dependency in `build.zig.zon`; any `zig build` fetches it into `zig-pkg/`. Other steps: `docs`, `fuzz`, `fuzz-run`. diff --git a/README.md b/README.md index e9ca2c7..cc3b417 100644 --- a/README.md +++ b/README.md @@ -554,10 +554,10 @@ directly: ```console $ nix develop --command zig test --dep ogg -Mroot=src/root.zig \ - -Mogg=zig-pkg//src/root.zig --test-filter "wasted bits" + -Mogg=zig-pkg//src/root.zig --test-filter "wasted bits" ``` -`` is the `.hash` of the `zig_ogg` dependency in `build.zig.zon`; +`` is the `.hash` of the `ogg` dependency in `build.zig.zon`; any `zig build` fetches it into `zig-pkg/`. The documentation has to be served rather than opened: what Zig emits is not a diff --git a/build.zig b/build.zig index 1f898e3..2f59bab 100644 --- a/build.zig +++ b/build.zig @@ -11,7 +11,7 @@ pub fn build(b: *std.Build) void { // specification defines that mapping (RFC 9639, Section 10.1), so it // belongs here rather than in a container library that would otherwise // have to know what a FLAC frame is. - const ogg_dep = b.dependency("zig_ogg", .{ .target = target, .optimize = optimize }); + const ogg_dep = b.dependency("ogg", .{ .target = target, .optimize = optimize }); // The library, which is what a consumer imports: // @@ -105,7 +105,7 @@ pub fn build(b: *std.Build) void { .optimize = .ReleaseFast, .imports = &.{.{ .name = "ogg", - .module = b.dependency("zig_ogg", .{ + .module = b.dependency("ogg", .{ .target = target, .optimize = .ReleaseFast, }).module("ogg"), diff --git a/build.zig.zon b/build.zig.zon index fc438f0..3949b6d 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,12 +1,12 @@ .{ .name = .flac, - .version = "0.2.0", + .version = "0.3.0", .fingerprint = 0xd6992f834c2caad7, // Changing this has security and trust implications. .minimum_zig_version = "0.17.0", .dependencies = .{ - .zig_ogg = .{ - .url = "git+https://git.jcollie.dev/jeff/zig-ogg.git#33dce7b3f1968926c5516f475116a7ef861bfa6c", - .hash = "zig_ogg-0.2.0-AI2CC8SnAgDFplOcuwdVfyR5rK7HjZRXAJP5zy54Ki_0", + .ogg = .{ + .url = "git+https://git.jcollie.dev/jeff/zig-ogg.git#705662b256cab123aa29bd020d7b8521a7a5760c", + .hash = "ogg-0.3.0-AI2CC7inAgCAi7EVrxJdEgzXHSw4t3h3fr4IYA4W_dWw", }, }, .paths = .{