Skip to content

Conversation

@Jake-Shadle
Copy link
Member

This is a fairly large change that essentially pulls in a bulk of the https://github.com/jpeddicord/askalono crate to add the ability to detect the SPDX license for a file. For now this is basically just a copy of the code with minor tweaks, but opens up the possibility to make changes more easily in the future, eg. detecting multiple licenses in the same file.

The only major change made when inlining the askalono code into this crate was how the cache is serialized and used. askalono used msgpack (via rmp-serde) for de/serialization, which ended up being the impetus for finally doing this PR and addressing the fairly old issue of #67.

In light of this, the biggest single change I did while inlining the askalono code was to use a really simple length-prefixed style format for serializing the cache data that doesn't use any external dependencies since the data is incredibly simple and doesn't need to interface with anything outside of itself.

Resolves: #67

@Jake-Shadle Jake-Shadle merged commit 76f94a1 into main Dec 1, 2025
6 checks passed
@Jake-Shadle Jake-Shadle deleted the detection branch December 1, 2025 15:21
@Jake-Shadle Jake-Shadle mentioned this pull request Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add optional license detection

1 participant