I want to add xml support to my application so i fetched kxml library with dub but it don't want to work for me. Steps and test code:

[holo@ultraxps kxml]$ cat dub.sdl
name "kxml"
description "A minimal D application."
copyright "Copyright © 2015, holo"
authors "holo"
dependencies "kxml" version="1.0.0"
[holo@ultraxps kxml]$ dub run
Performing "debug" build using dmd for x86_64.
kxml ~master: building configuration "application"...
source/app.d(1,8): Error: module kxml is in file 'kxml.d' which cannot be read
import path[0] = source/
import path[1] = /usr/include/dlang/dmd
dmd failed with exit code 1.
[holo@ultraxps kxml]$ cat source/app.d
import kxml;
import std.stdio;
import std.file;


struct instance
        {
           string id;
           string name;
           string type;
           string state;
        }


void main()
{

}

[holo@ultraxps kxml]$

How to make dub to work for me?

Reply via email to