1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00
Commit graph

91 commits

Author SHA1 Message Date
Rene Schallner
3f9c7d0f6b
Merge pull request #105 from SlaktarMicke92/feature/remove-deprecated-path
Remove deprecated path
2024-05-26 12:58:05 +02:00
Michael Wendt
8d1574619c feat: remove deprecated path
LazyPath has been deprecated in Zig 0.12 and in
the Zig master this breaks zig build.
2024-05-22 10:10:55 +02:00
Lord Asdi
b19f84cc43 fix: use std.process.getEnvVarOwned instead of std.posix.getenv
This allows cross compiling zap on a windows host
2024-05-18 22:07:05 +02:00
Rene Schallner
70c0ef1100
Merge pull request #100 from desttinghim/parseAccept
Parse Accept
2024-04-29 03:34:11 +02:00
Rene Schallner
fc7f11a35f fix docserver invocation from build.zig 2024-04-27 21:08:27 +02:00
Louis Pearson
6d646b62d6 feat: make example for parseAccept 2024-04-24 19:19:11 -06:00
Rene Schallner
6d7d1523cc
Merge pull request #99 from leroycep/link-module-to-facil.io
feat: streamline depending on zap by linking facil.io to module
2024-04-24 02:34:44 +02:00
geemili
5f65c650bd feat: streamline depending on zap by linking facil.io to module
This means that all downstream users can simply put:

```zig
exe.root_module.addImport("zap", zap.module("zap"))`
```

in their `build.zig` instead of

```zig
exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
```
2024-04-23 17:05:25 -06:00
Louis Pearson
3e4c29409e fix: docserver: server wasm with correct mimetype 2024-04-23 16:13:07 -06:00
Rene Schallner
1e1999802a Merge branch 'zig-0.12.0' 2024-04-21 14:20:15 +02:00
Rene Schallner
8cfd190fb2
Merge branch 'zig-0.12.0' into zig-0.12.0 2024-04-21 13:59:47 +02:00
Rene Schallner
a74dfb868d fixed autodoc 2024-03-23 23:49:52 +01:00
Rene Schallner
14fbe5849d latest docs 2024-03-23 23:44:05 +01:00
Rene Schallner
8cf48ddfc1 zig master: exit, get_env fixes 2024-03-23 22:23:13 +01:00
Andreas Stocker
0f8903c06e build: remove openssl env var check 2024-03-23 20:05:59 +01:00
Andreas Stocker
0e51d32b34 replace std.os.exit with std.process.exit 2024-03-23 19:56:11 +01:00
Rene Schallner
d51a0b8ca3 make latest patches work on zig master 2024-02-23 20:34:19 +01:00
Froxcey
42e96b4875 Use debug.err and exit 1 for windows fail message 2024-02-23 20:20:38 +01:00
Froxcey
3a50132123 Provide Windows error message 2024-02-23 20:20:11 +01:00
Froxcey
2f174bbcef
Use debug.err and exit 1 for windows fail message 2024-02-19 20:37:08 +08:00
Froxcey
1328bdf7c2
Provide Windows error message 2024-02-13 00:07:32 +08:00
stringnick
508b1a12c0 some refactoring 2024-01-24 13:59:36 +01:00
stringnick
2c2814144e simple router with clojure 2024-01-24 13:59:36 +01:00
stringnick
5e76e17baf some refactoring 2024-01-18 21:33:26 +01:00
stringnick
f13160eda6 simple router with clojure 2024-01-13 13:23:54 +01:00
Vemahk
56f687bf19 updated relevant comment 2024-01-07 21:34:58 +01:00
Vemahk
613afaf1af readd -Dopenssl to zap build. modify readme for instructions how to use it 2024-01-07 21:34:58 +01:00
Vemahk
887cdd8b0e updated relevant comment 2024-01-05 20:15:32 -06:00
Vemahk
235e9045fc readd -Dopenssl to zap build.
modify readme for instructions how to use it
2024-01-05 20:04:38 -06:00
Rene Schallner
31bf768b96 fix build for latest zig master 2024-01-05 15:37:25 +01:00
Rene Schallner
5eb57387e8 openssl support depend on ZAP_USE_OPENSSL=true env 2024-01-05 13:59:25 +01:00
Rene Schallner
6e5d028d51 openssl support depend on ZAP_USE_OPENSSL=true env 2024-01-05 13:44:01 +01:00
Rene Schallner
c38856d0e1 added zap.Tls, updated https example 2023-12-30 03:13:36 +01:00
Rene Schallner
521b0deaf6 added docs & docserver 2023-12-30 00:51:05 +01:00
Rene Schallner
39b543a45e for now: skip http in zig build all 2023-12-29 23:39:22 +01:00
Rene Schallner
82323f835e 0.12.0 ready 2023-12-29 23:34:33 +01:00
Rene Schallner
5e789ee87a added https example 2023-12-29 17:44:25 +01:00
Rene Schallner
62fc16aaac build.zig changes for conditional openssl support 2023-12-29 15:57:20 +01:00
Rene Schallner
e75e1b06e9 swallowed facil.io into zap 2023-12-22 04:03:32 +01:00
sadbeast
8f5aa17109 Add MustacheLoad to support loading from file
According to the facil.io docs
(http://facil.io/0.7.x/fiobj_mustache#fiobj_mustache_new):

> By setting the filename argument even when the data argument exists,
> it will allow path resolution for partial templates. Otherwise, there
> is no way to know where to find the partial templates.

This will allow partial templates to work.

However, this also introduces a breaking change to the existing
MustacheNew function. This change makes it mirror the C version where it
accepts a MustacheLoadArgs struct instead of just the data.  That's also
a handy method to have, so I renamed that to MustacheData...maybe
there's a better name?
2023-09-13 13:22:23 +02:00
Rene Schallner
e55f6181f8 added example for bindataformpost 2023-09-12 18:58:34 +02:00
Rene Schallner
977fa41225 update to latest zig & adapt to new stdlib changes 2023-08-01 15:13:30 +02:00
Rene Schallner
1c9adb6868 use latest facil to support musl builds (thx @mattnite) 2023-07-23 18:09:29 +02:00
Rene Schallner
a132b78b23 build test: run all tests 2023-05-24 01:27:40 +02:00
Rene Schallner
10e9eb6a13 announceybot in zig can send announcements 2023-05-22 21:19:47 +02:00
Rene Schallner
e5e657870e first cut of sendError 2023-05-22 05:17:21 +02:00
Rene Schallner
35144b195e zap.Middleware.EndpointHandler, r.get/setContext() 2023-05-20 03:16:02 +02:00
Rene Schallner
d656452667 MIDDLEWARE support 2023-05-19 02:47:39 +02:00
Rene Schallner
b988454a72 added example for sendFile 2023-05-13 22:30:45 +02:00
Rene Schallner
48e30ca35c feature: SimpleRequest.sendFile(filename) 2023-05-12 23:50:22 +02:00