Skip to content

Commit 8a2b892

Browse files
authored
Add mo_protobuf (#256)
* Add mo_protobuf * Image transparency fix
1 parent 298370a commit 8a2b892

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

recipes/mo_protobuf/image.png

964 KB
Loading

recipes/mo_protobuf/recepie.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
context:
2+
version: "0.1.0"
3+
mojo_version: ">=0.26.2.0,<0.26.3.0"
4+
5+
package:
6+
name: "mo_protobuf"
7+
version: ${{ version }}
8+
9+
source:
10+
- git: https://github.com/kivicode/mo_grpc.git
11+
rev: 50160ecd26a910051e98c41c829c3be672b9bb3b
12+
13+
build:
14+
number: 0
15+
script:
16+
- mojo package packages/mo_protobuf/mo_protobuf -o ${{ PREFIX }}/lib/mojo/mo_protobuf.mojopkg
17+
- mojo build -I packages/protoc-gen-mojo packages/protoc-gen-mojo/main.mojo -o ${{ PREFIX }}/bin/protoc-gen-mojo
18+
19+
requirements:
20+
build:
21+
- mojo-compiler ${{ mojo_version }}
22+
host:
23+
- mojo-compiler ${{ mojo_version }}
24+
run:
25+
- mojo-compiler ${{ mojo_version }}
26+
27+
tests:
28+
- script:
29+
- if: unix
30+
then:
31+
- mojo run packages/protoc-gen-mojo/tests/test_runtime.mojo
32+
requirements:
33+
run:
34+
- mojo ${{ mojo_version }}
35+
files:
36+
source:
37+
- packages/protoc-gen-mojo/tests/test_runtime.mojo
38+
39+
about:
40+
homepage: https://github.com/kivicode/mo_grpc
41+
license: MIT
42+
license_file: LICENSE
43+
summary: Pure-Mojo protobuf runtime and protoc plugin for generating Mojo structs from .proto files.
44+
repository: https://github.com/kivicode/mo_grpc
45+
46+
extra:
47+
maintainers:
48+
- kivicode
49+
project_name: mo_protobuf

0 commit comments

Comments
 (0)