Skip to content

Commit

Permalink
bunch of improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jun 18, 2024
1 parent 8366de5 commit 3f57480
Show file tree
Hide file tree
Showing 15 changed files with 286 additions and 128 deletions.
5 changes: 1 addition & 4 deletions async/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
(library
(name httpun_ws_async)
(public_name httpun-ws-async)
(libraries async core faraday-async gluten-async httpun-ws digestif.ocaml
base64)
(flags
(:standard -safe-string)))
(libraries async core gluten-async httpun-ws digestif.ocaml))
93 changes: 93 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,96 @@
(lang dune 3.0)

(name httpun-ws)

(generate_opam_files true)

(source
(github anmonteiro/httpun-ws))

(authors
"Spiros Eliopoulos <spiros@inhabitedtype.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>")

(maintainers "Antonio Nuno Monteiro <anmonteiro@gmail.com>")

(homepage "https://github.com/anmonteiro/httpun-ws")

(bug_reports "https://github.com/anmonteiro/httpun-ws/issues")

(license "BSD-3-clause")

(package
(name httpun-ws)
(synopsis "Websocket implementation for httpun")
(depends
(ocaml
(>= "4.08"))
(base64
(>= "3.0.0"))
bigstringaf
(angstrom
(>= "0.14.0"))
(faraday
(>= "0.8.0"))
(gluten
(>= "0.2.0"))
httpun
(alcotest :with-test)))

(package
(name httpun-ws-lwt)
(synopsis "Lwt support for httpun")
(depends
(ocaml
(>= "4.08"))
httpun-ws
lwt
digestif
(gluten-lwt
(>= "0.2.0"))))

(package
(name httpun-ws-lwt-unix)
(synopsis "Lwt + unix support for httpun-ws")
(depends
(ocaml
(>= "4.08"))
httpun-ws-lwt
(gluten-lwt-unix
(>= "0.2.0"))))

(package
(name httpun-ws-eio)
(synopsis "Eio support for httpun")
(depends
(ocaml
(>= "4.08"))
httpun-ws
digestif
(gluten-eio
(>= "0.2.1"))))

(package
(name httpun-ws-mirage)
(synopsis "Mirage support for httpun")
(depends
(ocaml
(>= "4.08"))
httpun-ws-lwt
(gluten-mirage
(>= "0.2.0"))
(mirage-flow
(>= "2.0.0"))
cstruct))

(package
(name httpun-ws-async)
(synopsis "Mirage support for httpun")
(depends
(ocaml
(>= "4.08"))
httpun-ws
(async
(>= "v0.15.0"))
gluten-async
digestif))
39 changes: 19 additions & 20 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system}.extend (self: super: {
ocamlPackages = super.ocaml-ng.ocamlPackages_5_1;
ocamlPackages = super.ocaml-ng.ocamlPackages_5_2;
});
in
rec {
packages = pkgs.callPackage ./nix { nix-filter = nix-filter.lib; };
defaultPackage = packages.httpun-ws;
devShell = pkgs.callPackage ./shell.nix { inherit packages; };
devShell = pkgs.callPackage ./nix/shell.nix { inherit packages; };
});
}
38 changes: 25 additions & 13 deletions httpun-ws-async.opam
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
name: "httpun-ws-async"
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
authors: [ "Antonio N. Monteiro <anmonteiro@gmail.com>" ]
synopsis: "Mirage support for httpun"
maintainer: ["Antonio Nuno Monteiro <anmonteiro@gmail.com>"]
authors: [
"Spiros Eliopoulos <spiros@inhabitedtype.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>"
]
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/httpun-ws"
bug-reports: "https://github.com/anmonteiro/httpun-ws/issues"
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
build: [
["jbuilder" "subst" "-p" name] {pinned}
["jbuilder" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.08"}
"httpun-ws"
"dune"
"faraday-async"
"async" {>= "v0.15.0"}
"gluten-async"
"digestif"
"base64"
"odoc" {with-doc}
]
synopsis: "Async support for websocket/af"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
38 changes: 26 additions & 12 deletions httpun-ws-eio.opam
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
name: "httpun-ws-eio"
maintainer: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
authors: [ "Antonio Nuno Monteiro <anmonteiro@gmail.com>" ]
synopsis: "Eio support for httpun"
maintainer: ["Antonio Nuno Monteiro <anmonteiro@gmail.com>"]
authors: [
"Spiros Eliopoulos <spiros@inhabitedtype.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>"
]
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/httpun-ws"
bug-reports: "https://github.com/anmonteiro/httpun-ws/issues"
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
build: [
["dune" "subst" "-p" name] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.08"}
"httpun-ws"
"dune" {build}
"digestif"
"gluten-eio"
"gluten-eio" {>= "0.2.1"}
"odoc" {with-doc}
]
synopsis: "Lwt support for websocket/af"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
40 changes: 25 additions & 15 deletions httpun-ws-lwt-unix.opam
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
name: "httpun-ws-lwt-unix"
maintainer: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
authors: [ "Andreas Garnæs <andreas.garnaes@gmail.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>" ]
synopsis: "Lwt + unix support for httpun-ws"
maintainer: ["Antonio Nuno Monteiro <anmonteiro@gmail.com>"]
authors: [
"Spiros Eliopoulos <spiros@inhabitedtype.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>"
]
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/httpun-ws"
bug-reports: "https://github.com/anmonteiro/httpun-ws/issues"
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
build: [
["dune" "subst" "-p" name] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.03.0"}
"faraday-lwt-unix"
"httpun-ws"
"dune" {>= "3.0"}
"ocaml" {>= "4.08"}
"httpun-ws-lwt"
"dune" {build}
"lwt"
"gluten-lwt-unix" {>= "0.2.0"}
"odoc" {with-doc}
]
synopsis: "Lwt support for websocket/af"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
37 changes: 25 additions & 12 deletions httpun-ws-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
name: "httpun-ws-lwt"
maintainer: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
authors: [ "Andreas Garnæs <andreas.garnaes@gmail.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>" ]
synopsis: "Lwt support for httpun"
maintainer: ["Antonio Nuno Monteiro <anmonteiro@gmail.com>"]
authors: [
"Spiros Eliopoulos <spiros@inhabitedtype.com>"
"Antonio Nuno Monteiro <anmonteiro@gmail.com>"
]
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/httpun-ws"
bug-reports: "https://github.com/anmonteiro/httpun-ws/issues"
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
build: [
["dune" "subst" "-p" name] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.08"}
"httpun-ws"
"dune" {build}
"lwt"
"digestif"
"gluten-lwt" {>= "0.2.0"}
"odoc" {with-doc}
]
synopsis: "Lwt support for websocket/af"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/anmonteiro/httpun-ws.git"
Loading

0 comments on commit 3f57480

Please sign in to comment.