Skip to content

Commit

Permalink
build: add packages to dune-project + re-generate opam files
Browse files Browse the repository at this point in the history
  • Loading branch information
maxRN committed Aug 31, 2024
1 parent b0b401b commit 1717f19
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 84 deletions.
53 changes: 25 additions & 28 deletions dream-httpaf.opam
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"

synopsis: "Internal: shared http/af stack for Dream (server) and Hyper (client)"
synopsis:
"Internal: shared http/af stack for Dream (server) and Hyper (client)"
description: "This package does not have a stable API."

maintainer: ["Anton Bachin <antonbachin@yahoo.com>"]
authors: ["Anton Bachin <antonbachin@yahoo.com>"]
license: "MIT"
homepage: "https://github.com/aantron/dream"
doc: "https://aantron.github.io/dream"
bug-reports: "https://github.com/aantron/dream/issues"
dev-repo: "git+https://github.com/aantron/dream.git"

author: "Anton Bachin <antonbachin@yahoo.com>"
maintainer: "Anton Bachin <antonbachin@yahoo.com>"

depends: [
"dream-pure"
"dune" {>= "2.7.0"} # --instrument-with.
"dune" {>= "2.7" & >= "2.7"}
"lwt"
"lwt_ppx" {>= "1.2.2"}
"lwt_ssl"
"ocaml" {>= "4.08.0"}
"ssl" {>= "0.5.8"} # Ssl.get_negotiated_alpn_protocol.

# Currently vendored.
# "gluten"
# "gluten-lwt-unix"
# "httpaf"
# "httpaf-lwt-unix"
# "h2"
# "h2-lwt-unix"
# "hpack"
# "websocketaf"

# Dependencies of vendored packages.
"ssl" {>= "0.5.8"}
"angstrom" {>= "0.14.0"}
"base64" {>= "3.0.0"}
"bigstringaf" {>= "0.5.0"} # h2.
"digestif" {>= "0.7.2"} # websocket/af, sha1, default implementation.
"bigstringaf" {>= "0.5.0"}
"digestif" {>= "0.7.2"}
"faraday" {>= "0.6.1"}
"faraday-lwt-unix"
"lwt_ssl" {>= "1.2.0"} # Gluten.
"psq" # h2.
"lwt_ssl" {>= "1.2.0"}
"psq"
"odoc" {with-doc}
]

build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/aantron/dream.git"
38 changes: 23 additions & 15 deletions dream-mirage.opam
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"

synopsis: "Tidy, feature-complete Web framework"
tags: ["http" "web" "framework" "websocket" "graphql" "server" "http2" "tls"]

description: """
Dream is a feature-complete Web framework with a simple programming
model and no boilerplate. It provides only two data types, request and
Expand All @@ -29,34 +27,32 @@ Within this model, Dream adds:
- Helpers for Web formats, such as Base64url, and a modern cipher.

Because of the simple programming model, everything is optional and
composable. It is trivailly possible to strip Dream down to just a
composable. It is trivially possible to strip Dream down to just a
bare driver of the various HTTP protocols.

Dream is presented as a single module, whose API is documented on one
page. In addition, Dream comes with a large number of examples.
Security topics are introduced throughout, wherever they are
applicable."""

applicable.
"""
maintainer: ["Anton Bachin <antonbachin@yahoo.com>"]
authors: ["Anton Bachin <antonbachin@yahoo.com>"]
license: "MIT"
tags: ["http" "web" "framework" "websocket" "graphql" "server" "http2" "tls"]
homepage: "https://github.com/aantron/dream"
doc: "https://aantron.github.io/dream"
bug-reports: "https://github.com/aantron/dream/issues"
dev-repo: "git+https://github.com/aantron/dream.git"

author: "Anton Bachin <antonbachin@yahoo.com>"
maintainer: "Anton Bachin <antonbachin@yahoo.com>"

depends: [
"bigarray-compat"
"bigstringaf"
"digestif" {>= "1.0.0"}
"dream"
"dream-httpaf"
"dream-pure"
"dune" {>= "2.7.0"}
"dune" {>= "2.7" & >= "2.7"}
"duration"
"emile" {>= "1.1"}
"ke" {>= "0.4"} # paf.
"ke" {>= "0.4"}
"letsencrypt" {>= "0.3.0"}
"lwt"
"lwt_ppx" {>= "1.2.2"}
Expand All @@ -65,8 +61,20 @@ depends: [
"rresult"
"tcpip"
"tls-mirage"
"odoc" {with-doc}
]

build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/aantron/dream.git"
38 changes: 22 additions & 16 deletions dream-pure.opam
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"

synopsis: "Internal: shared HTTP types for Dream (server) and Hyper (client)"
description: "This package does not have a stable API."

maintainer: ["Anton Bachin <antonbachin@yahoo.com>"]
authors: ["Anton Bachin <antonbachin@yahoo.com>"]
license: "MIT"
homepage: "https://github.com/aantron/dream"
doc: "https://aantron.github.io/dream"
bug-reports: "https://github.com/aantron/dream/issues"
dev-repo: "git+https://github.com/aantron/dream.git"

author: "Anton Bachin <antonbachin@yahoo.com>"
maintainer: "Anton Bachin <antonbachin@yahoo.com>"

depends: [
"base64" {>= "3.1.0"} # Base64.encode_string.
"bigstringaf" {>= "0.5.0"} # Bigstringaf.to_string.
"dune" {>= "2.7.0"} # --instrument-with.
"base64" {>= "3.1.0"}
"bigstringaf" {>= "0.5.0"}
"dune" {>= "2.7" & >= "2.7"}
"hmap"
"lwt"
"lwt_ppx" {>= "1.2.2"}
"ocaml" {>= "4.08.0"}
"ptime" {>= "0.8.1"} # Ptime.weekday.
"ptime" {>= "0.8.1"}
"uri" {>= "4.2.0"}

# Testing, development.
"alcotest" {with-test}
"bisect_ppx" {with-test & >= "2.5.0"} # --instrument-with.
"bisect_ppx" {with-test & >= "2.5.0"}
"ppx_expect" {with-test}
"ppx_yojson_conv" {with-test}
"odoc" {with-doc}
]

build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/aantron/dream.git"
57 changes: 32 additions & 25 deletions dream.opam
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"

synopsis: "Tidy, feature-complete Web framework"
tags: ["http" "web" "framework" "websocket" "graphql" "server" "http2" "tls"]

description: """
Dream is a feature-complete Web framework with a simple programming
model and no boilerplate. It provides only two data types, request and
Expand All @@ -29,36 +27,35 @@ Within this model, Dream adds:
- Helpers for Web formats, such as Base64url, and a modern cipher.

