Closed jprider63 closed 6 years ago
Thank you. I've just released v1.5.0
, which includes your pull request.
Would you be interested in including this static list in this crate?
Since the Public Suffix List is a living document, I prefer that caching strategies, like the psl
crate, be maintained externally.
Ok no worries. I'll release staticpublicsuffix
as a separate library in case anyone else needs this functionality.
Cool, thanks.
@jprider63 You may be interested in the newer replacement of this crate which is a lot faster. See some benchmarks against a C
library, libpsl
and a PyPy
one, publicsuffix
.
I'd like to create
List
s statically at compile-time (I don't want to rely on the internet or ship the dat file). I've implemented this here usinglazy_static!
andinclude_str!
. Currently, this should extract the&str
at compile-time and lazily build the list at run-time. Would you be interested in including this static list in this crate?I just created the pull request #13, which adds a function
from_str
to create aList
. This should eliminate the need to callto_string
which might save some memory.