Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
📦 Packaged for Gyro
Browse files Browse the repository at this point in the history
  • Loading branch information
ducdetronquito committed Aug 25, 2021
1 parent 9fb737a commit 93569e4
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 51 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
text eol=lf
*.zig text eol=lf
*.zzz text eol=lf
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Build artifacts
zig-cache/

# Gyro
deps.zig
.gyro
gyro.lock
zig-out/
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

12 changes: 3 additions & 9 deletions build.zig
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
const Builder = @import("std").build.Builder;
const packages = @import("lib/packages.zig");
const pkgs = @import("deps.zig").pkgs;

pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const lib = b.addStaticLibrary("requestz", "src/main.zig");
lib.addPackage(packages.network);
lib.addPackage(packages.iguanaTLS);
lib.addPackage(packages.h11);
lib.addPackage(packages.http);
pkgs.addAllTo(lib);
lib.setBuildMode(mode);
lib.install();

var main_tests = b.addTest("src/tests.zig");
main_tests.addPackage(packages.network);
main_tests.addPackage(packages.iguanaTLS);
main_tests.addPackage(packages.h11);
main_tests.addPackage(packages.http);
pkgs.addAllTo(main_tests);
main_tests.setBuildMode(mode);

const test_step = b.step("test", "Run library tests");
Expand Down
24 changes: 24 additions & 0 deletions gyro.zzz
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pkgs:
requestz:
version: 0.1.0
root: src/main.zig
description: HTTP client for Zig 🦎
license: 0BSD
source_url: "https://github.com/ducdetronquito/requestz"
tags: http
deps:
ducdetronquito/http: ^0.1.3
ducdetronquito/h11: ^0.1.1
iguanaTLS:
src:
github:
user: alexnask
repo: iguanaTLS
ref: 0d39a361639ad5469f8e4dcdaea35446bbe54b48
network:
root: network.zig
src:
github:
user: MasterQ32
repo: zig-network
ref: b9c91769d8ebd626c8e45b2abb05cbc28ccc50da
1 change: 0 additions & 1 deletion lib/h11
Submodule h11 deleted from 7ed7e3
1 change: 0 additions & 1 deletion lib/iguanaTLS
Submodule iguanaTLS deleted from 0c0b35
29 changes: 0 additions & 29 deletions lib/packages.zig

This file was deleted.

1 change: 0 additions & 1 deletion lib/zig-network
Submodule zig-network deleted from de8524

0 comments on commit 93569e4

Please sign in to comment.