diff --git a/dune-project b/dune-project index 9ccb6023..385ca877 100644 --- a/dune-project +++ b/dune-project @@ -27,6 +27,16 @@ (ptime :with-test) (qcheck-core (and (>= 0.9) :with-test)))) +(package + (name tiny_httpd_ws) + (synopsis "Websockets for tiny_httpd") + (depends + (tiny_httpd (= :version)) + (base64 (>= 3.0)) + crypokit + (logs :with-test) + (odoc :with-doc))) + (package (name tiny_httpd_camlzip) (synopsis "Interface to camlzip for tiny_httpd") diff --git a/src/ws/common_.ml b/src/ws/common_.ml new file mode 100644 index 00000000..7dac5a41 --- /dev/null +++ b/src/ws/common_.ml @@ -0,0 +1 @@ +module IO = Tiny_httpd_io diff --git a/src/ws/dune b/src/ws/dune new file mode 100644 index 00000000..24c327f2 --- /dev/null +++ b/src/ws/dune @@ -0,0 +1,7 @@ + +(library + (name tiny_httpd_ws) + (public_name tiny_httpd_ws) + (synopsis "Websockets for tiny_httpd") + (private_modules common_) + (libraries tiny_httpd base64 cryptokit)) diff --git a/src/ws/tiny_httpd_ws.ml b/src/ws/tiny_httpd_ws.ml new file mode 100644 index 00000000..e69de29b diff --git a/src/ws/tiny_httpd_ws.mli b/src/ws/tiny_httpd_ws.mli new file mode 100644 index 00000000..e69de29b diff --git a/tiny_httpd_ws.opam b/tiny_httpd_ws.opam new file mode 100644 index 00000000..b6600647 --- /dev/null +++ b/tiny_httpd_ws.opam @@ -0,0 +1,34 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +version: "0.16" +synopsis: "Websockets for tiny_httpd" +maintainer: ["c-cube"] +authors: ["c-cube"] +license: "MIT" +homepage: "https://github.com/c-cube/tiny_httpd/" +bug-reports: "https://github.com/c-cube/tiny_httpd/issues" +depends: [ + "dune" {>= "2.9"} + "tiny_httpd" {= version} + "base64" {>= "3.0"} + "crypokit" + "logs" {with-test} + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "--promote-install-files=false" + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] + ["dune" "install" "-p" name "--create-install-files" name] +] +dev-repo: "git+https://github.com/c-cube/tiny_httpd.git"