MCPcopy Index your code
hub / github.com/Nemo157/cargo-lichking

github.com/Nemo157/cargo-lichking @0.9.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.9.0 ↗ · + Follow
55 symbols 98 edges 11 files 2 documented · 4% updated 4y ago★ 13227 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cargo-lichking travis-badge crate-badge license-badge rust-version-badge

Automated license checking for rust. cargo lichking is a Cargo subcommand that checks licensing information for dependencies.

Liches are not lawyers, the information output from this tool is provided as a hint to where you may need to look for licensing issues but in no way represents legal advice or guarantees correctness. The tool relies at a minimum on package metadata containing correct licensing information, this is not guaranteed so for real license checking it's necessary to verify all dependencies manually.

Rust Version Policy

This crate only supports the current stable version of Rust, patch releases may use new features at any time.

Installation

To install simply run cargo install cargo-lichking.

Usage

To get a list of all your (transitive) dependencies licenses run cargo lichking list. To check license compatibility based off this License Slide by David A. Wheeler run cargo lichking check.

Developing

When running via cargo run you'll need to provide an initial lichking argument to simulate running as a cargo subcommand, e.g. cargo run -- lichking check.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

Licensed (Interface)
(no doc) [1 implementers]
src/licensed.rs
PackagesExt (Interface)
(no doc) [1 implementers]
src/query.rs
ResolveExt (Interface)
(no doc) [1 implementers]
src/query.rs

Core symbols most depended-on inside this repo

license
called by 6
src/licensed.rs
find_license_text
called by 5
src/discovery.rs
choose
called by 5
src/bundle.rs
by_id
called by 5
src/query.rs
find_generic_license_text
called by 3
src/discovery.rs
run
called by 3
src/list.rs
resolve_roots
called by 3
src/load.rs
resolve_packages
called by 3
src/load.rs

Shape

Function 24
Method 14
Class 8
Enum 6
Interface 3

Languages

Rust100%

Modules by API surface

src/options.rs12 symbols
src/bundle.rs11 symbols
src/discovery.rs10 symbols
src/license.rs6 symbols
src/load.rs4 symbols
src/thirdparty.rs3 symbols
src/query.rs3 symbols
src/main.rs2 symbols
src/licensed.rs2 symbols
src/list.rs1 symbols
src/check.rs1 symbols

For agents

$ claude mcp add cargo-lichking \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact