summary refs log tree commit diff
path: root/crates
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-08-30 23:55:06 +1200
committerSophie Forrest <git@sophieforrest.com>2024-08-30 23:55:06 +1200
commita36f999ae05c42e639b5ce1566b7dcfe9445baea (patch)
tree88f457bf2b3c469ad70a5db2c522534ed9846031 /crates
parent3c163eabc78ddbd26bb250ef5ad6da28cd61adc6 (diff)
chore: license under AGPL
All previous commits are to be considered licensed under the GNU
AGPL-3.0-or-later (SPDX-License-Identifier: AGPL-3.0-or-later).
Diffstat (limited to '')
-rw-r--r--crates/brainf_lexer/src/lexer.rs4
-rw-r--r--crates/brainf_lexer/src/lib.rs3
-rw-r--r--crates/brainf_rs/src/engine.rs2
-rw-r--r--crates/brainf_rs/src/executor.rs2
-rw-r--r--crates/brainf_rs/src/lib.rs7
-rw-r--r--crates/brainf_rs/src/main.rs7
-rw-r--r--crates/brainf_rs/src/parser.rs6
-rw-r--r--crates/brainf_rs/src/utility.rs2
8 files changed, 18 insertions, 15 deletions
diff --git a/crates/brainf_lexer/src/lexer.rs b/crates/brainf_lexer/src/lexer.rs
index b95cd87..8e74d76 100644
--- a/crates/brainf_lexer/src/lexer.rs
+++ b/crates/brainf_lexer/src/lexer.rs
@@ -1,6 +1,6 @@
-//! Lexer implementation using logos.
+// SPDX-License-Identifier: AGPL-3.0-or-later
 
-#![expect(clippy::indexing_slicing)]
+//! Lexer implementation using logos.
 
 use logos::{Lexer, Logos};
 
diff --git a/crates/brainf_lexer/src/lib.rs b/crates/brainf_lexer/src/lib.rs
index 7f6e5be..5fd8169 100644
--- a/crates/brainf_lexer/src/lib.rs
+++ b/crates/brainf_lexer/src/lib.rs
@@ -1,4 +1,5 @@
-#![feature(lint_reasons)]
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 #![deny(clippy::complexity)]
 #![deny(clippy::nursery)]
 #![deny(clippy::pedantic)]
diff --git a/crates/brainf_rs/src/engine.rs b/crates/brainf_rs/src/engine.rs
index e60acaa..83bd278 100644
--- a/crates/brainf_rs/src/engine.rs
+++ b/crates/brainf_rs/src/engine.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Executor engine implementation for Brainfuck interpreter.
 //!
 //! This predominantly allows implementation of a [`u16`] executor.
diff --git a/crates/brainf_rs/src/executor.rs b/crates/brainf_rs/src/executor.rs
index c5fff93..c9448cc 100644
--- a/crates/brainf_rs/src/executor.rs
+++ b/crates/brainf_rs/src/executor.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Executor implementation for Brainfuck.
 
 use miette::Diagnostic;
diff --git a/crates/brainf_rs/src/lib.rs b/crates/brainf_rs/src/lib.rs
index f5c8987..e0e7a50 100644
--- a/crates/brainf_rs/src/lib.rs
+++ b/crates/brainf_rs/src/lib.rs
@@ -1,8 +1,5 @@
-#![allow(incomplete_features)]
-#![feature(async_fn_in_trait)]
-#![feature(custom_inner_attributes)]
-#![feature(lint_reasons)]
-#![feature(never_type)]
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 #![feature(test)]
 #![deny(clippy::complexity)]
 #![deny(clippy::nursery)]
diff --git a/crates/brainf_rs/src/main.rs b/crates/brainf_rs/src/main.rs
index 13868a6..ce687c8 100644
--- a/crates/brainf_rs/src/main.rs
+++ b/crates/brainf_rs/src/main.rs
@@ -1,8 +1,5 @@
-#![allow(incomplete_features)]
-#![feature(async_fn_in_trait)]
-#![feature(custom_inner_attributes)]
-#![feature(lint_reasons)]
-#![feature(never_type)]
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 #![deny(clippy::complexity)]
 #![deny(clippy::nursery)]
 #![deny(clippy::pedantic)]
diff --git a/crates/brainf_rs/src/parser.rs b/crates/brainf_rs/src/parser.rs
index c9b3246..be782b8 100644
--- a/crates/brainf_rs/src/parser.rs
+++ b/crates/brainf_rs/src/parser.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Parser implementation for Brainfuck. Parses operator codes into instruction
 //! sets.
 
@@ -62,7 +64,7 @@ pub enum Error {
 		#[source_code]
 		input: String,
 
-		/// SourceSpan of the loop bracket.
+		/// `SourceSpan` of the loop bracket.
 		#[label("loop ending")]
 		loop_src: SourceSpan,
 	},
@@ -78,7 +80,7 @@ pub enum Error {
 		#[source_code]
 		input: String,
 
-		/// SourceSpan of the loop bracket.
+		/// `SourceSpan` of the loop bracket.
 		#[label("loop beginning")]
 		loop_src: SourceSpan,
 	},
diff --git a/crates/brainf_rs/src/utility.rs b/crates/brainf_rs/src/utility.rs
index c83dd42..36abb54 100644
--- a/crates/brainf_rs/src/utility.rs
+++ b/crates/brainf_rs/src/utility.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
 //! Utility functions for working with the Brainfuck interpreter.
 
 use std::path::Path;