Skip to content

Commit

Permalink
Merge pull request #386 from samoht/no-foreign
Browse files Browse the repository at this point in the history
Use `main` instead of `foreign`
  • Loading branch information
samoht committed Mar 7, 2024
2 parents cb74685 + d6b923b commit 60ad2c8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion applications/crypto/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ let packages =
package "mirage-crypto";
]

let main = foreign "Unikernel.Main" ~packages (random @-> job)
let main = main "Unikernel.Main" ~packages (random @-> job)
let () = register "crypto-test" [ main $ default_random ]
2 changes: 1 addition & 1 deletion applications/dns/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ open Mirage

let timeout = Runtime_arg.create "Key.timeout"
let nameservers = Runtime_arg.create "Key.nameservers"
let unikernel = foreign "Unikernel.Make" (dns_client @-> job)
let unikernel = main "Unikernel.Make" (dns_client @-> job)
let stackv4v6 = generic_stackv4v6 default_network

let () =
Expand Down
2 changes: 1 addition & 1 deletion applications/docteur/config.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open Mirage

let unikernel = foreign "Unikernel.Make" (kv_ro @-> job)
let unikernel = main "Unikernel.Make" (kv_ro @-> job)
let remote = "https://github.com/mirage/mirage"

let () =
Expand Down
2 changes: 1 addition & 1 deletion applications/git/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let ssh_authenticator = Runtime_arg.create "Key.ssh_authenticator"
let https_authenticator = Runtime_arg.create "Key.https_authenticator"

let minigit =
foreign "Unikernel.Make"
main "Unikernel.Make"
~packages:[ package "ptime" ]
(git @-> git_client @-> job)

Expand Down
2 changes: 1 addition & 1 deletion applications/http/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type conn = Connect
let conn = typ Connect

let minipaf =
foreign "Unikernel.Make"
main "Unikernel.Make"
~packages:
[
package "digestif";
Expand Down
2 changes: 1 addition & 1 deletion device-usage/littlefs/config.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
open Mirage

let unikernel =
foreign "Unikernel.Make"
main "Unikernel.Make"
~packages:[ package "hxd" ~sublibs:[ "core"; "string" ] ]
(random @-> kv_rw @-> job)

Expand Down
2 changes: 1 addition & 1 deletion device-usage/ping6/config.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
open Mirage

let main =
foreign
main
~packages:[ package ~min:"3.0.0" "ethernet"; package ~min:"7.0.0" "tcpip" ]
"Unikernel.Main"
(network @-> ethernet @-> ipv6 @-> job)
Expand Down

0 comments on commit 60ad2c8

Please sign in to comment.