A tool & library to detect open source licenses from texts
zstd
update to 0.8; thanks @decathorpe
failure
with anyhow
; thanks @hdhoang
aliases
field. Aliases can instead be queried with the aliases
function on a Store
.analyze
(on Store
) no longer returns a Result. There was no reasonable case where it could fail.with_view
, white_out
, optimize_bounds
on TextData
also no longer return Result, as they never had an expected failure path outside of programming errors. A panic may occur if an out-of-bounds view is used -- this is intentional. See commit 8d11161c.lcs_removal
preprocessor has been fixed to be less aggressive on certain repeated statements (#42).NOTE: askalono.linux-static
in this release contains code that is slightly newer than 0.3.0. Specifically, it's from commit 45276591150295cda177f0935d1bda6802276edf -- consider it a preview release for some upcoming features. In general, you should use the regular Linux build, but in some cases that's not possible.
ScanStrategy
. These include some common high-level logic that can be used for diving deeper into askalono's results.Store
gained methods to add your own licenses to its dataset at runtime. These are add_license
and add_variant
.Store
lets you retrieve and set the list of aliases for a given license.Store
can also tell you which licenses are present with licenses
.TextData
's with_view
is now public. It can be used to change the region of lines in a text you're interested in without needing to wholly re-compute data for the underlying string.TextData
also learned white_out
, which is the inverse of with_view
. It erases the active view's lines. This can be useful when a match has been found and you'd like to "hide" it to perform further analysis.optimize_bounds
now returns a Result. Previously it would have paniced if self
was missing text.aliases
field has been deprecated and will be removed in a future release. Prefer looking up aliases in the store when needed.optimize_bounds
now respects existing line views/windows on TextData structs.analyze
is now able to run in 3-5 ms on commodity hardware!