Skip to content

Commit

Permalink
Remove unnecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed Sep 14, 2023
1 parent fcd8530 commit 68e7c70
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ meio

*Status: Experimental*

Meio is a CLI tool for monitoring programs using [Eio][]. It allows you to see, in real-time, the running and idle fibers of your program along with the structure of the fiber tree. Fibers are also labelled with where they were spawned from and each individual fiber carries extra information about how busy it is, how often it is entered and the debug logs that have been run from the fiber. Here's what Meio looks like:
Meio is a CLI tool for monitoring programs asynchronous programs like those that use [Eio][]. It allows you to see, in real-time, the running and idle fibers of your program along with the structure of the fiber tree. Fibers are also labelled with where they were spawned from and each individual fiber carries extra information about how busy it is, how often it is entered and the debug logs that have been run from the fiber. Here's what Meio looks like:

![Meio on asciicast](./.screencast/example.gif)

### Building meio

Meio uses custom events which will be available in OCaml 5.1. This means currently you must use an unreleased compiler and a few forked libraries.

To build Meio locally, you can add a temporary opam-repository and use the custom-events compiler:
Meio uses custom events which is only available in OCaml 5.1 and beyond.

```
$ opam repo add custom-events https://github.com/TheLortex/custom-events-opam-repository.git
$ opam switch create --no-install custom-events --packages ocaml-variants.5.0.0+custom-events --repositories=custom-events,default
$ opam update
$ opam switch create 5.1.0
$ opam install --deps-only .
$ dune build
```
Expand Down
7 changes: 3 additions & 4 deletions meio.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ license: "MIT"
homepage: "https://github.com/patricoferris/eio-console"
bug-reports: "https://github.com/patricoferris/eio-console/issues"
depends: [
"dune" {>= "2.9"}
"eio_main"
"eio" {= "0.8.1+custom-events.2"} # available in https://github.com/TheLortex/custom-events-opam-repository
"ocaml" {>= "5.1.0"}
"dune" {>= "2.9"}
"astring"
"ptime"
"nottui"
"cmdliner"
"hdr_histogram"
"odoc" {with-doc}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(executable
(name meio)
(public_name meio)
(libraries meio eio_main))
(libraries meio))
2 changes: 1 addition & 1 deletion src/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
(foreign_stubs
(language c)
(names meio_console_stubs))
(libraries eio eio.utils runtime_events ptime logs nottui hdr_histogram))
(libraries runtime_events ptime logs fmt nottui hdr_histogram))

0 comments on commit 68e7c70

Please sign in to comment.