Exclude const-field-offset from the license check

This is in fact a third-party crate slightly forked
This commit is contained in:
Simon Hausmann 2020-08-18 13:59:31 +02:00
parent ab89fcb69a
commit b9bcf01019
3 changed files with 3 additions and 11 deletions

View file

@ -3,7 +3,7 @@ name = "const-field-offset"
version = "0.1.0"
authors = ["Sixty FPS <info@sixtyfps.io>"]
edition = "2018"
license = "GPL-3.0-only"
license = "MIT OR Apache-2.0"
[dependencies]
const-field-offset-macro = { path = "./macro" }

View file

@ -1,13 +1,3 @@
/* LICENSE BEGIN
This file is part of the Sixty FPS Project
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
LICENSE END */
/*
The FieldOffster structure is forked from https://docs.rs/field-offset/0.3.0/src/field_offset/lib.rs.html

View file

@ -184,6 +184,8 @@ enum LicenseLocation {
lazy_static! {
static ref LICENSE_LOCATION_FOR_FILE: Vec<(regex::Regex, LicenseLocation)> = [
("^helper_crates/const-field-offset/src/lib.rs$".into(), LicenseLocation::NoLicense), // Upstream fork
("^helper_crates/const-field-offset/Cargo.toml$".into(), LicenseLocation::NoLicense), // Upstream fork
(".+\\.rs$".into(), LicenseLocation::Tag(LicenseTagStyle::c_style_comment_style())),
(".+\\.js$", LicenseLocation::Tag(LicenseTagStyle::c_style_comment_style())),
(".+\\.mjs$", LicenseLocation::Tag(LicenseTagStyle::c_style_comment_style())),