This commit is contained in:
nganhkhoa 2024-08-07 14:38:38 +07:00
commit de3b17c7de
8 changed files with 96 additions and 0 deletions

30
.gitignore vendored Normal file
View File

@ -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/

31
apdu.opam Normal file
View File

@ -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"

4
bin/dune Normal file
View File

@ -0,0 +1,4 @@
(executable
(public_name apdu)
(name main)
(libraries apdu))

1
bin/main.ml Normal file
View File

@ -0,0 +1 @@
let () = print_endline "Hello, World!"

26
dune-project Normal file
View File

@ -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

2
lib/dune Normal file
View File

@ -0,0 +1,2 @@
(library
(name apdu))

2
test/dune Normal file
View File

@ -0,0 +1,2 @@
(test
(name test_apdu))

0
test/test_apdu.ml Normal file
View File