Skip to content

Commit c22a14a

Browse files
authored
merge develop
2 parents 9b5cd5e + 554125b commit c22a14a

File tree

4 files changed

+424
-0
lines changed

4 files changed

+424
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
/.idea
3+
Cargo.lock

Cargo.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "tentris-license-aggregator"
3+
version = "0.1.0"
4+
edition = "2021"
5+
keywords = ["build-script", "licenses", "spdx"]
6+
repository = "https://github.com/dice-group/tentris-license-aggregator"
7+
readme = "README.md"
8+
license = "MIT OR Apache-2.0"
9+
10+
[dependencies]
11+
anyhow = "1.0.95"
12+
tracing = "0.1.41"
13+
cargo-about = "0.6.6"
14+
krates = "0.17.5"
15+
spdx = "0.10.8"
16+
reqwest = { version = "0.12.12", default-features = false, features = ["blocking", "rustls-tls"] }
17+
serde = { version = "1.0.217", features = ["derive"] }

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# tentris-license-aggregator
2+
3+
A library based on [cargo-about](https://github.com/EmbarkStudios/cargo-about) to collect
4+
rust licenses and to augment licenses of non-rust dependencies scraped by a third party tool that may
5+
not have knowledge about the SPDX identifiers of individual license files (e.g. conan).
6+
7+
### Differences to cargo-about
8+
1. While `cargo-about` accumulates all dependencies that have a specific license,
9+
`tentris-license-aggregator` accumulates all licenses for each dependency
10+
(i.e. the collected results are `Vec<tentris_license_aggregator::Package>` (see `pub struct Package` in [lib.rs](src/lib.rs)).
11+
2. `tentris-license-aggregator` allows to detect SPDX identifiers for licenses collected by a third party tool (e.g. conan)
12+
that does not know them

0 commit comments

Comments
 (0)