-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
44 lines (39 loc) · 1.04 KB
/
Copy pathsnapcraft.yaml
File metadata and controls
44 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: openapi2zig
base: core22
version: git
summary: A tool for generating clients and contracts in Zig from OpenAPI specifications
description: |
A CLI tool written in Zig that generates API client code in Zig from OpenAPI specifications.
Features
- Parse OpenAPI v3.0 specifications (JSON format)
- Generate type-safe Zig client code
- Support for complex OpenAPI schemas and operations
- Cross-platform support (Linux, macOS, Windows)
grade: stable
confinement: strict
apps:
openapi2zig:
command: bin/openapi2zig
plugs:
- network
- home
parts:
zig:
plugin: nil
build-packages:
- curl
- xz-utils
override-build: |
snap install zig --classic --beta
snap install powershell --classic
openapi2zig:
after: [zig]
plugin: nil
source: .
override-build: |
export PATH="$SNAPCRAFT_STAGE/zig:$PATH"
zig build -Doptimize=ReleaseFast
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp zig-out/bin/openapi2zig $SNAPCRAFT_PART_INSTALL/bin/
stage-packages:
- libc6