<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chanora — Third-party license inventory</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
       max-width: 80ch; margin: 2em auto; padding: 0 1em; line-height: 1.5; }
h1, h2 { border-bottom: 1px solid #ccc; padding-bottom: 0.2em; }
.crate { margin-bottom: 1.5em; padding: 0.6em 1em;
         border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.crate h3 { margin: 0 0 0.4em 0; font-size: 1em; }
.license { font-family: ui-monospace, SFMono-Regular, monospace;
           background: #eef; padding: 0.1em 0.4em; border-radius: 3px; }
pre { background: #f0f0f0; padding: 1em; overflow-x: auto;
      max-height: 30em; font-size: 0.85em; }
.footer { margin-top: 3em; padding-top: 1em; border-top: 1px solid #ccc;
          color: #666; font-size: 0.85em; }
</style>
</head>
<body>
<h1>Chanora — Third-party license inventory</h1>

<p>
This page enumerates every third-party crate that ships in a release
build of Chanora and the license under which Chanora redistributes
it. Generated by <code>cargo about generate</code> from
<code>about.toml</code> at the repository root; regenerate via the
<code>just license-inventory</code> recipe.
</p>

<p>
Chanora itself is dual-licensed under
<a href="../../LICENSE-APACHE">Apache License 2.0</a> or the
<a href="../../LICENSE-MIT">MIT License</a> at the recipient's option
(see DEC-020 in
<code>docs/governance/product-decision-register.md</code>).
The crates listed below carry their own licenses and are
redistributed under those terms.
</p>

<h2>Licenses in use</h2>
<ul>
{{#each overview}}
<li><span class="license">{{name}}</span> — used by {{count}} crate(s).</li>
{{/each}}
</ul>

<h2>Crates</h2>
{{#each licenses}}
{{#each used_by}}
<div class="crate">
<h3>{{crate.name}} {{crate.version}}</h3>
<p>License: <span class="license">{{../name}}</span></p>
{{#if crate.repository}}<p>Source: <a href="{{crate.repository}}">{{crate.repository}}</a></p>{{/if}}
</div>
{{/each}}
{{/each}}

<h2>Full license texts</h2>
{{#each licenses}}
<h3>{{name}}</h3>
<pre>{{text}}</pre>
{{/each}}

<div class="footer">
Regenerate with <code>cargo about generate --output-file docs/security/license-inventory.html about.hbs</code>.
This artefact supports the DEC-012 legal review handoff at
<code>docs/governance/legal-review-readiness.md</code>.
</div>
</body>
</html>
