Skip to content

Commit 94b0cb8

Browse files
authored
Merge pull request #27 from zevv/nimbleStructure
Nimble structure - remove warnings
2 parents 89efd38 + bc28b10 commit 94b0cb8

24 files changed

Lines changed: 15 additions & 18 deletions

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
test/tester
2-
nmqtt
3-
nmqtt_password
4-
nmqtt_pub
5-
nmqtt_sub
1+
tests/tester
2+
bin
File renamed without changes.

src/nmqtt.nim renamed to nmqtt.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ when defined(broker):
1515
sequtils,
1616
times,
1717
random,
18-
utils/passwords,
19-
utils/version
18+
nmqtt/utils/passwords,
19+
nmqtt/utils/version
2020
from parsecfg import loadConfig, getSectionValue
2121
from os import fileExists
2222

@@ -1191,4 +1191,4 @@ proc msgQueue*(ctx: MqttCtx): int =
11911191

11921192

11931193
when defined(broker):
1194-
include "utils/broker.nim"
1194+
include "nmqtt/utils/broker.nim"

nmqtt.nimble

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Package
2-
version = "1.0.0"
2+
version = "1.0.1"
33
author = "zevv & ThomasTJdev"
44
description = "Native MQTT library and binaries for publishing, subscribing and broker"
55
license = "MIT"
6-
srcDir = "src"
6+
bin = @["nmqtt/nmqtt", "nmqtt/nmqtt_password", "nmqtt/nmqtt_pub", "nmqtt/nmqtt_sub"]
77
binDir = "bin"
88
installFiles = @["nmqtt.nim"]
99
installDirs = @["config"]
10-
bin = @["nmqtt", "nmqtt_password", "nmqtt_pub", "nmqtt_sub"]
11-
10+
skipDirs = @["tests", "nmqtt"]
1211

1312
# Dependencies
1413
requires "nim >= 1.0.6"
@@ -19,7 +18,7 @@ from strutils import format
1918

2019

2120
task test, "Runs the test suite.":
22-
exec "nimble c -y -r test/tester"
21+
exec "nimble c -y -r tests/tester"
2322

2423

2524
after install:
@@ -53,7 +52,7 @@ Access the nim-libary with an import statement in your code:
5352
5453
5554
BINARIES:
56-
Access the binaries directly with. For help append `--help`.
55+
Access the binaries directly with the commands below. For help append `--help`.
5756
5857
nmqtt
5958
nmqtt_password
File renamed without changes.

nmqtt/nmqtt.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include "../nmqtt.nim"
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from os import getCurrentProcessId
44

55
import utils/version
66

7-
include "nmqtt.nim"
7+
include "../nmqtt.nim"
88

99

1010
proc handler() {.noconv.} =
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from strutils import split
55

66
import utils/version
77

8-
include "nmqtt.nim"
8+
include "../nmqtt.nim"
99

1010

1111
let ctx = newMqttCtx("nmqttsub-" & $getCurrentProcessId())

0 commit comments

Comments
 (0)