diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-11-29 18:49:57 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-11-29 18:49:57 -0300 |
commit | 3fa132148f1aca5671609b6ac9f3379c09e9ecfd (patch) | |
tree | 9e5db4e70a27add4921e251f1ac472b3b14aee69 | |
parent | 35ff4cb55222893c4abd6b679eba08c476f7eead (diff) |
Specify license for docs/comments
-rw-r--r-- | COPYRIGHT | 5 | ||||
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | LICENSE-MIT | 21 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | src/lib.rs | 9 | ||||
-rw-r--r-- | src/strcursor.rs | 1 | ||||
-rw-r--r-- | src/suggestion.rs | 1 | ||||
-rw-r--r-- | tests/common/errorfunc.rs | 3 | ||||
-rw-r--r-- | tests/common/errorpanic.rs | 3 | ||||
-rw-r--r-- | tests/common/mod.rs | 3 | ||||
-rw-r--r-- | tests/strcursor.rs | 1 | ||||
-rw-r--r-- | tests/suggestion.rs | 1 | ||||
-rw-r--r-- | tests/suggestions.rs | 1 |
13 files changed, 55 insertions, 1 deletions
diff --git a/COPYRIGHT b/COPYRIGHT index 58ef643..b05a9d6 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,3 +1,6 @@ Iosonism is a port of Brigadier (https://github.com/Mojang/brigadier) to Rust. -It is MIT licensed. +As with Brigadier, it is MIT licensed. + +Iosonism's Documentation and Comments are licensed under CC BY-SA 4.0. To view +a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ diff --git a/Cargo.toml b/Cargo.toml index 92ff3ba..9f2ffa7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ name = "iosonism" version = "0.1.0" authors = ["SoniEx2 <endermoneymod@gmail.com>"] license = "MIT" +license-file = "COPYRIGHT" description = "An advanced command parser" edition = "2021" repository = "https://soniex2.autistic.space/git-repos/iosonism.git" diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..3bd5ba3 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Soni L. All rights reserved. + +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, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +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/README.md b/README.md index 894e6d2..d13bebe 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,9 @@ Iosonism is a command parsing library, not to be confused with an argument parsing library. It's basically a port of [Brigadier] to Rust. [Brigadier]: https://github.com/Mojang/brigadier + +License +------- + +Iosonism is licensed under the MIT license, with documentation and comments +licensed under CC BY-SA 4.0. See `COPYING` for details. 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. diff --git a/tests/common/errorfunc.rs b/tests/common/errorfunc.rs index 99ba641..926c94c 100644 --- a/tests/common/errorfunc.rs +++ b/tests/common/errorfunc.rs @@ -1,4 +1,7 @@ // Copyright (c) 2021 Soni L. +// +// Licensed under the MIT license. +// Documentation and comments licensed under CC BY-SA 4.0. use ::std::marker::PhantomData; diff --git a/tests/common/errorpanic.rs b/tests/common/errorpanic.rs index 202c4be..faef603 100644 --- a/tests/common/errorpanic.rs +++ b/tests/common/errorpanic.rs @@ -1,4 +1,7 @@ // Copyright (c) 2021 Soni L. +// +// Licensed under the MIT license. +// Documentation and comments licensed under CC BY-SA 4.0. use ::iosonism::strcursor::ReadError; use ::iosonism::strcursor::StringReader; diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 6760da1..cb0c6f2 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1,4 +1,7 @@ // Copyright (c) 2021 Soni L. +// +// Licensed under the MIT license. +// Documentation and comments licensed under CC BY-SA 4.0. // see rationale in tests/*.rs #![warn(non_snake_case)] diff --git a/tests/strcursor.rs b/tests/strcursor.rs index 3ec876e..4d7c9da 100644 --- a/tests/strcursor.rs +++ b/tests/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. // because we wanna use double underscore (__) for test names #![allow(non_snake_case)] diff --git a/tests/suggestion.rs b/tests/suggestion.rs index 5886f16..8190332 100644 --- a/tests/suggestion.rs +++ b/tests/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. // because we wanna use double underscore (__) for test names #![allow(non_snake_case)] diff --git a/tests/suggestions.rs b/tests/suggestions.rs index d7f3631..da7058c 100644 --- a/tests/suggestions.rs +++ b/tests/suggestions.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. // because we wanna use double underscore (__) for test names #![allow(non_snake_case)] |