Compiling .ml containing toplevel directives

Custom attributes are ignored by the compiler. You can put there whatever you want.

You may also want to have a look at ocamlscript (or b0caml, but it’s unreleased and again one of these projects I had that was assuming we were going towards a simplification of the notion of library and needs to be reviewed now that this did not happen).