cl-to-cd

Crates.iocl-to-cd
lib.rscl-to-cd
version0.0.1
created_at2019-12-13 23:14:46.031044+00
updated_at2019-12-14 00:03:07.447214+00
descriptionTools for querying ClearlyDefined for Rust projects using Cargo.
homepage
repositoryhttps://github.com/jeffmendoza/cl-to-cd
max_upload_size
id189222
size79,720
Jeff Mendoza (jeffmendoza)

documentation

README

Cargo.lock to ClearlyDefined

These tools allow querying ClearlyDefined for information about packages found in Cargo.lock.

cl-to-cd

This tool takes a Cargo.lock on stdin, and outputs an array of coordinates in ClearlyDefined format, it is meant to be used with the tools below.

cd-to-csv

This tool takes an array of coordinates and queries ClearlyDefined for their license information, then outputs a csv format. For example, use in your CI system like this:

cat Cargo.lock | cl-to-cd | cd-to-csv > deps.csv

And save deps.csv in your build artifacts.

cd-to-notice

This tool takes an array of coordinates and queries ClearlyDefined to generate a "notice" file. For example, use in your CI system like this:

cat Cargo.lock | cl-to-cd | cd-to-notice > notice.txt

And bundle notice.txt with your distributions.

Also see

Commit count: 0

cargo fmt