Skip to content

Commit

Permalink
Move ppxlib-pp-ast to a separate ppxlib-tools package
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Rebours <[email protected]>
  • Loading branch information
NathanReb committed Sep 9, 2024
1 parent 258b4a7 commit 12f57e2
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(executable
(name pp_ast)
(public_name ppxlib-pp-ast)
(package ppxlib)
(libraries ppxlib ppxlib_ast astlib stdppx stdlib-shims))
(package ppxlib-tools)
(libraries ppxlib ppxlib.ast ppxlib.astlib ppxlib.stdppx stdlib-shims))
10 changes: 10 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ ways of automatically traversing values of a given type, in particular
allowing to inject a complex structured value into generated code.
"))

(package
(name ppxlib-tools)
(synopsis "Tools for PPX users and authors")
(description "Set of helper tools for PPX users and authors.
ppxlib-pp-ast: Command line tool to pretty print OCaml ASTs in a human readable
format.")
(depends
(ppxlib (= :version))))

(package
(name ppxlib-bench)
(synopsis "Run ppxlib benchmarks")
Expand Down
34 changes: 34 additions & 0 deletions ppxlib-tools.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Tools for PPX users and authors"
description: """
Set of helper tools for PPX users and authors.

ppxlib-pp-ast: Command line tool to pretty print OCaml ASTs in a human readable
format."""
maintainer: ["[email protected]"]
authors: ["Jane Street Group, LLC <[email protected]>"]
license: "MIT"
homepage: "https://github.com/ocaml-ppx/ppxlib"
doc: "https://ocaml-ppx.github.io/ppxlib/"
bug-reports: "https://github.com/ocaml-ppx/ppxlib/issues"
depends: [
"dune" {>= "2.7"}
"ppxlib" {= version}
"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/ocaml-ppx/ppxlib.git"

0 comments on commit 12f57e2

Please sign in to comment.