io: Add SPDX identifier

The `io` crate is licensed in the manifest using the CC0-1.0 license
same as the rest of the codebase but none of the individual files have a
license blurb.

Add a CC0-1.0 license blurb by way of an SPDX-License-Identifier tag.
This commit is contained in:
Tobin C. Harding 2025-01-07 09:21:57 +11:00
parent b844637935
commit 07d8703a00
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
4 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
#[cfg(feature = "alloc")]
use alloc::boxed::Box;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::boxed::Box;
use core::fmt;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
//! Rust-Bitcoin I/O Library
//!
//! The `std::io` module is not exposed in `no-std` Rust so building `no-std` applications which

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: CC0-1.0
#[macro_export]
/// Because we cannot provide a blanket implementation of [`std::io::Write`] for all implementers
/// of this crate's `io::Write` trait, we provide this macro instead.