Open sycured opened 2 years ago
Can we solve this with feature flags?
Keep chunked_transfer
as a default dependency, but point out in the README that the project can't be MIT licensed if the dependency is enabled?
Yes, it'll work
Is it possible to have ureq working without this dependency?
Well. It won't be as good :)
Chunked transfer is used in HTTP/1.1 when the length of a body is not known. Many requests would work without it, but not all.
Another option is to talk to the upstream maintainer.
A third option is to implement this ourselves – I have done it once before https://github.com/algesten/hreq-h1/blob/master/src/chunked.rs – we could remove async
from this code and use that.
PR's up at chunked-transfer:
Hello,
I'm actually doing a big check (SBOM, licensing & co) on my different work, and obtain a red line about one dependency used by ureq: chunked_transfer which is Apache-2.0 only, a license that I can't use inside 3 projects.
ureq is dual-licensing Apache-2.0 and MIT, so can you confirm that your MIT isn't violating Apache-2.0?
For example, I can mention:
Thanks a lot for your help