document-features: Change licenses and add descriptions and keywords

This commit is contained in:
Olivier Goffart 2022-01-31 15:03:11 +01:00 committed by Olivier Goffart
parent 6371192bec
commit 13c12c81c1
3 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# Copyright © SixtyFPS GmbH <info@sixtyfps.io>
# SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
# SPDX-License-Identifier: MIT OR Apache-2.0
[package]
name = "document-features"
@ -7,7 +7,12 @@ version = "0.1.0"
authors = ["SixtyFPS <info@sixtyfps.io>"]
edition = "2021"
publish = false
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
license = "MIT OR Apache-2.0"
repository = "https://github.com/sixtyfpsui/sixtyfps"
homepage = "https://sixtyfps.io"
description = "Extract documentation for the feature flag from comments in Cargo.toml"
categories = ["development-tools"]
keywords = ["documentation", "features", "rustdoc", "macro"]
[lib]
proc-macro = true

View file

@ -1,5 +1,5 @@
// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
// SPDX-License-Identifier: MIT OR Apache-2.0
/*!
Document your crate's feature flags.

View file

@ -263,7 +263,8 @@ enum LicenseLocation {
lazy_static! {
// cspell:disable
static ref LICENSE_LOCATION_FOR_FILE: Vec<(regex::Regex, LicenseLocation)> = [
("^helper_crates/const-field-offset/.*", LicenseLocation::NoLicense), // Upstream fork
("^helper_crates/const-field-offset/.*", LicenseLocation::NoLicense), // liberal license
("^helper_crates/document-features/.*", LicenseLocation::NoLicense), // liberal license
(".+webpack\\..+\\.js$", LicenseLocation::NoLicense),
(".+\\.license$", LicenseLocation::NoLicense),
(".+\\.rs$", LicenseLocation::Tag(LicenseTagStyle::c_style_comment_style())),