Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi line formatting #10780

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dune-glob.opam
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Glob string matching language supported by dune"
description:
"dune-glob provides a parser and interpreter for globs as understood by dune language."
description: """
dune-glob provides a parser and interpreter for globs as
understood by dune language.
"""
maintainer: ["Jane Street Group, LLC <opensource@janestreet.com>"]
authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
license: "MIT"
Expand Down
268 changes: 165 additions & 103 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
(lang dune 3.12)

; ^^^^
; When changing the version, don't forget to regenerate *.opam files
; by running [dune build].

(name dune)

(generate_opam_files true)
Expand All @@ -11,12 +13,18 @@
(strict_package_deps false)

; Reserved for Dune itself. This is to help with the bootstrap

(using dune-bootstrap-info 0.1)

(license MIT)

(maintainers "Jane Street Group, LLC <opensource@janestreet.com>")

(authors "Jane Street Group, LLC <opensource@janestreet.com>")
(source (github ocaml/dune))

(source
(github ocaml/dune))

(documentation "https://dune.readthedocs.io/")

(implicit_transitive_deps false)
Expand All @@ -26,186 +34,240 @@
(synopsis "Fast, portable, and opinionated build system")
; The "depends" and "build" field are written in dune.opam.template
(conflicts
(merlin (< 3.4.0))
(ocaml-lsp-server (< 1.3.0))
(dune-configurator (< 2.3.0))
(odoc (< 2.0.1))
(dune-release (< 1.3.0))
(js_of_ocaml-compiler (< 3.6.0))
(jbuilder (= transition)))
(description "
Dune is a build system that was designed to simplify the release of
Jane Street packages. It reads metadata from \"dune\" files following a
very simple s-expression syntax.

Dune is fast, has very low-overhead, and supports parallel builds on
all platforms. It has no system dependencies; all you need to build
dune or packages using dune is OCaml. You don't need make or bash
as long as the packages themselves don't use bash explicitly.

Dune is composable; supporting multi-package development by simply
dropping multiple repositories into the same directory.

Dune also supports multi-context builds, such as building against
several opam roots/switches simultaneously. This helps maintaining
packages across several versions of OCaml and gives cross-compilation
for free.
"))
(merlin
(< 3.4.0))
(ocaml-lsp-server
(< 1.3.0))
(dune-configurator
(< 2.3.0))
(odoc
(< 2.0.1))
(dune-release
(< 1.3.0))
(js_of_ocaml-compiler
(< 3.6.0))
(jbuilder
(= transition)))
(description
"\| Dune is a build system that was designed to simplify the release of
"\| Jane Street packages. It reads metadata from "dune" files following a
"\| very simple s-expression syntax.
"\|
"\| Dune is fast, has very low-overhead, and supports parallel builds on
"\| all platforms. It has no system dependencies all you need to build
"\| dune or packages using dune is OCaml. You don't need make or bash
"\| as long as the packages themselves don't use bash explicitly.
"\|
"\| Dune is composable supporting multi-package development by simply
"\| dropping multiple repositories into the same directory.
"\|
"\| Dune also supports multi-context builds, such as building against
"\| several opam roots/switches simultaneously. This helps maintaining
"\| packages across several versions of OCaml and gives cross-compilation
"\| for free.
))

(package
(name dune-build-info)
(synopsis "Embed build information inside executable")
(depends
(ocaml (>= 4.08)))
(description "\
The build-info library allows to access information about how the
executable was built, such as the version of the project at which it
was built or the list of statically linked libraries with their
versions. It supports reporting the version from the version control
system during development to get an precise reference of when the
executable was built.
"))
(ocaml
(>= 4.08)))
(description
"\| The build-info library allows to access information about how the
"\| executable was built, such as the version of the project at which it
"\| was built or the list of statically linked libraries with their
"\| versions. It supports reporting the version from the version control
"\| system during development to get an precise reference of when the
"\| executable was built.
))

(package
(name dune-private-libs)
(synopsis "Private libraries of Dune")
(depends
(csexp (>= 1.5.0))
(pp (>= 1.1.0))
(dyn (= :version))
(stdune (= :version))
(ocaml (>= 4.08)))
(description "\
!!!!!!!!!!!!!!!!!!!!!!
!!!!! DO NOT USE !!!!!
!!!!!!!!!!!!!!!!!!!!!!

This package contains code that is shared between various dune-xxx
packages. However, it is not meant for public consumption and provides
no stability guarantee.
"))
(csexp
(>= 1.5.0))
(pp
(>= 1.1.0))
(dyn
(= :version))
(stdune
(= :version))
(ocaml
(>= 4.08)))
(description
"\| !!!!!!!!!!!!!!!!!!!!!!
"\| !!!!! DO NOT USE !!!!!
"\| !!!!!!!!!!!!!!!!!!!!!!
"\|
"\| This package contains code that is shared between various dune-xxx
"\| packages. However, it is not meant for public consumption and provides
"\| no stability guarantee.
))

