Skip to content

Dunify#700

Merged
balat merged 10 commits into
ocsigen:masterfrom
Julow:dunify
Apr 22, 2026
Merged

Dunify#700
balat merged 10 commits into
ocsigen:masterfrom
Julow:dunify

Conversation

@Julow
Copy link
Copy Markdown
Contributor

@Julow Julow commented Feb 25, 2026

Build the client and server libraries using Dune.
The dune rules are generated using https://github.com/Julow/ocsigen-dune-rules to maintain the rule generation separately and share it between the projects.

Like in ocsigen/ocsigen-toolkit#241, some parts of the code needed to be changed due to the switch from eliomc to plain ocamlc with Eliom's PPX.

I did not update the template as it seems difficult and possibly unnecessary. Is the template used as a testsuite for the various widgets ?
It's current form makes it awkward to modify and run. It would be significantly easier to work with if it was in a separate repository and not defined as a template. What do you think ?

Build the client and server libraries using Dune. eliom.ppx is used
instead of eliomc.

The dune rules are generated using
https://github.com/Julow/ocsigen-dune-rules
Add annotations that were not needed with eliomc but are with ocamlc +
eliom.ppx.

The API of Os_tips is slightly changed because the type of the ?arrow
argument doesn't need to be open.
Comment thread ocsigen-start.opam
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This files probably needs to be updated or to be generated from dune-project?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I did not find how to install the template (as opam install does not work)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in the last commit. This is not enough to make it installable as you'd also need these pins: ocsigen/ocsigen-toolkit#241 (comment)

Comment thread src/dune Outdated
(pps eliom.ppx.server js_of_ocaml-ppx_deriving_json ocsigen-ppx-rpc))
(libraries
eliom.server
js_of_ocaml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

js_of_ocaml must not be in the server side dependencies

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed. The master branch requires ocsigen-toolkit to be pinned because of Ot_form so the CI will likely not work.

@balat
Copy link
Copy Markdown
Member

balat commented Mar 27, 2026

It would probably be interesting to use ocsigen-dune-rules in the template as well. To do that, you can make a PR to https://github.com/ocsigen/os_template/

@Julow
Copy link
Copy Markdown
Contributor Author

Julow commented Apr 2, 2026

Should be ready to merge now :)

This is needed since the addition of Ot_popup.
@balat balat merged commit f1b6bb8 into ocsigen:master Apr 22, 2026
0 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants