Skip to content

Commit a43b5e6

Browse files
zpaofacebook-github-bot
authored andcommitted
Update License Headers for Open Source
Summary: The license header we use for our Apache + MIT dual licensed projects can be made more explicit. This has not actual implications on licensing, but does clarify what it means for a project to be dual licensed. Reviewed By: bigfootjon Differential Revision: D76374113 fbshipit-source-id: 74be36980adf1eb527f5e4febcc10bbb68a63150
1 parent a99af8b commit a43b5e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+368
-276
lines changed

allocative/allocative/build.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
fn main() {

allocative/allocative/src/allocative_trait.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
use crate::Visitor;

allocative/allocative/src/flamegraph.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
use std::collections::HashMap;

allocative/allocative/src/global_root.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
use std::sync::Mutex;

allocative/allocative/src/golden.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
#![cfg(test)]

allocative/allocative/src/impls.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
//! Manual implementations of `Allocative` for various types.

allocative/allocative/src/impls/anyhow.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
#![cfg(feature = "anyhow")]

allocative/allocative/src/impls/bumpalo.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
#![cfg(feature = "bumpalo")]

allocative/allocative/src/impls/common.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
use crate::key::Key;

allocative/allocative/src/impls/compact_str.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
22
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
4-
* This source code is licensed under both the MIT license found in the
5-
* LICENSE-MIT file in the root directory of this source tree and the Apache
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
66
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
* of this source tree.
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
89
*/
910

1011
#![cfg(feature = "compact_str")]

0 commit comments

Comments
 (0)