Skip to content

Commit

Permalink
Merge branch 'master' into eio-3
Browse files Browse the repository at this point in the history
  • Loading branch information
bikallem authored May 31, 2022
2 parents 443151b + b2c3198 commit 29d4cf8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 64 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3


- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
Expand All @@ -48,12 +47,6 @@ jobs:
- run: yarn --frozen-lockfile
working-directory: cohttp-lwt-jsoo/test

- run: |
sudo apt update
sudo apt upgrade
opam depext conf-libcurl
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig" >>"$GITHUB_ENV"
if: ${{ matrix.os == 'macos-latest' }}

Expand Down
3 changes: 2 additions & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version = 0.21.0
profile = conventional
break-infix = fit-or-vertical
parse-docstrings = true
parse-docstrings = true
82 changes: 30 additions & 52 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,18 @@ should also be fine under Windows too.
(package
(name cohttp-server-lwt-unix)
(synopsis "Lightweight Cohttp + Lwt based HTTP server")
(description
"This server implementation is faster than cohttp-lwt-unix and is independent of\nconduit.\n")
(description "\
This server implementation is faster than cohttp-lwt-unix and is independent of
conduit.
")
(depends
(ocaml
(>= 4.08))
(http
(= :version))
(cohttp
(= :version))
(cohttp-lwt
(= :version))
(ocaml (>= 4.08))
(http (= :version))
(cohttp (= :version))
(cohttp-lwt (= :version))
(conduit-lwt-unix :with-test)
(cohttp-lwt-unix
(and
:with-test
(= :version)))
(cohttp-lwt
(and
:with-test
(= :version)))
(cohttp-lwt-unix (and :with-test (= :version)))
(cohttp-lwt (and :with-test (= :version)))
lwt))

(package
Expand Down Expand Up @@ -252,39 +244,33 @@ should also be fine under Windows too.
:with-test
(>= v0.13.0)))
(core_bench :with-test)
(crowbar :with-test)
(crowbar (and :with-test (>= 0.2)))
(sexplib0 :with-test)))

(package
(name cohttp-curl)
(synopsis "Shared code between the individual cohttp-curl clients")
(description "Use cohttp-curl-lwt or cohttp-curl-async")
(depends
(ocaml
(>= 4.08))
(ocaml (>= 4.08))
ocurl
(http
(= :version))
(http (= :version))
stringext))

(package
(name cohttp-curl-lwt)
(synopsis "Cohttp client using Curl & Lwt as the backend")
(description
"An HTTP client that relies on Curl + Lwt for the backend. Does not require\nconduit for SSL.")
(description "\
An HTTP client that relies on Curl + Lwt for the backend. Does not require
conduit for SSL.")
(depends
(ocaml
(>= 4.08))
(ocaml (>= 4.08))
ocurl
(http
(= :version))
(http (= :version))
cohttp-curl
stringext
lwt
(uri
(and
:with-test
(>= 4.2.0)))
(uri (and :with-test (>= 4.2.0)))
(alcotest :with-test)
(cohttp-lwt-unix :with-test)
(cohttp :with-test)
Expand All @@ -295,22 +281,19 @@ should also be fine under Windows too.
(package
(name cohttp-curl-async)
(synopsis "Cohttp client using Curl & Async as the backend")
(description
"An HTTP client that relies on Curl + Async for the backend. Does not require\nconduit for SSL.")
(description "\
An HTTP client that relies on Curl + Async for the backend. Does not require
conduit for SSL.")
(depends
ocurl
(http
(= :version))
(http (= :version))
stringext
core
(core_unix (>= v0.14.0))
async_kernel
async_unix
(cohttp-async :with-test)
(uri
(and
:with-test
(>= 4.2.0)))
(uri (and :with-test (>= 4.2.0)))
(fmt :with-test)
(ounit :with-test)
(alcotest :with-test)))
Expand All @@ -324,16 +307,11 @@ should also be fine under Windows too.
(core
(>= v0.13.0))
core_bench
(http
(= :version))
(cohttp
(= :version))
(cohttp-lwt-unix
(= :version))
(cohttp-server-lwt-unix
(= :version))
(cohttp-async
(= :version))))
(http (= :version))
(cohttp (= :version))
(cohttp-lwt-unix (= :version))
(cohttp-server-lwt-unix (= :version))
(cohttp-async (= :version))))

(package
(name cohttp-eio)
Expand All @@ -350,4 +328,4 @@ should also be fine under Windows too.
(eio_main :with-test)
(conf-nmap :with-test)
(http
(= :version))))
(= :version))))
2 changes: 1 addition & 1 deletion http.opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ depends: [
"ppx_here" {with-test}
"core" {with-test & >= "v0.13.0"}
"core_bench" {with-test}
"crowbar" {with-test}
"crowbar" {with-test & >= "0.2"}
"sexplib0" {with-test}
"odoc" {with-doc}
]
Expand Down
4 changes: 1 addition & 3 deletions test_helpers/cohttp_test/src/cohttp_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ module type S = sig
val run_async_tests : OUnit.test io -> OUnit.test_results io
end

let port =
Random.self_init ();
ref (1024 + Random.int 40000)
let port = Random.self_init (); ref (1024 + Random.int 40000)

let next_port () =
let current_port = !port in
Expand Down

0 comments on commit 29d4cf8

Please sign in to comment.