2022-07-23 04:33:39 +00:00
|
|
|
# Untitled Social Network server
|
|
|
|
|
|
|
|
## Building
|
|
|
|
### Requirements
|
|
|
|
|
|
|
|
- A recent-ish build of zig from the [main branch](https://github.zom/ziglang/zig) (0.9.1 will NOT work, it is missing stdlib apis we use)
|
|
|
|
- System libraries
|
|
|
|
* `sqlite3`
|
2022-10-12 03:42:22 +00:00
|
|
|
* `libpq`
|
2022-07-23 04:33:39 +00:00
|
|
|
|
2022-10-04 02:41:59 +00:00
|
|
|
NOTE: compilation is broken right now because of:
|
|
|
|
|
|
|
|
https://github.com/ziglang/zig/issues/12240
|
|
|
|
|
|
|
|
for a temporary fix, rebuild zig after changing `$stdlibdir/crypto/scrypt.zig:465` to use `default_salt_len` instead of `salt_bin.len`
|
|
|
|
|
2022-07-23 04:33:39 +00:00
|
|
|
### Commands
|
|
|
|
|
|
|
|
To build a binary: `zig build`
|
|
|
|
To run in debug mode: `zig build run`
|
|
|
|
|
|
|
|
### License
|
|
|
|
|
|
|
|
fuck you. i don't license this code to you. steal it or fuck off
|
|
|
|
|