DEV Community

Cover image for Drom - Cargo-like package manager for OCaml
Onigura
Onigura

Posted on

3 1

Drom - Cargo-like package manager for OCaml

OCaml come with default package manager : opam. Opam work both version manager and package manager for OCaml.

OCaml had various build system like dune and ocamlbuild.

How if that opam and dune collab ? drom.

Citing from drom home page, here Raison d'être of drom

It’s a tool to build and install the project, combining calls to opam and dune to create a local switch, install dependencies, build the project and its documentation.

TL;DR : opam + dune + odoc with Cargo taste.

Install drom

Firstly, you need opam and OCaml installed on your device. Installing drom bit like installing yarn with npm.

opam install drom

Create project with drom

After installing drom, to create project

drom new [project name]

drom new

Run Project

Do this on your project folder

drom run

More details about drom

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

nextjs tutorial video

📺 Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay