{"id":18408963,"url":"https://github.com/msgpack/msgpack-ocaml","last_synced_at":"2025-04-07T09:33:24.097Z","repository":{"id":3801099,"uuid":"4880063","full_name":"msgpack/msgpack-ocaml","owner":"msgpack","description":"MessagePack implementation for OCaml / msgpack.org[OCaml]","archived":false,"fork":false,"pushed_at":"2022-10-12T14:54:27.000Z","size":295,"stargazers_count":45,"open_issues_count":5,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T16:45:19.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/msgpack.png","metadata":{"files":{"readme":"README.markdown","changelog":"Changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-04T03:10:03.000Z","updated_at":"2023-10-05T23:33:36.000Z","dependencies_parsed_at":"2023-01-11T16:33:25.553Z","dependency_job_id":null,"html_url":"https://github.com/msgpack/msgpack-ocaml","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgpack%2Fmsgpack-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgpack%2Fmsgpack-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgpack%2Fmsgpack-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msgpack%2Fmsgpack-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msgpack","download_url":"https://codeload.github.com/msgpack/msgpack-ocaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247626669,"owners_count":20969349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-06T03:22:50.994Z","updated_at":"2025-04-07T09:33:23.784Z","avatar_url":"https://github.com/msgpack.png","language":"OCaml","readme":"MsgPack for OCaml\n==============================\n\nBULID\n------------\n\n``` bash\n$ make\n$ sudo make install\n```\n\nEXAMPLE\n------------\n\n### Serialize/Deserialize for Msgpack Object\n\n``` ocaml\n(* serialize *)\nlet bytes = \n  Msgpack.Serialize.serialize_string (`FixArray [`PFixnum 1; `PFixnum 2; `PFixnum 3])\n\n(* deserialize *)\nlet obj =\n  Msgpack.Serialize.deserialize_string bytes\n```\n\n### Serialize/Deserialize for OCaml types (with meta_conv)\n\n``` ocaml\nopen Msgpack_conv\n\ntype t = {\n  int : int;\n  str : string;\n} with conv(msgpack)\n\n(* serialize *)\nlet bytes = \n  Msgpack.Serialize.serialize_string (msgpack_of_t { int = 42; str = \"ans\" })\n\n(* deserialize *)\nlet obj =\n  t_of_msgpack (Msgpack.Serialize.deserialize_string bytes)\n```\n\nSee also, `examlpe/`\n\nDEVELOPMENT\n------------\nSetup development enviroment with docker:\n\n```sh\n$ docker-compose build\n$ docker-compose run app\n```\n\nTEST\n------------\n\n``` bash\n$ ocaml setup.ml -configure --enable-tests\n$ make test\n```\n\nPROOF\n-----------\n\nIf you want to use msgpack at OCaml, you need not do this section.\nThis section for user intrested in formal verification.\n\nYou need Coq 8.4 and omake.\n\n``` bash\n$ cd proof\n$ make\n$ cp *.ml* ../lib/core\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsgpack%2Fmsgpack-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsgpack%2Fmsgpack-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsgpack%2Fmsgpack-ocaml/lists"}