(package
(name dune-configurator)
(synopsis "Helper library for gathering system configuration")
(depends
(ocaml (>= 4.04.0))
(ocaml
(>= 4.04.0))
base-unix
(csexp (>= 1.5.0)))
(description "\
dune-configurator is a small library that helps writing OCaml scripts that
test features available on the system, in order to generate config.h
files for instance.
Among other things, dune-configurator allows one to:
- test if a C program compiles
- query pkg-config
- import #define from OCaml header files
- generate config.h file
"))
(csexp
(>= 1.5.0)))
(description
"\| dune-configurator is a small library that helps writing OCaml scripts that
"\| test features available on the system, in order to generate config.h
"\| files for instance.
"\| Among other things, dune-configurator allows one to:
"\| - test if a C program compiles
"\| - query pkg-config
"\| - import #define from OCaml header files
"\| - generate config.h file
))

(package
(name dune-action-plugin)
(synopsis "[experimental] API for writing dynamic Dune actions")
(depends
(dune-glob (= :version))
(csexp (>= 1.5.0))
(dune-glob
(= :version))
(csexp
(>= 1.5.0))
(ppx_expect :with-test)
(stdune (= :version))
(dune-private-libs (= :version))
(dune-rpc (= :version))
(stdune
(= :version))
(dune-private-libs
(= :version))
(dune-rpc
(= :version))
base-unix)
(description "\

This library is experimental. No backwards compatibility is implied.

dune-action-plugin provides an API for writing dynamic Dune actions.
Dynamic dune actions do not need to declare their dependencies
upfront; they are instead discovered automatically during the
execution of the action.
"))
(description
"\|
"\| This library is experimental. No backwards compatibility is implied.
"\|
"\| dune-action-plugin provides an API for writing dynamic Dune actions.
"\| Dynamic dune actions do not need to declare their dependencies
"\| upfront; they are instead discovered automatically during the
"\| execution of the action.
))

(package
(name dune-glob)
(synopsis "Glob string matching language supported by dune")
(depends
(stdune (= :version))
(stdune
(= :version))
dyn
ordering
(dune-private-libs (= :version)))
(description "\
dune-glob provides a parser and interpreter for globs as \
understood by dune language."))
(dune-private-libs
(= :version)))
(description
"\| dune-glob provides a parser and interpreter for globs as
"\| understood by dune language.
))

(package
(name dune-site)
(synopsis "Embed locations information inside executable and libraries")
(depends (dune-private-libs (= :version)))
(depends
(dune-private-libs
(= :version)))
(description ""))

(package
(name dune-rpc)
(synopsis "Communicate with dune using rpc")
(depends csexp ordering dyn xdg (stdune (= :version)) (pp (>= 1.1.0)))
(depends
csexp
ordering
dyn
xdg
(stdune
(= :version))
(pp
(>= 1.1.0)))
(description "Library to connect and control a running dune instance"))

(package
(name dune-rpc-lwt)
(synopsis "Communicate with dune using rpc and Lwt")
(depends
(dune-rpc (= :version))
(csexp (>= 1.5.0))
(lwt (>= 5.6.0))
(dune-rpc
(= :version))
(csexp
(>= 1.5.0))
(lwt
(>= 5.6.0))
base-unix)
(description "Specialization of dune-rpc to Lwt"))

(package
(name dyn)
(synopsis "Dynamic type")
(depends
(ocaml (>= 4.08.0))
(ordering (= :version))
(pp (>= 1.1.0)))
(ocaml
(>= 4.08.0))
(ordering
(= :version))
(pp
(>= 1.1.0)))
(description "Dynamic type"))

(package
(name ordering)
(synopsis "Element ordering")
(depends
(ocaml (>= 4.08.0)))
(ocaml
(>= 4.08.0)))
(description "Element ordering"))

(package
(name xdg)
(synopsis "XDG Base Directory Specification")
(depends
(ocaml (>= 4.08)))
(description "https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html"))
(ocaml
(>= 4.08)))
(description
"https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html"))

(package
(name stdune)
(synopsis "Dune's unstable standard library")
(depends
(ocaml (>= 4.08.0))
(ocaml
(>= 4.08.0))
base-unix
(dyn (= :version))
(ordering (= :version))
(pp (>= 1.2.0))
(csexp (>= 1.5.0)))
(description "This library offers no backwards compatibility guarantees. Use at your own risk."))
(dyn
(= :version))
(ordering
(= :version))
(pp
(>= 1.2.0))
(csexp
(>= 1.5.0)))
(description
"This library offers no backwards compatibility guarantees. Use at your own risk."))

(package
(name ocamlc-loc)
(synopsis "Parse ocaml compiler output into structured form")
(conflicts
(ocaml-lsp-server (< 1.15.0)))
(ocaml-lsp-server
(< 1.15.0)))
(depends
(ocaml (>= 4.08.0))
(dyn (= :version)))
(description "This library offers no backwards compatibility guarantees. Use at your own risk."))
(ocaml
(>= 4.08.0))
(dyn
(= :version)))
(description
"This library offers no backwards compatibility guarantees. Use at your own risk."))

(package
(name chrome-trace)
(synopsis "Chrome trace event generation library")
(depends
(ocaml (>= 4.08.0)))
(description "This library offers no backwards compatibility guarantees. Use at your own risk."))
(ocaml
(>= 4.08.0)))
(description
"This library offers no backwards compatibility guarantees. Use at your own risk."))
Loading
Loading