Skip to content

Commit e55936d

Browse files
committed
split abseil into separate repo, add README
1 parent 12f0eb3 commit e55936d

4 files changed

Lines changed: 32 additions & 245 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# protobuf
2+
3+
[protobuf](https://github.com/protocolbuffers/protobuf) but packaged for [Zig](https://ziglang.org).
4+
5+
## How to add to your project
6+
7+
`zig fetch --save git+https://github.com/Jan200101/ziggy-protobuf`
8+
9+
You can then access the available libraries and executables like this:
10+
```zig
11+
const protobuf_dep = b.dependency("protobuf", .{
12+
.target = target,
13+
.optimize = optimize,
14+
});
15+
16+
// µpb
17+
const upb = protobuf_dep.artifact("upb");
18+
19+
// libprotobuf
20+
const libprotoc = protobuf_dep.artifact("protobuf");
21+
22+
// libprotoc
23+
const libprotoc = protobuf_dep.artifact("protoc");
24+
25+
// protoc
26+
const protoc = protobuf_dep.artifact("protoc");
27+
```
28+

build.zig.zon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
.url = "https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protobuf-35.1.tar.gz",
88
.hash = "N-V-__8AAKESzQLTflk_8mGwLlk9VhY62vntiaDf9ZwZwX6U",
99
},
10-
.abseil = .{ .path = "pkg/abseil" },
10+
.abseil = .{
11+
.url = "git+https://github.com/Jan200101/ziggy-abseil#722e1089262cdce8e485363a6729c06b6ca2efa9",
12+
.hash = "abseil-0.0.0-M-myhlIkAACpKaKXQ-J4u1tJAiCK7eIijCWjawVp3BQZ",
13+
},
1114
},
1215
.paths = .{""},
1316
}

pkg/abseil/build.zig

Lines changed: 0 additions & 232 deletions
This file was deleted.

pkg/abseil/build.zig.zon

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)