summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-11-29 18:49:57 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-11-29 18:49:57 -0300
commit3fa132148f1aca5671609b6ac9f3379c09e9ecfd (patch)
tree9e5db4e70a27add4921e251f1ac472b3b14aee69 /src
parent35ff4cb55222893c4abd6b679eba08c476f7eead (diff)
Specify license for docs/comments
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs9
-rw-r--r--src/strcursor.rs1
-rw-r--r--src/suggestion.rs1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d8c7582..285c0a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,18 +1,27 @@
 // Copyright (c) 2021 Soni L.
+//
+// Licensed under the MIT license.
+// Documentation and comments licensed under CC BY-SA 4.0.
 
 //! Iosonism is a command parsing library. It parses commands from strings, in
 //! contrast with an argument parsing library, which parses arrays of strings.
 //!
 //! Iosonism is based on [Brigadier](https://github.com/Mojang/brigadier).
+//!
+//! This documentation is licensed under CC BY-SA 4.0. To view a copy of this
+//! license, visit http://creativecommons.org/licenses/by-sa/4.0/
 
 // quick overview of brigadier vs iosonism:
 //
 // - brigadier.StringReader -> iosonism::strcursor::StringReader + Cursor<&str>
 // - brigadier.context.StringRange -> Range<usize>
 // - brigadier.suggestion.Suggestion -> iosonism::suggestion::Suggestion;
+// - brigadier.suggestion.Suggestions -> iosonism::suggestion::Suggestions;
+// - brigadier.suggestion.SuggestionsBuilder -> iosonism::suggestion::SuggestionsBuilder;
 
 pub mod strcursor;
 pub mod suggestion;
+//pub mod args;
 
 #[cfg(test)]
 mod tests {
diff --git a/src/strcursor.rs b/src/strcursor.rs
index f8b95c6..b9bf626 100644
--- a/src/strcursor.rs
+++ b/src/strcursor.rs
@@ -1,6 +1,7 @@
 // Copyright (c) 2021 Soni L.
 // Copyright (c) Microsoft Corporation. All rights reserved.
 // Licensed under the MIT license.
+// Documentation and comments licensed under CC BY-SA 4.0.
 
 //! String Cursor (sorta).
 
diff --git a/src/suggestion.rs b/src/suggestion.rs
index ca99b3c..a96e892 100644
--- a/src/suggestion.rs
+++ b/src/suggestion.rs
@@ -1,6 +1,7 @@
 // Copyright (c) 2021 Soni L.
 // Copyright (c) Microsoft Corporation. All rights reserved.
 // Licensed under the MIT license.
+// Documentation and comments licensed under CC BY-SA 4.0.
 
 //! Suggestion machinery.