diff --git a/zerocopy/src/byte_slice.rs b/zerocopy/src/byte_slice.rs index 6f9ee9ac33..2c5ea3a5e8 100644 --- a/zerocopy/src/byte_slice.rs +++ b/zerocopy/src/byte_slice.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/byteorder.rs b/zerocopy/src/byteorder.rs index 206fde3850..efe5862125 100644 --- a/zerocopy/src/byteorder.rs +++ b/zerocopy/src/byteorder.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/deprecated.rs b/zerocopy/src/deprecated.rs index 61b29aa5f4..97be761def 100644 --- a/zerocopy/src/deprecated.rs +++ b/zerocopy/src/deprecated.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under the 2-Clause BSD License , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/invariant.rs b/zerocopy/src/pointer/invariant.rs index 2af211dd9f..f7680af5ad 100644 --- a/zerocopy/src/pointer/invariant.rs +++ b/zerocopy/src/pointer/invariant.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/mod.rs b/zerocopy/src/pointer/mod.rs index 4c3658679d..bdb283fdac 100644 --- a/zerocopy/src/pointer/mod.rs +++ b/zerocopy/src/pointer/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/ptr.rs b/zerocopy/src/pointer/ptr.rs index 307b2aee63..487f01fa36 100644 --- a/zerocopy/src/pointer/ptr.rs +++ b/zerocopy/src/pointer/ptr.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/pointer/transmute.rs b/zerocopy/src/pointer/transmute.rs index 45b4f727fd..14d36acb4f 100644 --- a/zerocopy/src/pointer/transmute.rs +++ b/zerocopy/src/pointer/transmute.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2025 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/ref.rs b/zerocopy/src/ref.rs index 496afc435c..1a9cdc8f04 100644 --- a/zerocopy/src/ref.rs +++ b/zerocopy/src/ref.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2024 The Fuchsia Authors // // Licensed under the 2-Clause BSD License , Apache License, Version 2.0 diff --git a/zerocopy/src/util/macros.rs b/zerocopy/src/util/macros.rs index 7dca5410c8..ebee9615cf 100644 --- a/zerocopy/src/util/macros.rs +++ b/zerocopy/src/util/macros.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/util/mod.rs b/zerocopy/src/util/mod.rs index 1a6c0b22a4..77e56a1076 100644 --- a/zerocopy/src/util/mod.rs +++ b/zerocopy/src/util/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/src/wrappers.rs b/zerocopy/src/wrappers.rs index f3930eb7eb..8b52996108 100644 --- a/zerocopy/src/wrappers.rs +++ b/zerocopy/src/wrappers.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2023 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/zerocopy-derive/src/derive/from_bytes.rs b/zerocopy/zerocopy-derive/src/derive/from_bytes.rs index ad8b6233fe..20ebd57965 100644 --- a/zerocopy/zerocopy-derive/src/derive/from_bytes.rs +++ b/zerocopy/zerocopy-derive/src/derive/from_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::{Span, TokenStream}; use syn::{ parse_quote, Data, DataEnum, DataStruct, DataUnion, Error, Expr, ExprLit, ExprUnary, Lit, UnOp, diff --git a/zerocopy/zerocopy-derive/src/derive/into_bytes.rs b/zerocopy/zerocopy-derive/src/derive/into_bytes.rs index 8c1e1009dd..a1510a4e39 100644 --- a/zerocopy/zerocopy-derive/src/derive/into_bytes.rs +++ b/zerocopy/zerocopy-derive/src/derive/into_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::{Span, TokenStream}; use quote::quote; use syn::{Data, DataEnum, DataStruct, DataUnion, Error, Type}; diff --git a/zerocopy/zerocopy-derive/src/derive/known_layout.rs b/zerocopy/zerocopy-derive/src/derive/known_layout.rs index fb43002d71..ed4e3f7fe4 100644 --- a/zerocopy/zerocopy-derive/src/derive/known_layout.rs +++ b/zerocopy/zerocopy-derive/src/derive/known_layout.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::TokenStream; use quote::quote; use syn::{parse_quote, Data, Error, Type}; diff --git a/zerocopy/zerocopy-derive/src/derive/mod.rs b/zerocopy/zerocopy-derive/src/derive/mod.rs index 88911b43df..28b56b16a6 100644 --- a/zerocopy/zerocopy-derive/src/derive/mod.rs +++ b/zerocopy/zerocopy-derive/src/derive/mod.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// pub mod from_bytes; pub mod into_bytes; pub mod known_layout; diff --git a/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs b/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs index 15b4d94c83..8a7741f397 100644 --- a/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs +++ b/zerocopy/zerocopy-derive/src/derive/try_from_bytes.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::TokenStream; use quote::quote; use syn::{ diff --git a/zerocopy/zerocopy-derive/src/derive/unaligned.rs b/zerocopy/zerocopy-derive/src/derive/unaligned.rs index 819d84984a..2890021f8b 100644 --- a/zerocopy/zerocopy-derive/src/derive/unaligned.rs +++ b/zerocopy/zerocopy-derive/src/derive/unaligned.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// use proc_macro2::{Span, TokenStream}; use syn::{Data, DataEnum, DataStruct, DataUnion, Error}; diff --git a/zerocopy/zerocopy-derive/src/lib.rs b/zerocopy/zerocopy-derive/src/lib.rs index e3b7884c10..a9ac732f8a 100644 --- a/zerocopy/zerocopy-derive/src/lib.rs +++ b/zerocopy/zerocopy-derive/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/zerocopy-derive/src/repr.rs b/zerocopy/zerocopy-derive/src/repr.rs index 57014b38b2..3b1063ce3d 100644 --- a/zerocopy/zerocopy-derive/src/repr.rs +++ b/zerocopy/zerocopy-derive/src/repr.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0 diff --git a/zerocopy/zerocopy-derive/src/util.rs b/zerocopy/zerocopy-derive/src/util.rs index 7af578d523..933b7b3e67 100644 --- a/zerocopy/zerocopy-derive/src/util.rs +++ b/zerocopy/zerocopy-derive/src/util.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT +// // Copyright 2019 The Fuchsia Authors // // Licensed under a BSD-style license , Apache License, Version 2.0