{"id":16743956,"url":"https://github.com/zshipko/rust-ocaml-starter","last_synced_at":"2026-03-11T07:34:13.289Z","repository":{"id":79821384,"uuid":"498834293","full_name":"zshipko/rust-ocaml-starter","owner":"zshipko","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-09T19:26:01.000Z","size":11,"stargazers_count":6,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T14:02:56.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zshipko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-01T17:29:24.000Z","updated_at":"2023-12-17T15:36:52.000Z","dependencies_parsed_at":"2025-02-17T09:31:57.580Z","dependency_job_id":"153b90e2-933c-4fc3-9b09-9b052f1212b9","html_url":"https://github.com/zshipko/rust-ocaml-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zshipko/rust-ocaml-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Frust-ocaml-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Frust-ocaml-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Frust-ocaml-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Frust-ocaml-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zshipko","download_url":"https://codeload.github.com/zshipko/rust-ocaml-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Frust-ocaml-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T01:42:04.704Z","updated_at":"2026-03-11T07:34:13.271Z","avatar_url":"https://github.com/zshipko.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-ocaml-starter\n\nAn example project using [ocaml-rs](https://github.com/zshipko/ocaml-rs) to link an OCaml library into a Rust program.\n\nIf you're looking for an example of calling into Rust from OCaml take a look at [ocaml-rust-starter](https://github.com/zshipko/ocaml-rust-starter)\n\n## New project checklist\n\n- [ ] Update `README.md`\n- [ ] Update the project name in `dune-project`\n- [ ] Update the crate name in `Cargo.toml`\n- [ ] Update `lib/dune` and `lib/dune` with the name of your project in place of `rust_ocaml_starter`/`rust-ocaml-starter`\n- [ ] Rename `rust-ocaml-starter.opam` to match the name of your project\n- [ ] Remove `lib/rust_ocaml_starter.ml` add your own OCaml files\n- [ ] Edit `src/lib.rs`\n\nMany of the renaming steps can be automated using `init.sh`:\n\n```shell\n$ ./init.sh my_project my-project\n```\n\n`init.sh` accepts two arguments: the `name` of the OCaml project and the `public_name`, if they are the same then one argument is acceptable.\n\nNOTE: `init.sh` is destructive and can only be executed once (it will remove itself) - make sure you have no modifications that you want to keep before running `init.sh`.\n\n## Building\nOptionally create a local OPAM switch (choose the version you prefer):\n\n```\nopam update\nopam switch create . ocaml-base-compiler.4.14.0\neval $(opam env) \u0026\u0026 opam switch\nopam install dune\n```\n\nThen:\n\n    cargo build\n\nto run the program:\n\n    cargo run\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzshipko%2Frust-ocaml-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzshipko%2Frust-ocaml-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzshipko%2Frust-ocaml-starter/lists"}