Skip to content

Commit 06413b4

Browse files
authored
Merge pull request #246 from MisterDA/updates
Switch from mirage-{stack,protocols} to tcpip
2 parents ac230b9 + c51e13d commit 06413b4

File tree

7 files changed

+46
-12
lines changed

7 files changed

+46
-12
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Main workflow
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
# Prime the caches every Monday
8+
- cron: 0 1 * * MON
9+
10+
jobs:
11+
build:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- macos-latest
17+
- windows-latest
18+
ocaml-compiler:
19+
- 4.13.x
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Use OCaml ${{ matrix.ocaml-compiler }}
28+
uses: ocaml/setup-ocaml@v2
29+
with:
30+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
31+
32+
- run: opam install . --deps-only --with-test
33+
34+
- run: opam exec -- dune build
35+
36+
- run: opam exec -- dune runtest

capnp-rpc-mirage.opam

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@ depends: [
1313
"ocaml" {>= "4.08.0"}
1414
"capnp" {>= "3.1.0"}
1515
"capnp-rpc-net" {= version}
16-
"astring" {with-test}
1716
"fmt" {>= "0.8.7"}
1817
"logs"
1918
"dns-client" {>= "6.0.0"}
2019
"tls-mirage"
21-
"mirage-stack" {>= "2.2.0"}
22-
"mirage-protocols" {>= "6.0.0"}
23-
"arp" {>= "2.3.0" & with-test}
20+
"tcpip" {>= "7.0.0"}
2421
"alcotest" {>= "1.0.1" & with-test}
2522
"alcotest-lwt" {>= "1.0.1" & with-test}
23+
"arp" {>= "3.0.0" & with-test}
24+
"asetmap" {with-test}
25+
"astring" {with-test}
26+
"ethernet" {>= "3.0.0" & with-test}
2627
"io-page-unix" {with-test}
27-
"tcpip" {>= "6.1.0" & with-test}
2828
"mirage-vnetif" {with-test}
2929
"mirage-crypto-rng" {>= "0.7.0" & with-test}
3030
"dune" {>= "2.0"}
31-
"asetmap" {with-test}
32-
"ethernet" {>= "2.2.0" & with-test}
3331
]
3432
build: [
3533
["dune" "build" "-p" name "-j" jobs]

mirage/capnp_rpc_mirage.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Log = Capnp_rpc.Debug.Log
44

55
module Location = Network.Location
66

7-
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Mirage_stack.V4V6) = struct
7+
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Tcpip.Stack.V4V6) = struct
88

99
module Dns = Dns_client_mirage.Make(R)(T)(M)(P)(Stack)
1010
module Network = Network.Make(R)(T)(M)(P)(Stack)

mirage/capnp_rpc_mirage.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ open Capnp_rpc_net
44

55
module Location = Network.Location
66

7-
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Mirage_stack.V4V6) : sig
7+
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Tcpip.Stack.V4V6) : sig
88
include Capnp_rpc_net.VAT_NETWORK with
99
type flow = Stack.TCP.flow and
1010
module Network = Network.Make(R)(T)(M)(P)(Stack)

mirage/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(library
22
(name capnp_rpc_mirage)
33
(public_name capnp-rpc-mirage)
4-
(libraries capnp-rpc-lwt capnp-rpc-net capnp-rpc fmt logs mirage-stack dns-client.mirage))
4+
(libraries capnp-rpc-lwt capnp-rpc-net capnp-rpc fmt logs dns-client.mirage tcpip))

mirage/network.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Location = struct
1717
let equal = ( = )
1818
end
1919

20-
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Mirage_stack.V4V6) = struct
20+
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Tcpip.Stack.V4V6) = struct
2121

2222
module Dns = Dns_client_mirage.Make(R)(T)(M)(P)(Stack)
2323
module Tls_wrapper = Capnp_rpc_net.Tls_wrapper.Make(Stack.TCP)

mirage/network.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Location : sig
1313
(** [tcp ~host port] is [`TCP (host, port)]. *)
1414
end
1515

16-
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Mirage_stack.V4V6) : sig
16+
module Make (R : Mirage_random.S) (T : Mirage_time.S) (M : Mirage_clock.MCLOCK) (P : Mirage_clock.PCLOCK) (Stack : Tcpip.Stack.V4V6) : sig
1717

1818
module Dns : module type of Dns_client_mirage.Make(R)(T)(M)(P)(Stack)
1919

0 commit comments

Comments
 (0)