Because of the simple programming model, everything is optional and
composable. It is trivailly possible to strip Dream down to just a
composable. It is trivially possible to strip Dream down to just a
bare driver of the various HTTP protocols.

Dream is presented as a single module, whose API is documented on one
page. In addition, Dream comes with a large number of examples.
Security topics are introduced throughout, wherever they are
applicable."""

applicable.
"""
maintainer: ["Anton Bachin <antonbachin@yahoo.com>"]
authors: ["Anton Bachin <antonbachin@yahoo.com>"]
license: "MIT"
tags: ["http" "web" "framework" "websocket" "graphql" "server" "http2" "tls"]
homepage: "https://github.com/aantron/dream"
doc: "https://aantron.github.io/dream"
bug-reports: "https://github.com/aantron/dream/issues"
dev-repo: "git+https://github.com/aantron/dream.git"

author: "Anton Bachin <antonbachin@yahoo.com>"
maintainer: "Anton Bachin <antonbachin@yahoo.com>"

depends: [
"base-unix"
"bigarray-compat"
"camlp-streams"
"caqti" {>= "2.0.0"}
"caqti-lwt" {>= "2.0.0"}
("conf-libev" {os != "win32"} | "ocaml" {os = "win32"})
"conf-libev" {os != "win32"}
"ocaml" {os = "win32"}
"cstruct" {>= "6.0.0"}
"digestif" {>= "0.7"} # to_raw_string.
"digestif" {>= "0.7"}
"dream-httpaf" {>= "1.0.0~alpha3"}
"dream-pure" {>= "1.0.0~alpha2"}
"dune" {>= "2.7.0"} # --instrument-with.
"fmt" {>= "0.8.7"} # `Italic.
"dune" {>= "2.7" & >= "2.7"}
"fmt" {>= "0.8.7"}
"graphql_parser"
"graphql-lwt"
"lambdasoup" {>= "0.6.1"}
Expand All @@ -68,34 +65,44 @@ depends: [
"logs" {>= "0.5.0"}
"magic-mime"
"markup" {>= "1.0.2"}
"mirage-clock" {>= "3.0.0"} # now_d_ps : unit -> int * int64.
"mirage-clock" {>= "3.0.0"}
"mirage-crypto" {>= "1.0.0"}
"mirage-crypto-rng" {>= "1.0.0"}
"mirage-crypto-rng-lwt"
"multipart_form" {>= "0.4.0"}
"multipart_form-lwt"
"ocaml" {>= "4.08.0"}
"ptime" {>= "0.8.1"} # Ptime.v.
"ssl" {>= "0.5.8"} # Ssl.get_negotiated_alpn_protocol.
"ptime" {>= "0.8.1"}
"ssl" {>= "0.5.8"}
"uri" {>= "4.2.0"}
"yojson" # ...

# Testing, development.
"yojson"
"alcotest" {with-test}
"bisect_ppx" {with-test & >= "2.5.0"} # --instrument-with.
"bisect_ppx" {with-test & >= "2.5.0"}
"caqti-driver-postgresql" {with-test}
"caqti-driver-sqlite3" {with-test}
"crunch" {with-test}
"html_of_jsx" {with-test}
"js_of_ocaml" {with-test}
"js_of_ocaml-ppx" {with-test}
"ppx_expect" {with-test & >= "v0.15.0"} # Formatting changes.
"ppx_expect" {with-test & >= "v0.15.0"}
"ppx_yojson_conv" {with-test}
"reason" {with-test}
"tyxml" {with-test & >= "4.5.0"}
"tyxml-jsx" {with-test}
"odoc" {with-doc}
]

build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/aantron/dream.git"
Loading

0 comments on commit 1717f19

Please sign in to comment.