From de3b17c7dee62bc22851d503e9c156ee84be4a11 Mon Sep 17 00:00:00 2001 From: nganhkhoa Date: Wed, 7 Aug 2024 14:38:38 +0700 Subject: [PATCH] init --- .gitignore | 30 ++++++++++++++++++++++++++++++ apdu.opam | 31 +++++++++++++++++++++++++++++++ bin/dune | 4 ++++ bin/main.ml | 1 + dune-project | 26 ++++++++++++++++++++++++++ lib/dune | 2 ++ test/dune | 2 ++ test/test_apdu.ml | 0 8 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 apdu.opam create mode 100644 bin/dune create mode 100644 bin/main.ml create mode 100644 dune-project create mode 100644 lib/dune create mode 100644 test/dune create mode 100644 test/test_apdu.ml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6e44f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +### OCaml ### +*.annot +*.cmo +*.cma +*.cmi +*.a +*.o +*.cmx +*.cmxs +*.cmxa + +# ocamlbuild working directory +_build/ + +# ocamlbuild targets +*.byte +*.native + +# oasis generated files +setup.data +setup.log + +# Merlin configuring file for Vim and Emacs +.merlin + +# Dune generated files +*.install + +# Local OPAM switch +_opam/ diff --git a/apdu.opam b/apdu.opam new file mode 100644 index 0000000..36cd213 --- /dev/null +++ b/apdu.opam @@ -0,0 +1,31 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "A short synopsis" +description: "A longer description" +maintainer: ["Maintainer Name"] +authors: ["Author Name"] +license: "LICENSE" +tags: ["topics" "to describe" "your" "project"] +homepage: "https://github.com/username/reponame" +doc: "https://url/to/documentation" +bug-reports: "https://github.com/username/reponame/issues" +depends: [ + "ocaml" + "dune" {>= "3.12"} + "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/username/reponame.git" diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..4a0136a --- /dev/null +++ b/bin/dune @@ -0,0 +1,4 @@ +(executable + (public_name apdu) + (name main) + (libraries apdu)) diff --git a/bin/main.ml b/bin/main.ml new file mode 100644 index 0000000..7bf6048 --- /dev/null +++ b/bin/main.ml @@ -0,0 +1 @@ +let () = print_endline "Hello, World!" diff --git a/dune-project b/dune-project new file mode 100644 index 0000000..81639ce --- /dev/null +++ b/dune-project @@ -0,0 +1,26 @@ +(lang dune 3.12) + +(name apdu) + +(generate_opam_files true) + +(source + (github username/reponame)) + +(authors "Author Name") + +(maintainers "Maintainer Name") + +(license LICENSE) + +(documentation https://url/to/documentation) + +(package + (name apdu) + (synopsis "A short synopsis") + (description "A longer description") + (depends ocaml dune) + (tags + (topics "to describe" your project))) + +; 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..d085764 --- /dev/null +++ b/lib/dune @@ -0,0 +1,2 @@ +(library + (name apdu)) diff --git a/test/dune b/test/dune new file mode 100644 index 0000000..992d551 --- /dev/null +++ b/test/dune @@ -0,0 +1,2 @@ +(test + (name test_apdu)) diff --git a/test/test_apdu.ml b/test/test_apdu.ml new file mode 100644 index 0000000..e69de29