diff --git a/.travis.yml b/.travis.yml index 085a1c0..c87fba5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,10 @@ os: - linux env: - - BRANCH="master" + - BRANCH="devel" install: - - git clone -b $BRANCH git://github.com/Araq/Nim.git; cd Nim; git clone -b $BRANCH --depth 1 git://github.com/nim-lang/csources; cd csources && sh build.sh; cd ..; bin/nim c koch; ./koch boot -d:release; cd ..; export PATH=`pwd`/Nim/bin:$PATH + - git clone -b $BRANCH git://github.com/nim-lang/Nim.git; cd Nim; git clone -b master --depth 1 git://github.com/nim-lang/csources; cd csources && sh build.sh; cd ..; bin/nim c koch; ./koch boot -d:release; cd ..; export PATH=`pwd`/Nim/bin:$PATH - git clone https://github.com/nim-lang/nimble.git; cd nimble; yes | nim c -r src/nimble install; cd ..; export PATH=~/.nimble/bin:$PATH; nimble update; nimble install msgpack4nim before_script: diff --git a/example/example_server.nim b/example/example_server.nim index a97ae83..b910a1c 100644 --- a/example/example_server.nim +++ b/example/example_server.nim @@ -1,4 +1,4 @@ -import nimrpc/rpc_server, nimrpc/rpc_type, asyncnet, asyncdispatch, msgpack +import nimrpc/rpc_server, nimrpc/rpc_type, asyncnet, asyncdispatch, msgpack4nim # Define your remote proc # Remote porc must have two params, first is input, second is output (so it's var param). diff --git a/nimrpc.nimble b/nimrpc.nimble index a97d03d..a6909e8 100644 --- a/nimrpc.nimble +++ b/nimrpc.nimble @@ -9,7 +9,7 @@ srcDir = "src" [Deps] Requires: """ -nim >= 0.11.2 +nim >= 0.18.1 msgpack4nim >= 0.1.2 diff --git a/src/nimrpc/rpc_client.nim b/src/nimrpc/rpc_client.nim index 1452c77..278509a 100644 --- a/src/nimrpc/rpc_client.nim +++ b/src/nimrpc/rpc_client.nim @@ -1,4 +1,4 @@ -import net, asyncdispatch, msgpack, tables +import net, asyncdispatch, msgpack4nim, tables import rpc_type type diff --git a/src/nimrpc/rpc_server.nim b/src/nimrpc/rpc_server.nim index 6836023..dc967ce 100644 --- a/src/nimrpc/rpc_server.nim +++ b/src/nimrpc/rpc_server.nim @@ -1,4 +1,4 @@ -import asyncnet, asyncdispatch, msgpack, tables +import asyncnet, asyncdispatch, msgpack4nim, tables import rpc_type type