# \[ANN\] Ocaml-protoc-plugin 2.0.0

**URL:** <https://discuss.ocaml.org/t/ann-ocaml-protoc-plugin-2-0-0/4582>\
**Category:** Community\
**Tags:** announce\
**Created:** [October 25, 2019, 8:40am UTC](https://discuss.ocaml.org/t/ann-ocaml-protoc-plugin-2-0-0/4582 "2019-10-25T08:40:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fugmann](https://avatars.discourse-cdn.com/v4/letter/f/c68b51/32.png) [@fugmann](https://discuss.ocaml.org/u/fugmann)\
**Post date:** [October 25, 2019, 8:40am UTC](https://discuss.ocaml.org/t/ann-ocaml-protoc-plugin-2-0-0/4582/1 "2019-10-25T08:40:01Z")

</div>

Dear All,

It is my pleasure to announce release of 2.0.0 of [ocaml-protoc-plugin](https://github.com/issuu/ocaml-protoc-plugin/).

**Highlights for this release**

- Moved to a new name: The main module have been renamed to `Ocaml_protoc_plugin` (from `Protobuf`), to avoid conflicts with projects still using `ocaml-protoc`
- Messages with only one field are not wrapped in a record by default. This can be controlled by the option `singleton_record`.
- Oneof structures with only one field are not wrapped in a Polymorphic variant (controlled by option `singleton_record`)
- Added googles `well known types`

The release is available through opam: `opam install ocaml-protoc-plugin.2.0.0`,  
or from [github](https://github.com/issuu/ocaml-protoc-plugin/releases/tag/2.0.0)

**Full changelog**

- Add examples
- (\*)Oneofs with only one element should not be a variant type
- Add test when including proto files which defines the same package
- Add google well know types (library `ocaml-protoc-plugin.google_types`).
- (\*)Move module to ocaml-protoc-plugin
- Optimize deserialization of large nested structures
- Provide pretty\_printers aka deriving\_show for `Result.error` and `Field.t`
- Fix stack overflow when deserializing big nested structures
- (\*)Add option to not wrap single field type in records
- Refactor type emitter to closely follow spec (refactor)

(\*) indicates breaking change

---

_[View the full topic](https://discuss.ocaml.org/t/ann-ocaml-protoc-plugin-2-0-0/4582)._
