Giter Site home page Giter Site logo

cargo-licenses-markdown's Introduction

license-hound is a tool to help sniffing out licenses from all crate dependencies.

While this tool attempts to help you with fulfilling legal obligations, it should not be relied upon to do so successfully and no author or contributor can be held accountable for the results of its use. See LICENSE for the full terms of use and limitation of liability clause.

What does it do?

license-hound attempts to locate the LICENSE files of all crate dependencies of a rust project so you can successfully comply with the conditions. It tries the following:

  1. Look in the downloaded crate for filenames that could be correct. (All published crates ought to include a license file)
  2. If not found, and the source repository is on GitHub, ask the GitHub license API
  3. If still not found, attempt to retrieve a LICENSE file via HTTPS requests to GitHub

The filenames license-hound looks for are variants seen in the wild, including typos. (LICENSE, COPYING, LICENSE.txt, and so on)

license-hound will attempt to find license files for the MIT, BSD-3-Clause and MPL-2.0 licenses, in that order. Other licenses are not accepted by license-hound, because it was not necessary for its initial use case.

license-hound was written specifically to find the license files for the dependencies of Sausagewiki and may or may not work for your use case.

How do I try it?

cargo install --git https://github.com/maghoff/cargo-license-hound

and then, from your project directory:

cargo license-hound > license-hound.json

It prints out a compact JSON report of its findings. It is best to store this to a file for further processing.

The report is a list of JSON objects, one for each dependency. Each entry includes some metadata as well as a "conclusion", which details the license findings.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.