From cd7ab3a3c5f4a04d009b8736c22929929afa7949 Mon Sep 17 00:00:00 2001 From: Serkyo Date: Sun, 17 May 2026 21:06:39 +0200 Subject: [PATCH] chore(workspace): add SPDX identifiers to source files --- assets/scripts/core.lua | 2 ++ crates/client/src/main.rs | 2 ++ crates/client/src/meshing.rs | 2 ++ crates/renderer/src/device.rs | 2 ++ crates/renderer/src/error.rs | 2 ++ crates/renderer/src/instance.rs | 2 ++ crates/renderer/src/lib.rs | 2 ++ crates/renderer/src/mesh.rs | 2 ++ crates/renderer/src/pipeline.rs | 2 ++ crates/renderer/src/renderer.rs | 2 ++ crates/renderer/src/surface.rs | 2 ++ crates/renderer/src/swapchain.rs | 2 ++ crates/renderer/src/sync.rs | 2 ++ crates/scripting/src/lib.rs | 2 ++ crates/server/src/main.rs | 2 ++ crates/server/src/world_server.rs | 2 ++ crates/shared/src/generator.rs | 2 ++ crates/shared/src/lib.rs | 2 ++ crates/shared/src/world.rs | 2 ++ mods/example_mod/init.lua | 2 ++ 20 files changed, 40 insertions(+) diff --git a/assets/scripts/core.lua b/assets/scripts/core.lua index 0fd5df2..af3e606 100644 --- a/assets/scripts/core.lua +++ b/assets/scripts/core.lua @@ -1 +1,3 @@ +-- SPDX-License-Identifier: AGPL-3.0-only + -- Core engine scripts diff --git a/crates/client/src/main.rs b/crates/client/src/main.rs index 904a29a..9f6cd4d 100644 --- a/crates/client/src/main.rs +++ b/crates/client/src/main.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Main entry point for the Project Catalyst client. //! //! This crate handles window creation, input processing, and drives the diff --git a/crates/client/src/meshing.rs b/crates/client/src/meshing.rs index 8ec1a6a..c8dde11 100644 --- a/crates/client/src/meshing.rs +++ b/crates/client/src/meshing.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + use renderer::mesh::Vertex; use shared::world::{BlockId, CHUNK_SIZE, Chunk}; diff --git a/crates/renderer/src/device.rs b/crates/renderer/src/device.rs index f13832c..045098c 100644 --- a/crates/renderer/src/device.rs +++ b/crates/renderer/src/device.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Logic for selecting physical devices and creating logical devices. use crate::error::RendererError; diff --git a/crates/renderer/src/error.rs b/crates/renderer/src/error.rs index 6fd613f..8910581 100644 --- a/crates/renderer/src/error.rs +++ b/crates/renderer/src/error.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Error types for the renderer crate. use thiserror::Error; diff --git a/crates/renderer/src/instance.rs b/crates/renderer/src/instance.rs index a627677..7a9a654 100644 --- a/crates/renderer/src/instance.rs +++ b/crates/renderer/src/instance.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + use crate::error::RendererError; use ash::{Entry, Instance, ext, vk}; use std::ffi::{CStr, c_char}; diff --git a/crates/renderer/src/lib.rs b/crates/renderer/src/lib.rs index 0b9adad..fe60fb0 100644 --- a/crates/renderer/src/lib.rs +++ b/crates/renderer/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + #![allow(unsafe_code)] //! Voxel rendering engine using Vulkan 1.3 and dynamic rendering. diff --git a/crates/renderer/src/mesh.rs b/crates/renderer/src/mesh.rs index 4d93cbf..67f7e90 100644 --- a/crates/renderer/src/mesh.rs +++ b/crates/renderer/src/mesh.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Vertex data structures and layout descriptions. use bytemuck::{Pod, Zeroable}; diff --git a/crates/renderer/src/pipeline.rs b/crates/renderer/src/pipeline.rs index 62c996e..5d968d8 100644 --- a/crates/renderer/src/pipeline.rs +++ b/crates/renderer/src/pipeline.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Graphics pipeline creation and shader management. use crate::error::RendererError; diff --git a/crates/renderer/src/renderer.rs b/crates/renderer/src/renderer.rs index 06b88b0..a89b665 100644 --- a/crates/renderer/src/renderer.rs +++ b/crates/renderer/src/renderer.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + use crate::create_gpu_buffer; use crate::sync::SyncPrimitives; use crate::{error::RendererError, mesh::Vertex}; diff --git a/crates/renderer/src/surface.rs b/crates/renderer/src/surface.rs index fd921d8..c904f53 100644 --- a/crates/renderer/src/surface.rs +++ b/crates/renderer/src/surface.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + use crate::error::RendererError; use ash::{Entry, Instance, khr, vk}; use raw_window_handle::{RawDisplayHandle, RawWindowHandle}; diff --git a/crates/renderer/src/swapchain.rs b/crates/renderer/src/swapchain.rs index 434f624..718de42 100644 --- a/crates/renderer/src/swapchain.rs +++ b/crates/renderer/src/swapchain.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + use crate::error::RendererError; use ash::{Device, Instance, khr, vk}; diff --git a/crates/renderer/src/sync.rs b/crates/renderer/src/sync.rs index b8c8594..d864f03 100644 --- a/crates/renderer/src/sync.rs +++ b/crates/renderer/src/sync.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + use crate::error::RendererError; use ash::{Device, vk}; diff --git a/crates/scripting/src/lib.rs b/crates/scripting/src/lib.rs index 5175837..7368406 100644 --- a/crates/scripting/src/lib.rs +++ b/crates/scripting/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Lua scripting and modding support for Project Catalyst. //! //! This crate handles the integration with Lua (via `mlua`) and provides diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index eb44c6e..9ff72dd 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Dedicated server for Project Catalyst. //! //! The server handles the authoritative game simulation, including world diff --git a/crates/server/src/world_server.rs b/crates/server/src/world_server.rs index e02c9de..1cc269f 100644 --- a/crates/server/src/world_server.rs +++ b/crates/server/src/world_server.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Authoritative chunk storage and generation logic for the server. use shared::{ diff --git a/crates/shared/src/generator.rs b/crates/shared/src/generator.rs index 6fb5edc..9cb2b13 100644 --- a/crates/shared/src/generator.rs +++ b/crates/shared/src/generator.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Procedural generation logic for the voxel world. use noise::{NoiseFn, Perlin}; diff --git a/crates/shared/src/lib.rs b/crates/shared/src/lib.rs index 5b535ce..8f90210 100644 --- a/crates/shared/src/lib.rs +++ b/crates/shared/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Shared types and logic for Project Catalyst. //! //! This crate contains data structures and constants that are used by both diff --git a/crates/shared/src/world.rs b/crates/shared/src/world.rs index a5a268d..f734410 100644 --- a/crates/shared/src/world.rs +++ b/crates/shared/src/world.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: AGPL-3.0-only + //! Core data structures representing the voxel world. use bytemuck::{Pod, Zeroable}; diff --git a/mods/example_mod/init.lua b/mods/example_mod/init.lua index 7ef119e..ee5901b 100644 --- a/mods/example_mod/init.lua +++ b/mods/example_mod/init.lua @@ -1 +1,3 @@ +-- SPDX-License-Identifier: AGPL-3.0-only + -- Example mod