Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

Commit 19749cd

Browse files
committed
initial commit (from very old code)
0 parents  commit 19749cd

14 files changed

+831
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git
2+
_build
3+
*.install
4+
.merlin

Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
all: build test
4+
5+
build:
6+
@dune build @install
7+
8+
test:
9+
@dune runtest --no-buffer --force
10+
11+
clean:
12+
@dune clean
13+
14+
doc:
15+
@dune build @doc
16+
17+
watch:
18+
@dune build @all -w
19+
20+
.PHONY: benchs tests build watch

dune-project

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(lang dune 1.1)

jsonrpc2-lwt.opam

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
opam-version: "2.0"
2+
name: "jsonrpc2-lwt"
3+
version: "0.1"
4+
authors: ["Simon Cruanes"]
5+
maintainer: "simon.cruanes.2007@m4x.org"
6+
license: "MIT"
7+
description: "JSONRPC2 implementation"
8+
build: [
9+
["dune" "build" "@install" "-p" name "-j" jobs]
10+
["dune" "build" "@doc" "-p" name] {with-doc}
11+
["dune" "runtest" "-p" name] {with-test}
12+
]
13+
depends: [
14+
"dune" { >= "1.1" }
15+
"jsonrpc2" { = version }
16+
"lwt" { >= "3.0" }
17+
"base-unix"
18+
"odoc" {with-doc}
19+
"ocaml" { >= "4.03.0" }
20+
]
21+
tags: [ "rpc" "jsonrpc" "jsonrcp2" ]
22+
homepage: "https://github.com/c-cube/jsonrpc2/"
23+
doc: "https://c-cube.github.io/jsonrpc2/"
24+
bug-reports: "https://github.com/c-cube/jsonrpc2/issues"
25+
dev-repo: "git+https://github.com/c-cube/jsonrpc2.git"

jsonrpc2-sync.opam

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
opam-version: "2.0"
2+
name: "jsonrpc2-sync"
3+
version: "0.1"
4+
authors: ["Simon Cruanes"]
5+
maintainer: "simon.cruanes.2007@m4x.org"
6+
license: "MIT"
7+
description: "JSONRPC2 implementation"
8+
build: [
9+
["dune" "build" "@install" "-p" name "-j" jobs]
10+
["dune" "build" "@doc" "-p" name] {with-doc}
11+
["dune" "runtest" "-p" name] {with-test}
12+
]
13+
depends: [
14+
"dune" { >= "1.1" }
15+
"jsonrpc2" { = version }
16+
"base-unix"
17+
"base-threads"
18+
"odoc" {with-doc}
19+
]
20+
tags: [ "rpc" "jsonrpc" "jsonrcp2" "sync" ]
21+
homepage: "https://github.com/c-cube/jsonrpc2/"
22+
doc: "https://c-cube.github.io/jsonrpc2/"
23+
bug-reports: "https://github.com/c-cube/jsonrpc2/issues"
24+
dev-repo: "git+https://github.com/c-cube/jsonrpc2.git"

jsonrpc2.opam

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
opam-version: "2.0"
2+
name: "jsonrpc2"
3+
version: "0.1"
4+
authors: ["Simon Cruanes"]
5+
maintainer: "simon.cruanes.2007@m4x.org"
6+
license: "MIT"
7+
description: "JSONRPC2 implementation"
8+
build: [
9+
["dune" "build" "@install" "-p" name "-j" jobs]
10+
["dune" "build" "@doc" "-p" name] {with-doc}
11+
["dune" "runtest" "-p" name] {with-test}
12+
]
13+
depends: [
14+
"dune" { >= "1.1" }
15+
"yojson" { >= "1.6" }
16+
"odoc" {with-doc}
17+
"ocaml" { >= "4.03.0" }
18+
]
19+
tags: [ "rpc" "jsonrpc" "jsonrcp2" ]
20+
homepage: "https://github.com/c-cube/jsonrpc2/"
21+
doc: "https://c-cube.github.io/jsonrpc2/"
22+
bug-reports: "https://github.com/c-cube/jsonrpc2/issues"
23+
dev-repo: "git+https://github.com/c-cube/jsonrpc2.git"

src/dune

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(env
2+
(_ (flags :standard -warn-error -3 -safe-string)))
3+
4+
(library
5+
(name jsonrpc2)
6+
(public_name jsonrpc2)
7+
(flags :standard -warn-error -3)
8+
(libraries yojson))

src/jsonrpc2.ml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
(** {1 Simple JSON-RPC2 implementation}
3+
4+
See {{: https://www.jsonrpc.org/specification} the spec} *)
5+
6+
module type IO = Jsonrpc2_intf.IO
7+
module type S = Jsonrpc2_intf.S
8+
9+
module Make = Jsonrpc2_core.Make

0 commit comments

Comments
 (0)