commit 91fb3744b8420cef7331330023cd734a0ebe3ba6 Author: Mylloon Date: Mon Jun 5 17:28:44 2023 +0200 initializa project diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69fa449 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_build/ diff --git a/.ocamlformat b/.ocamlformat new file mode 100644 index 0000000..0619e80 --- /dev/null +++ b/.ocamlformat @@ -0,0 +1 @@ +profile = janestreet diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..6c9056f --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name dnstoy) + (name main) + (libraries dnstoy)) diff --git a/bin/main.ml b/bin/main.ml new file mode 100644 index 0000000..306831a --- /dev/null +++ b/bin/main.ml @@ -0,0 +1 @@ +let () = () diff --git a/dnstoy.opam b/dnstoy.opam new file mode 100644 index 0000000..1fc8f2f --- /dev/null +++ b/dnstoy.opam @@ -0,0 +1,29 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "DNS implementation (toy)" +description: "Implement DNS in a weekend, in OCaml" +maintainer: ["Mylloon"] +authors: ["Mylloon"] +license: "AGPL-3.0-or-later" +tags: ["dns"] +doc: "https://implement-dns.wizardzines.com/book/intro.html" +depends: [ + "ocaml" + "dune" {>= "3.8"} + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "https://git.mylloon.fr/Anri/dns-toy.git" diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..ec3061e --- /dev/null +++ b/dune-project @@ -0,0 +1,25 @@ +(lang dune 3.8) + +(name dnstoy) + +(generate_opam_files true) + +(source + (uri https://git.mylloon.fr/Anri/dns-toy.git)) + +(authors "Mylloon") + +(maintainers "Mylloon") + +(license AGPL-3.0-or-later) + +(documentation https://implement-dns.wizardzines.com/book/intro.html) + +(package + (name dnstoy) + (synopsis "DNS implementation (toy)") + (description "Implement DNS in a weekend, in OCaml") + (depends ocaml dune) + (tags (dns))) + +; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..4b0f379 --- /dev/null +++ b/lib/dune @@ -0,0 +1,2 @@ +(library + (name dnstoy)) diff --git a/test/dnstoy.ml b/test/dnstoy.ml new file mode 100644 index 0000000..e69de29 diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..8a81370 --- /dev/null +++ b/test/dune @@ -0,0 +1,2 @@ +(test + (name dnstoy))