diff --git a/Cargo.toml b/Cargo.toml index 9535c99..2b399c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,10 @@ version = "0.2.0" description = "Chat app for lupt(लुप्त) users!" authors = ["Piyush Raj "] edition = "2018" +license = "GPL 3.0" +readme = "README.md" +repository = "https://github.com/PiyushXCoder/lupt" +keywords = ["chat","Chatting","Talk","Stranger"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/broker_messages/mod.rs b/src/broker_messages/mod.rs index 48d642f..5ec1018 100644 --- a/src/broker_messages/mod.rs +++ b/src/broker_messages/mod.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + use actix::prelude::*; use dev::{MessageResponse, ResponseChannel}; use crate::ws_sansad::WsSansad; diff --git a/src/broker_messages/pind.rs b/src/broker_messages/pind.rs index c913e18..467f6dc 100644 --- a/src/broker_messages/pind.rs +++ b/src/broker_messages/pind.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + //! Messages to be sent between Actors use super::*; use super::util::Resp; diff --git a/src/broker_messages/sansad.rs b/src/broker_messages/sansad.rs index 11b6e86..a747caa 100644 --- a/src/broker_messages/sansad.rs +++ b/src/broker_messages/sansad.rs @@ -1,7 +1,22 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ use super::*; - //################################################## For WsSansad ################################################## // Request to send own kunjika hash #[derive(Clone, Message)] diff --git a/src/broker_messages/util.rs b/src/broker_messages/util.rs index cbfc38b..81f2e27 100644 --- a/src/broker_messages/util.rs +++ b/src/broker_messages/util.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + use super::*; //################################################## Helper ################################################## diff --git a/src/chat_pinnd/message.rs b/src/chat_pinnd/message.rs index 807a17f..3618c66 100644 --- a/src/chat_pinnd/message.rs +++ b/src/chat_pinnd/message.rs @@ -1,3 +1,19 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ use super::*; diff --git a/src/chat_pinnd/mod.rs b/src/chat_pinnd/mod.rs index b90b693..800773b 100644 --- a/src/chat_pinnd/mod.rs +++ b/src/chat_pinnd/mod.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + //! Chat Pinnd(पिण्ड) is Actor to manage Websocket Chat related action mod user; diff --git a/src/chat_pinnd/user.rs b/src/chat_pinnd/user.rs index 152b1f2..95510cc 100644 --- a/src/chat_pinnd/user.rs +++ b/src/chat_pinnd/user.rs @@ -1,3 +1,19 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ use super::*; diff --git a/src/config.rs b/src/config.rs index ee65248..997aab4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,21 @@ -use clap::{App, Arg}; +/* + This file is part of Tarangam. + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + +use clap::{App, Arg}; pub struct Config { pub static_path: String, pub bind_address: String diff --git a/src/errors/kaksh_full_error.rs b/src/errors/kaksh_full_error.rs index f1583ce..3acfe98 100644 --- a/src/errors/kaksh_full_error.rs +++ b/src/errors/kaksh_full_error.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + use std::fmt; #[derive(Debug, Clone)] pub struct KakshFullError; diff --git a/src/errors/mod.rs b/src/errors/mod.rs index 5462fde..fba2196 100644 --- a/src/errors/mod.rs +++ b/src/errors/mod.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + mod kaksh_full_error; mod user_kunjika_error; diff --git a/src/errors/user_kunjika_error.rs b/src/errors/user_kunjika_error.rs index 554fced..d125c8e 100644 --- a/src/errors/user_kunjika_error.rs +++ b/src/errors/user_kunjika_error.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + use std::fmt; use std::error::Error; diff --git a/src/main.rs b/src/main.rs index 39da708..61b39c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,18 @@ +/* + This program is free software: you can redistribute it and/or modify + it under the terms of the 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 + along with this program. If not, see . +*/ + //! Lupt chat //! Chat Website to have group chat and stranger's chat both //! diff --git a/src/validator.rs b/src/validator.rs index 5119f08..4e90d5b 100644 --- a/src/validator.rs +++ b/src/validator.rs @@ -1,4 +1,19 @@ +/* + This file is part of Tarangam. + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ pub enum Validation { NonEmpty, NoGupt, diff --git a/src/ws_sansad/handlers.rs b/src/ws_sansad/handlers.rs index e7ccd7c..7509d3b 100644 --- a/src/ws_sansad/handlers.rs +++ b/src/ws_sansad/handlers.rs @@ -1,3 +1,19 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ use super::*; diff --git a/src/ws_sansad/messages.rs b/src/ws_sansad/messages.rs index 88dce44..5a76c8b 100644 --- a/src/ws_sansad/messages.rs +++ b/src/ws_sansad/messages.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + use super::*; impl WsSansad { diff --git a/src/ws_sansad/mod.rs b/src/ws_sansad/mod.rs index eed77bb..5b31333 100644 --- a/src/ws_sansad/mod.rs +++ b/src/ws_sansad/mod.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + //! Ws Sansad manage websocket of each client mod handlers; diff --git a/src/ws_sansad/users.rs b/src/ws_sansad/users.rs index 7672b17..5c4141d 100644 --- a/src/ws_sansad/users.rs +++ b/src/ws_sansad/users.rs @@ -1,3 +1,20 @@ +/* + This file is part of Tarangam. + + Tarangam is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Tarangam 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 + along with Tarangam. If not, see +*/ + use super::*; impl WsSansad {