From 4243551d76e5859a8e3fb5e9be189c0f1ee4bc57 Mon Sep 17 00:00:00 2001 From: Yehowshua Immanuel Date: Wed, 14 Sep 2022 16:28:12 -0400 Subject: [PATCH] proper handling of licenses --- LICENSE => LICENSE-GPLV3 | 0 LICENSE-YEHOWSHUA | 2 ++ examples/parse_vcd.rs | 4 ++++ examples/vcd.rs | 4 ++++ src/lib.rs | 6 +++++- src/vcd.rs | 4 ++++ src/vcd/parse.rs | 4 ++++ src/vcd/parse/combinator_atoms.rs | 4 ++++ src/vcd/parse/events.rs | 4 ++++ src/vcd/parse/metadata.rs | 4 ++++ src/vcd/parse/scopes.rs | 5 +++++ src/vcd/parse/types.rs | 4 ++++ src/vcd/reader.rs | 4 ++++ src/vcd/signal.rs | 4 ++++ src/vcd/types.rs | 4 ++++ src/vcd/utilities.rs | 4 ++++ tests/files.rs | 5 +++++ tests/integration_test.rs | 4 ++++ 18 files changed, 69 insertions(+), 1 deletion(-) rename LICENSE => LICENSE-GPLV3 (100%) create mode 100644 LICENSE-YEHOWSHUA diff --git a/LICENSE b/LICENSE-GPLV3 similarity index 100% rename from LICENSE rename to LICENSE-GPLV3 diff --git a/LICENSE-YEHOWSHUA b/LICENSE-YEHOWSHUA new file mode 100644 index 0000000..180914d --- /dev/null +++ b/LICENSE-YEHOWSHUA @@ -0,0 +1,2 @@ +This codebase is also licensed to Yehowshua Immanuel to use +in any manner Yehowshua Immanuel sees fit. \ No newline at end of file diff --git a/examples/parse_vcd.rs b/examples/parse_vcd.rs index 08a719b..6fbcc60 100644 --- a/examples/parse_vcd.rs +++ b/examples/parse_vcd.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use clap::Parser; use std::fs::File; diff --git a/examples/vcd.rs b/examples/vcd.rs index 9ccd9cb..1579729 100644 --- a/examples/vcd.rs +++ b/examples/vcd.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use std::fs::File; use fastwave::*; diff --git a/src/lib.rs b/src/lib.rs index 0e8c12c..f28b750 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,8 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. mod vcd; pub use vcd::*; -pub use num::BigUint; \ No newline at end of file +pub use num::BigUint; diff --git a/src/vcd.rs b/src/vcd.rs index bee6f58..10419ec 100644 --- a/src/vcd.rs +++ b/src/vcd.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. mod reader; use reader::*; diff --git a/src/vcd/parse.rs b/src/vcd/parse.rs index 60db7f8..fcdd9fe 100644 --- a/src/vcd/parse.rs +++ b/src/vcd/parse.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use num::BigUint; use std::collections::HashMap; use std::fs::File; diff --git a/src/vcd/parse/combinator_atoms.rs b/src/vcd/parse/combinator_atoms.rs index 7ac4217..4329831 100644 --- a/src/vcd/parse/combinator_atoms.rs +++ b/src/vcd/parse/combinator_atoms.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use super::reader::{next_word, WordReader}; use super::types::ParseResult; diff --git a/src/vcd/parse/events.rs b/src/vcd/parse/events.rs index bad78e6..f1c7964 100644 --- a/src/vcd/parse/events.rs +++ b/src/vcd/parse/events.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use num::Zero; use super::*; diff --git a/src/vcd/parse/metadata.rs b/src/vcd/parse/metadata.rs index 91954e8..d847f32 100644 --- a/src/vcd/parse/metadata.rs +++ b/src/vcd/parse/metadata.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use chrono::prelude::*; use itertools::Itertools; diff --git a/src/vcd/parse/scopes.rs b/src/vcd/parse/scopes.rs index 9f52c55..cab951d 100644 --- a/src/vcd/parse/scopes.rs +++ b/src/vcd/parse/scopes.rs @@ -1,3 +1,8 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. + /// part of the vcd parser that handles parsing the signal tree and /// building the resulting signal tree use super::*; diff --git a/src/vcd/parse/types.rs b/src/vcd/parse/types.rs index 8bab3d4..c54eb3b 100644 --- a/src/vcd/parse/types.rs +++ b/src/vcd/parse/types.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. #[derive(Debug)] pub(super) struct ParseResult<'a> { pub(super) matched : &'a str, diff --git a/src/vcd/reader.rs b/src/vcd/reader.rs index bd14094..4be573f 100644 --- a/src/vcd/reader.rs +++ b/src/vcd/reader.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use std::collections::VecDeque; use std::fs::File; use std::io; diff --git a/src/vcd/signal.rs b/src/vcd/signal.rs index 65c5d62..2531255 100644 --- a/src/vcd/signal.rs +++ b/src/vcd/signal.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use super::{ScopeIdx, SignalIdx}; use num::{BigUint}; diff --git a/src/vcd/types.rs b/src/vcd/types.rs index f47fd1d..ece6901 100644 --- a/src/vcd/types.rs +++ b/src/vcd/types.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use super::Signal; use chrono::prelude::*; diff --git a/src/vcd/utilities.rs b/src/vcd/utilities.rs index a34905c..3fb5122 100644 --- a/src/vcd/utilities.rs +++ b/src/vcd/utilities.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. #[derive(Debug)] pub(super) enum BinaryParserErrTypes { XValue, diff --git a/tests/files.rs b/tests/files.rs index b652c00..f5d2ac3 100644 --- a/tests/files.rs +++ b/tests/files.rs @@ -1,3 +1,8 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. + // TODO: we should eventually be able to only test on just // the files const pub const FILES : [&str; 30] = [ diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 8beb9c3..b6fa3a2 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -1,3 +1,7 @@ +// Copyright (C) 2022 Yehowshua Immanuel +// This program is distributed under both the GPLV3 license +// and the YEHOWSHUA license, both of which can be found at +// the root of the folder containing the sources for this program. use std::fs::File; mod files;