Usage as a library (maybe with a conan package) #189
Replies: 5 comments 10 replies
-
Hi @ruanformigoni! DwarFS is designed as a library, but there's no guarantee on a stable interface before v1.0.0. In fact, at the moment, a lot of interface refactoring happens between releases. The API to use DwarFS images is relatively stable, though. I'm going to be honest and say that I don't know much about conan other than that it exists, so I can't judge how much effort it would be to publish/maintain it on that platform. This is definitely something I'd consider as the API stabilizes. If you have a concrete use case and don't mind breaking API changes, I'm happy to accept PRs in case any changes to DwarFS are necessary. |
Beta Was this translation helpful? Give feedback.
-
@ruanformigoni Sorry for chiming in, I just stumbled upon this discussion.
As it currently stands, dwarfs is licensed under the GPLv3, which has even tighter restrictions, you can't include it in Apache licensed software. @mhx What are your thoughts about releasing a library that can read dwarfs under say Apache or MIT license? I'm thinking about implementing such a library because I believe Dwarfs could make a good container format for things like game engines. Since the format is documented, I assume it's ok with you, but would like to make sure I'm not stepping on your toes. Of course, if dwarfs itself would have the decoding part under a more liberal license, it would make stuff easier when it comes to keeping up to date with improvements to the format, but I think it could be difficult in practise. FWIW, I believe keeping mkdwarfs and the whole creation part under GPL is a good idea, to keep (most) further improvements by other parties available to all. |
Beta Was this translation helpful? Give feedback.
-
Please take a look at dwarfs-0.10.0 which I've just published. It's the first release that properly exposes the libraries. There's also some example code. The libraries are split into Licensing |
Beta Was this translation helpful? Give feedback.
-
Is it possible to configure cmake to not create the library files when building dwarfs? |
Beta Was this translation helpful? Give feedback.
-
on the other hand, making a development package that contains only those files, could some flags be used to skip unneeded steps? btw would these be the files?
|
Beta Was this translation helpful? Give feedback.
-
Greetings,
Is it possible to use dwarfs as a library? It would be great if this project could be published to conan, that way creating C or C++ project that use dwarfs would be quite trivial.
Beta Was this translation helpful? Give feedback.
All reactions