Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikskuh/zig-mqtt
A build package for mqtt-c.
https://github.com/ikskuh/zig-mqtt
iot mqtt protocol zig zig-package
Last synced: 3 months ago
JSON representation
A build package for mqtt-c.
- Host: GitHub
- URL: https://github.com/ikskuh/zig-mqtt
- Owner: ikskuh
- License: mit
- Created: 2022-05-18T06:37:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-28T11:07:28.000Z (almost 2 years ago)
- Last Synced: 2024-05-17T11:43:12.432Z (7 months ago)
- Topics: iot, mqtt, protocol, zig, zig-package
- Language: Zig
- Homepage:
- Size: 4.88 KB
- Stars: 21
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# zig-mqtt
A build package for the awesome [mqtt-c](https://github.com/LiamBindle/MQTT-C) project by [Liam Bindle](https://github.com/LiamBindle).
Right now only provides a build script API in `Sdk.zig`, but might contain a Zig frontend in the future.
## Usage
```zig
const std = @import("std");
const Sdk = @import("Sdk.zig");pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions();
const target = b.standardTargetOptions(.{});const lib = Sdk.createLibrary(b);
lib.setBuildMode(mode);
lib.setTarget(target);
lib.install();const exe = b.addExecutable(…);
exe.linkLibary(lib);
exe.addIncludePath(Sdk.include_path);
…
}
```