#find #fetch #license #about #directory #fetch-about-find

build flicense

CLI for printing license information of rust cargo projects to the terminal

6 releases

new 0.1.7 Apr 22, 2025
0.1.5 Apr 19, 2025
0.1.1 Jan 27, 2025

#110 in Build Utils

Download history 82/week @ 2025-01-21 119/week @ 2025-01-28 23/week @ 2025-02-04 417/week @ 2025-04-15

417 downloads per month

BSL-1.0 license

15KB
161 lines

flicense

CLI for printing license information of rust cargo projects to the terminal.

Crates.io Version GitHub License dependency status

CLI for printing license information of rust cargo projects to the terminal.

Usage: flicense.exe [OPTIONS] [MANIFEST_DIR_PATH]

Arguments:
  [MANIFEST_DIR_PATH]  Optional path to manifest dir (where Cargo.toml and Cargo.lock are). Defaults to current dir

Options:
  -y, --yaml               Output as yaml
  -j, --json               Output as json
  -s, --short              Outputs only a short overview
  -o, --omit-license-text  Omits outputting license text
  -l, --license            Outputs license information regarding this software and it's dependencies
  -h, --help               Print help
  -V, --version            Print version

Installation

Scoop (Windows)

scoop bucket add stupid-bucket https://github.com/WyvernIXTL/stupid-bucket
scoop install stupid-bucket/flicense

Cargo Binstall (Windows/Linux/MacOS)

cargo binstall -y flicense

From Source

cargo install flicense

Usage

Prerequisite

  1. Have Cargo installed.
  2. Ensure the dependencies of the project for which you want to fetch licenses are downloaded (e.g., using cargo fetch).

Examples:

Without Any Flag

flicense.exe ..\license-fetcher\`
================================================================================

Package:     license-fetcher 0.6.2
Description: Fetch licenses of dependencies at build time and embed them into your program.
Authors:     - Adam McKellar <dev@mckellar.eu>
Repository:  https://github.com/WyvernIXTL/license-fetcher
SPDX Ident:  BSL-1.0

--------------------------------------------------------------------------------
Copyright Adam McKellar 2024

Boost Software License - Version 1.0 - August 17th, 2003

...

YAML Without License Text

flicense.exe .\license-fetcher\ -o -y`
- name: license-fetcher
  version: '0.6.2'
  authors:
  - Adam McKellar <dev@mckellar.eu>
  description: Fetch licenses of dependencies at build time and embed them into your program.
  homepage: null
  repository: https://github.com/WyvernIXTL/license-fetcher
  license_identifier: BSL-1.0
  license_text: null

...

Short License Overview

flicense.exe .\license-fetcher\ -s
MIT OR Zlib OR Apache-2.0: miniz_oxide
MIT: bincode, bincode_derive, virtue
0BSD OR MIT OR Apache-2.0: adler2
BSL-1.0: license-fetcher

Dependencies

~10–20MB
~287K SLoC