about summary refs log tree commit diff
path: root/users/Profpatsch/read-http/default.nix
blob: 20f8675b3fd40f82cc36b578477c6e19a568449f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ depot, pkgs, ... }:

let

  # reads a http request (stdin), and writes all headers to stdout, as netencoded dict
  read-http = depot.users.Profpatsch.writers.rustSimple {
    name = "read-http";
    dependencies = [
      depot.users.Profpatsch.rust-crates.httparse
      depot.users.Profpatsch.netencode.netencode-rs
      depot.users.Profpatsch.arglib.netencode.rust
    ];
  } (builtins.readFile ./read-http.rs);

in {
  inherit
    read-http
    ;
}