From db4243a918be8e0cf58d779b2e4469df634f6f75 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 26 Dec 2023 12:01:23 +0100 Subject: [PATCH] chore(treewide): Add license headers --- .envrc | 18 ++++++++++++++++++ Cargo.toml | 18 ++++++++++++++++++ Makefile | 18 ++++++++++++++++++ build.rs | 20 ++++++++++++++++++++ c_src/main.c | 20 ++++++++++++++++++++ cog.toml | 18 ++++++++++++++++++ flake.nix | 18 ++++++++++++++++++ src/lib.rs | 20 ++++++++++++++++++++ 8 files changed, 150 insertions(+) diff --git a/.envrc b/.envrc index 96eca6b..ffe1da9 100644 --- a/.envrc +++ b/.envrc @@ -1,3 +1,21 @@ +# Copyright (C) 2023 The Trinitrix Project +# +# This file is part of the RPC crate for Trinitrix. +# +# RPC is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + use flake || use nix watch_file flake.nix diff --git a/Cargo.toml b/Cargo.toml index 0d5dfbe..94f3356 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,21 @@ +# Copyright (C) 2023 The Trinitrix Project +# +# This file is part of the RPC crate for Trinitrix. +# +# RPC is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + [package] name = "rpc" version = "0.1.0" diff --git a/Makefile b/Makefile index b6a0bca..8ceba28 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,21 @@ +# Copyright (C) 2023 The Trinitrix Project +# +# This file is part of the RPC crate for Trinitrix. +# +# RPC is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + PREFIX := /usr/local BINPREFIX := $(DESTDIR)$(PREFIX)/bin MANPREFIX := $(DESTDIR)$(PREFIX)/share/man/man1 diff --git a/build.rs b/build.rs index 10272a6..81808dc 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,23 @@ +/* +* Copyright (C) 2023 The Trinitrix Project +* +* This file is part of the RPC crate for Trinitrix. +* +* RPC is free software: you can redistribute it and/or modify +* it under the terms of the Lesser GNU General Public License as +* published by the Free Software Foundation, either version 3 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* and the Lesser GNU General Public License along with this program. +* If not, see . +*/ + use trixy_macros::config::TrixyConfig; fn main() { diff --git a/c_src/main.c b/c_src/main.c index e69de29..09e0c44 100644 --- a/c_src/main.c +++ b/c_src/main.c @@ -0,0 +1,20 @@ +/* +* Copyright (C) 2023 The Trinitrix Project +* +* This file is part of the RPC crate for Trinitrix. +* +* RPC is free software: you can redistribute it and/or modify +* it under the terms of the Lesser GNU General Public License as +* published by the Free Software Foundation, either version 3 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* and the Lesser GNU General Public License along with this program. +* If not, see . +*/ + diff --git a/cog.toml b/cog.toml index 9274623..7ac6a01 100644 --- a/cog.toml +++ b/cog.toml @@ -1,3 +1,21 @@ +# Copyright (C) 2023 The Trinitrix Project +# +# This file is part of the RPC crate for Trinitrix. +# +# RPC is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + tag_prefix = "v" branch_whitelist = [ "main" ] ignore_merge_commits = false diff --git a/flake.nix b/flake.nix index 43b9c60..577ad72 100644 --- a/flake.nix +++ b/flake.nix @@ -1,3 +1,21 @@ +# Copyright (C) 2023 The Trinitrix Project +# +# This file is part of the RPC crate for Trinitrix. +# +# RPC is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + { description = "A rust crate compiling to a shared library used to provide a interface to trinitrix's api"; diff --git a/src/lib.rs b/src/lib.rs index 7d12d9a..c355d64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,23 @@ +/* +* Copyright (C) 2023 The Trinitrix Project +* +* This file is part of the RPC crate for Trinitrix. +* +* RPC is free software: you can redistribute it and/or modify +* it under the terms of the Lesser GNU General Public License as +* published by the Free Software Foundation, either version 3 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* and the Lesser GNU General Public License along with this program. +* If not, see . +*/ + pub fn add(left: usize, right: usize) -> usize { left + right }