Fmt module usage

> a.ml echo 'open Fmt'
ocamlc -c a.ml

This fails with

Error: Unbound module Fmt

This works

ocamlc -I $(opam var lib)/fmt -c a.ml

I suggest you invest some time in learning the basics of dune. But, I guess it depends on what works for you