diff --git a/.gitignore b/.gitignore index 253352d..7f70d41 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ libtun-test-* *.o *.obj *.lst +dub.json diff --git a/dub.json b/dub.json index 04e82c4..cca6b8d 100644 --- a/dub.json +++ b/dub.json @@ -6,7 +6,7 @@ "description": "TUN adapter for D", "license": "GPLv3", "name": "libtun", - "targetType": "executable", + "targetType": "library", "preBuildCommands": ["gcc source/libtun/tunctl.c -o tunctl.o -c"], "lflags": ["tunctl.o"] } \ No newline at end of file diff --git a/source/app.d b/source/libtun/testing/app.d similarity index 92% rename from source/app.d rename to source/libtun/testing/app.d index 5768c52..db05122 100644 --- a/source/app.d +++ b/source/libtun/testing/app.d @@ -1,3 +1,5 @@ +module libtun.testing.app; + import std.stdio; import libtun.adapter;