Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleimp committed Feb 27, 2024
0 parents commit 875a607
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build & Test

on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- "5.1"
allow-prerelease-opam:
- true
opam-repositories:
- |-
default: https://github.com/ocaml/opam-repository.git
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: ${{ matrix.allow-prerelease-opam }}
opam-repositories: ${{ matrix.opam-repositories }}

- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune test
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# <-- 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/

# <-- Nix -->
.direnv/
result/
Empty file added .ocamlformat
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 serde-ml

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# serde-ml/csv

CSV support for [serde-ml](https://github.com/serde-ml/serde)
33 changes: 33 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
(lang dune 3.14)

(name serde_csv)

(generate_opam_files true)

(source
(github serde-ml/csv))

(authors "Leandro Ostera <[email protected]>")

(maintainers "Leandro Ostera <[email protected]>")

(license MIT)

(package
(name serde_csv)
(synopsis "CSV support for Serde")
(depends
dune
(ocaml
(>= "5.1.1"))
(serde
(= :version))
;; Testing
(serde_derive
(and
:with-test
(= :version)))
(spices :with-test)
(qcheck :with-test))
(tags
(serde serialize deserialize toml)))
3 changes: 3 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(public_name serde_csv)
(name serde_csv))
33 changes: 33 additions & 0 deletions serde_csv.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CSV support for Serde"
maintainer: ["Leandro Ostera <[email protected]>"]
authors: ["Leandro Ostera <[email protected]>"]
license: "MIT"
tags: ["serde" "serialize" "deserialize" "toml"]
homepage: "https://github.com/serde-ml/csv"
bug-reports: "https://github.com/serde-ml/csv/issues"
depends: [
"dune" {>= "3.14"}
"ocaml" {>= "5.1.1"}
"serde" {= version}
"serde_derive" {with-test & = version}
"spices" {with-test}
"qcheck" {with-test}
"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/serde-ml/csv.git"

0 comments on commit 875a607

Please sign in to comment.