embed-licensing 0.3.1

Embed licensing information of dependencies to comply with free software licenses
Documentation
// SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
//
// SPDX-License-Identifier: MPL-2.0

use embed_licensing::collect;

#[test]
fn test_macro() {
    // This is more of a smoke test, as the macro can’t be called in a mocked environment.
    let licensing = collect!();
    let _exists = licensing
        .packages
        .iter()
        .find(|pkg| pkg.name == "embed-licensing")
        .unwrap();
    assert!(licensing
        .licenses
        .contains(&spdx::license_id("MPL-2.0").unwrap()));
}