Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktim committed Dec 18, 2018
0 parents commit c72dd7b
Show file tree
Hide file tree
Showing 8 changed files with 913 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/elm-stuff
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
stages:
- test

test:
stage: test
image: trenneman/elm-ci:0.19.0
before_script:
- elm make
- sed -i 's/new DataView(bytes.buffer, offset, len)/new DataView(bytes.buffer, bytes.byteOffset + offset, len)/' ~/.elm/0.19.0/package/elm/bytes/1.0.7/src/Elm/Kernel/Bytes.js
- rm ~/.elm/0.19.0/package/elm/bytes/1.0.7/*.dat
script:
- elm-format --validate src/
- elm-test
tags:
- docker

20 changes: 20 additions & 0 deletions elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "package",
"name": "eriktim/elm-protocol-buffers",
"summary": "TODO",
"license": "BSD-3-Clause",
"version": "1.0.0",
"exposed-modules": [
"ProtoBuf.Decode",
"ProtoBuf.Encode"
],
"elm-version": "0.19.0 <= v < 0.20.0",
"dependencies": {
"elm/bytes": "1.0.7 <= v < 2.0.0",
"elm/core": "1.0.2 <= v < 2.0.0"
},
"test-dependencies": {
"elm-explorations/test": "1.2.0 <= v < 2.0.0",
"jxxcarlson/hex": "2.1.2 <= v < 3.0.0"
}
}
10 changes: 10 additions & 0 deletions src/Internal/ProtoBuf.elm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Internal.ProtoBuf exposing (WireType(..))


type WireType
= VarInt
| Bit64
| LengthDelimited
| StartGroup
| EndGroup
| Bit32
Loading

0 comments on commit c72dd7b

Please sign in to comment.