Skip to content

Commit

Permalink
Merge pull request #716 from robhoes/httpun
Browse files Browse the repository at this point in the history
Add httpun and h2 (with dependencies)
  • Loading branch information
psafont authored Feb 7, 2025
2 parents d2b1d26 + 5bd10d2 commit e5ede6b
Show file tree
Hide file tree
Showing 9 changed files with 285 additions and 0 deletions.
31 changes: 31 additions & 0 deletions packages/bigstring-unix/bigstring-unix.0.3/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
opam-version: "2.0"
name: "bigstring-unix"
version: "0.3"
synopsis:
"I/O functions for bigstrings using file descriptors and memory-maps"
maintainer: "Simon Cruanes <simon.cruanes.2007@m4x.org>"
authors: "Simon Cruanes <simon.cruanes.2007@m4x.org>"
license: "BSD-2-Clause"
tags: ["bigstring" "bigarray"]
homepage: "https://github.com/c-cube/ocaml-bigstring/"
bug-reports: "https://github.com/c-cube/ocaml-bigstring/issues"
depends: [
"dune" {>= "1.2"}
"base-bigarray"
"base-unix"
"ocaml" {>= "4.03.0"}
"alcotest" {with-test}
"bigstring" {with-test}
]
build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
dev-repo: "git+https://github.com/c-cube/ocaml-bigstring.git"
url {
src: "https://github.com/c-cube/ocaml-bigstring/archive/0.3.tar.gz"
checksum: [
"md5=dff09605881c7f6efd4a8a1a71790889"
"sha512=d0c530603e9bb37a704d736137953e4f2a1b1e16517587010f2fb323a5c3e4d887f558775349231ea15a98d3c085ed9daaf0a7603f165cdd0097ff2548ce790a"
]
}
31 changes: 31 additions & 0 deletions packages/bigstring/bigstring.0.3/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
opam-version: "2.0"
name: "bigstring-unix"
version: "0.3"
synopsis:
"I/O functions for bigstrings using file descriptors and memory-maps"
maintainer: "Simon Cruanes <simon.cruanes.2007@m4x.org>"
authors: "Simon Cruanes <simon.cruanes.2007@m4x.org>"
license: "BSD-2-Clause"
tags: ["bigstring" "bigarray"]
homepage: "https://github.com/c-cube/ocaml-bigstring/"
bug-reports: "https://github.com/c-cube/ocaml-bigstring/issues"
depends: [
"dune" {>= "1.2"}
"base-bigarray"
"base-unix"
"ocaml" {>= "4.03.0"}
"alcotest" {with-test}
"bigstring" {with-test}
]
build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
dev-repo: "git+https://github.com/c-cube/ocaml-bigstring.git"
url {
src: "https://github.com/c-cube/ocaml-bigstring/archive/0.3.tar.gz"
checksum: [
"md5=dff09605881c7f6efd4a8a1a71790889"
"sha512=d0c530603e9bb37a704d736137953e4f2a1b1e16517587010f2fb323a5c3e4d887f558775349231ea15a98d3c085ed9daaf0a7603f165cdd0097ff2548ce790a"
]
}
35 changes: 35 additions & 0 deletions packages/faraday/faraday.0.8.2/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
opam-version: "2.0"
name: "faraday"
version: "0.8.2"
synopsis: "A library for writing fast and memory-efficient serializers"
description: """\
Faraday is a library for writing fast and memory-efficient serializers. Its
core type and related operation gives the user fine-grained control over
copying and allocation behavior while serializing user-defined types, and
presents the output in a form that makes it possible to use vectorized write
operations, such as the writev system call, or any other platform or
application-specific output APIs."""
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
authors: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
license: "BSD-3-clause"
homepage: "https://github.com/inhabitedtype/faraday"
bug-reports: "https://github.com/inhabitedtype/faraday/issues"
depends: [
"ocaml" {>= "4.03.0"}
"dune" {>= "1.11"}
"alcotest" {with-test & >= "0.4.1"}
"bigstringaf"
]
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
dev-repo: "git+https://github.com/inhabitedtype/faraday.git"
url {
src: "https://github.com/inhabitedtype/faraday/archive/0.8.2.tar.gz"
checksum: [
"sha256=720ea90b39fd3ea7de6e8722330a25514e67306e94d4af41ad48d8a7cfa035c6"
"md5=307dccc4ea67ff0eeff394701d05bbe7"
]
}
42 changes: 42 additions & 0 deletions packages/gluten/gluten.0.5.2/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
opam-version: "2.0"
name: "gluten"
version: "0.5.2"
synopsis: "A reusable runtime library for network protocols"
description:
"gluten implements platform specific runtime code for driving network libraries based on state machines, such as http/af, h2 and websocketaf."
maintainer: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
authors: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/gluten"
bug-reports: "https://github.com/anmonteiro/gluten/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" {>= "4.08.0"}
"bigstringaf" {>= "0.4.0"}
"faraday" {>= "0.7.3"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/anmonteiro/gluten.git"
url {
src:
"https://github.com/anmonteiro/gluten/releases/download/0.5.2/gluten-0.5.2.tbz"
checksum: [
"sha256=b1eed89f9f6080bb4bd289cc8d252c6bcf01f03d395726e66fa6067207e7015f"
"sha512=105e549d5ff83c43be6ab5e71ec1c19b27140a279002f04e02792e778f9e75deaecf4251324e6273e43039e38572b45ea236626b3afa7ef5c3c72baa3002c129"
]
}
x-commit-hash: "6a438739280b855474d5eb7906e4daa2b129ffa8"
41 changes: 41 additions & 0 deletions packages/h2/h2.0.13.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
opam-version: "2.0"
name: "h2"
version: "0.13.0"
synopsis:
"A high-performance, memory-efficient, and scalable HTTP/2 library for OCaml"
description:
"h2 is an implementation of the HTTP/2 specification entirely in OCaml. It is based on the concepts in httpun, and therefore uses the Angstrom and Faraday libraries to implement the parsing and serialization layers of the HTTP/2 standard as a state machine that is agnostic to the underlying I/O specifics. It also preserves the same API as httpun wherever possible."
maintainer: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
authors: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/ocaml-h2"
bug-reports: "https://github.com/anmonteiro/ocaml-h2/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" {>= "4.08.0"}
"base64" {>= "3.0.0"}
"angstrom" {>= "0.14.0"}
"faraday" {>= "0.7.3"}
"bigstringaf" {>= "0.5.0"}
"psq"
"hpack" {= version}
"httpun-types"
"alcotest" {with-test}
"yojson" {with-test}
"hex" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs "@install" "@doc" {with-doc}]
]
dev-repo: "git+https://github.com/anmonteiro/ocaml-h2.git"
url {
src:
"https://github.com/anmonteiro/ocaml-h2/releases/download/0.13.0/h2-0.13.0.tbz"
checksum: [
"sha256=0d89b6f178175294e7a207223be81d5b83fc31b97549bec34f0432a3b2a8070f"
"sha512=a442cb80f40fd179211e9ab7b4b748a4d2f7ad6ece75301d74a5363c08cd05a70b94ae90ff6fc6b95e8284c57c14cc17cbe7ade5dbf19b21b56207c6f984faf4"
]
}
x-commit-hash: "49c0591ce90e54187625919a460b694c8f3d003b"
34 changes: 34 additions & 0 deletions packages/hpack/hpack.0.13.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
opam-version: "2.0"
name: "hpack"
version: "0.13.0"
synopsis: "An HPACK (Header Compression for HTTP/2) implementation in OCaml"
description:
"hpack is an implementation of the HPACK: Header Compression for HTTP/2 specification (RFC7541) written in OCaml. It uses Angstrom and Faraday for parsing and serialization, respectively."
maintainer: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
authors: "Antonio Nuno Monteiro <anmonteiro@gmail.com>"
license: "BSD-3-clause"
homepage: "https://github.com/anmonteiro/ocaml-h2"
bug-reports: "https://github.com/anmonteiro/ocaml-h2/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" {>= "4.08.0"}
"angstrom"
"faraday" {>= "0.7.3"}
"yojson" {with-test}
"hex" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs "@install" "@doc" {with-doc}]
]
dev-repo: "git+https://github.com/anmonteiro/ocaml-h2.git"
url {
src:
"https://github.com/anmonteiro/ocaml-h2/releases/download/0.13.0/h2-0.13.0.tbz"
checksum: [
"sha256=0d89b6f178175294e7a207223be81d5b83fc31b97549bec34f0432a3b2a8070f"
"sha512=a442cb80f40fd179211e9ab7b4b748a4d2f7ad6ece75301d74a5363c08cd05a70b94ae90ff6fc6b95e8284c57c14cc17cbe7ade5dbf19b21b56207c6f984faf4"
]
}
x-commit-hash: "49c0591ce90e54187625919a460b694c8f3d003b"
31 changes: 31 additions & 0 deletions packages/httpun-types/httpun-types.0.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
opam-version: "2.0"
name: "httpun-types"
version: "0.2.0"
synopsis: "Common HTTP/1.x types"
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"
bug-reports: "https://github.com/anmonteiro/httpun/issues"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "3.0.0"}
"faraday" {>= "0.8.0"}
]
build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name] {with-test}
]
dev-repo: "git+https://github.com/anmonteiro/httpun.git"
url {
src:
"https://github.com/anmonteiro/httpun/releases/download/0.2.0/httpun-0.2.0.tbz"
checksum: [
"sha256=a2ce27ef4c85ae8e1c1008d1e3d5e893d6b211b934586a1dd2942f7db687bd2c"
"sha512=53ae8409321533b4092df166c69cd219a4e2071bb3b9fa3361072205eda6d62df25fe964c62d2b49c14530fd34746b8d8c8f010293ebe099bed0237d0f55a66b"
]
}
x-commit-hash: "80755658e548fce295ee3df118d6c1b8f5fa6956"
36 changes: 36 additions & 0 deletions packages/httpun/httpun.0.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
opam-version: "2.0"
name: "httpun"
version: "0.2.0"
synopsis:
"A high-performance, memory-efficient, and scalable HTTP library for OCaml"
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"
bug-reports: "https://github.com/anmonteiro/httpun/issues"
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "3.0.0"}
"alcotest" {with-test}
"httpun-types" {= version}
"bigstringaf" {>= "0.9.0"}
"angstrom" {>= "0.15.0"}
"faraday" {>= "0.8.0"}
]
build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name] {with-test}
]
dev-repo: "git+https://github.com/anmonteiro/httpun.git"
url {
src:
"https://github.com/anmonteiro/httpun/releases/download/0.2.0/httpun-0.2.0.tbz"
checksum: [
"sha256=a2ce27ef4c85ae8e1c1008d1e3d5e893d6b211b934586a1dd2942f7db687bd2c"
"sha512=53ae8409321533b4092df166c69cd219a4e2071bb3b9fa3361072205eda6d62df25fe964c62d2b49c14530fd34746b8d8c8f010293ebe099bed0237d0f55a66b"
]
}
x-commit-hash: "80755658e548fce295ee3df118d6c1b8f5fa6956"
4 changes: 4 additions & 0 deletions packages/xs-toolstack/xs-toolstack.master/opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ depends: [
"conf-libev" # needed for lwt to avoid using select
"goblint" # Edwin wants this to test some FFI properties
"ocamlformat" # needed to use it while developing the koji rpm
"bigstring-unix"
"clock"
"forkexec"
"gluten"
"gzip"
"h2"
"http-lib"
"httpun"
"message-switch"
"message-switch-cli"
"nbd-tool"
Expand Down

0 comments on commit e5ede6b

Please sign in to comment.