From 852c2551fd230c9ded189b24166d109f9375aada Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 28 Apr 2026 20:26:47 +0200 Subject: [PATCH] docs: declare MIT-0 licensing Add the MIT No Attribution license text and mark the crate with the matching SPDX identifier. This makes the repository license explicit in both the source header and Cargo package metadata, so downstream tools can recognize the crate as MIT-0 without guessing from prose. The license file uses the SPDX MIT-0 text with this project's copyright holder. The Rust source keeps the machine-readable SPDX-License-Identifier header at the top of the crate root. Test Plan: - cargo clippy - cargo clippy --benches - cargo clippy --tests - cargo +nightly fmt Trailer: - SPDX-License-Identifier: MIT-0 - SPDX Specification: https://spdx.github.io/spdx-spec/v3.0.1/ - SPDX MIT-0: https://spdx.org/licenses/MIT-0.html --- Cargo.toml | 1 + LICENSE | 5 +++++ src/lib.rs | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 LICENSE diff --git a/Cargo.toml b/Cargo.toml index afe9084..a558de1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "ez-urandom" version = "0.1.0" edition = "2024" +license = "MIT-0" [dependencies] paste = "1" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d71bf9a --- /dev/null +++ b/LICENSE @@ -0,0 +1,5 @@ +Copyright 2026 ddidderr + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/src/lib.rs b/src/lib.rs index 59b9cc9..8c10ae3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT-0 + //! Easy access to operating-system randomness via `/dev/urandom`. //! //! The crate exposes [`OsRandom`], a small wrapper around an open handle to