protobuf-nim icon indicating copy to clipboard operation
protobuf-nim copied to clipboard

Protobuf implementation in pure Nim that leverages the power of the macro system to not depend on any external tools

Results 13 protobuf-nim issues
Sort by recently updated
recently updated
newest added

Hi! Per #14, I'm creating a new issue. Here's a quick example. ```nim import protobuf import std/streams import std/monotimes import std/strformat import std/random # Define our protobuf specification and generate...

Combparser turns out to be fairly slow. This is probably caused by it's very recursive nature and lot's of string slicing (which creates a new copy of the string). As...

I came across a serialization bug in a more complex case that I mentioned in https://github.com/PMunch/protobuf-nim/issues/23#issuecomment-753461957 I made a simpler example to make it clearer for you: ```protobuf syntax =...

protobuf-nim tries to automatically import said files, yet they're not shipped with the library.

``` message ResultMap { map results = 3; } ``` throws an error when being parsed. As this is syntactic sugar for: ``` message MapFieldEntry { key_type key = 1;...

The README specifies proto3 at the moment but does not say if proto2 will also be a target in the future. So is it? Will you accept PR to extend...

`stream.readExampleMessage` (as in https://github.com/PMunch/protobuf-nim/blob/master/README.rst) is not generic (eg can't be used in generic code), and also pollutes namespace with all the generated symbols. Instead of `stream.readExampleMessage` how about: option 1:...

This currently parses the official protobuf specification. However if you only plan to use it for Nim -> Nim communication there is no need to specify your protobuf format in...

just saw it on https://forum.nim-lang.org/t/3687/1#23146 as posted by @oswjk > As a side note: my library currently passes googles conformance test suite for proto3 tests that do not require JSON...

same as done here: https://github.com/oswjk/protobuf-nim/blob/master/README.md ```nim let message = newTest1() # ... let data = serialize(message) let message2 = newTest1(data) assert message2 == message ``` This could be in addition...