├── web ├── .gitignore ├── static │ ├── config.json │ └── index.html ├── Cargo.toml ├── src │ └── main.rs └── Cargo.lock ├── server ├── .gitignore ├── Cargo.toml ├── src │ └── main.rs └── Cargo.lock ├── .gitignore ├── Cargo.toml ├── README.md ├── .github └── workflows │ └── rust.yml └── LICENSE /web/.gitignore: -------------------------------------------------------------------------------- 1 | /target -------------------------------------------------------------------------------- /server/.gitignore: -------------------------------------------------------------------------------- 1 | /target -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock -------------------------------------------------------------------------------- /web/static/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ws_url": "ws://127.0.0.1:8002/ws" 3 | } -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | 3 | members = [ 4 | "web", 5 | "server", 6 | ] -------------------------------------------------------------------------------- /server/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "server" 3 | version = "0.1.0" 4 | authors = [""] 5 | edition = "2018" 6 | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 | 9 | [dependencies] 10 | ws = { git = "https://github.com/leo-lb/ws-rs", branch = "stable" } 11 | env_logger = "0.7.1" 12 | serde = "1.0.104" 13 | serde_json = "1.0.44" 14 | serde_derive = "1.0.104" 15 | -------------------------------------------------------------------------------- /web/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "web" 3 | version = "0.1.0" 4 | authors = [""] 5 | edition = "2018" 6 | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 | 9 | [dependencies] 10 | yew = { git = "https://github.com/leo-lb/yew.git", branch = "more_fetch_options" } 11 | serde = "1.0.104" 12 | serde_derive = "1.0.104" 13 | failure = "0.1.6" 14 | rand = { version = "0.7.3", features = [ "stdweb" ] } 15 | http = "0.2.0" 16 | anyhow = "1.0.26" 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # random-imgur-wall 2 | 3 | This is source code for the website at https://imgur.schmilblick.org 4 | 5 | ## How to run your own locally 6 | 7 | Install Rust with Cargo for your system. You can use https://rustup.rs/ or install your system packages. 8 | 9 | Run these commands in a unix shell: 10 | ``` 11 | cargo install --force cargo-web 12 | git clone https://github.com/leo-lb/random-imgur-wall 13 | cd random-imgur-wall/web 14 | cargo web start --release --port 8001 --host 127.0.0.1 & 15 | cd ../server 16 | WS_LISTEN_ADDR="127.0.0.1:8002" cargo run --release & 17 | ``` 18 | 19 | Now you can access it at http://127.0.0.1:8001 20 | 21 | To stop it, run the following in the same unix shell as earlier: 22 | ``` 23 | kill $(jobs -p) 24 | ``` 25 | 26 | --- 27 | 28 | If you want to deploy this on a server with your own domain, remember to edit the `config.json` file to point to your websocket server. (https://github.com/leo-lb/random-imgur-wall/blob/master/web/static/config.json) 29 | -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- 1 | name: Rust 2 | 3 | on: [push] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v1 12 | - name: Install dependencies 13 | run: | 14 | cargo web || cargo install --verbose cargo-web 15 | env: 16 | DEBIAN_FRONTEND: noninteractive 17 | - name: Build web 18 | run: cd web && cargo web build --verbose 19 | #- name: Run web tests 20 | # run: cd web && cargo web test --verbose 21 | - name: Build server 22 | run: cd server && cargo build --verbose 23 | - name: Run server tests 24 | run: cd server && cargo test --verbose 25 | 26 | - name: Cache cargo registry 27 | uses: actions/cache@v1 28 | with: 29 | path: ~/.cargo/registry 30 | key: primary 31 | 32 | - name: Cache cargo index 33 | uses: actions/cache@v1 34 | with: 35 | path: ~/.cargo/git 36 | key: primary 37 | 38 | - name: Cache cargo binaries 39 | uses: actions/cache@v1 40 | with: 41 | path: ~/.cargo/bin 42 | key: primary 43 | 44 | - name: Cache web cargo build 45 | uses: actions/cache@v1 46 | with: 47 | path: web/target 48 | key: primary 49 | 50 | - name: Cache server cargo build 51 | uses: actions/cache@v1 52 | with: 53 | path: server/target 54 | key: primary 55 | -------------------------------------------------------------------------------- /web/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 25 | 31 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | -------------------------------------------------------------------------------- /server/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::collections::HashMap; 2 | use std::env; 3 | use std::sync::{Arc, Mutex}; 4 | use ws::{ 5 | listen, CloseCode, Error as WSError, Handler, Handshake, Message, Request, Response, Result, 6 | Sender, 7 | }; 8 | 9 | #[macro_use] 10 | extern crate serde_derive; 11 | 12 | #[derive(Serialize, Deserialize)] 13 | enum WsMessageType { 14 | UsersBruteforcing, 15 | UsersWatching, 16 | Start, 17 | Stop, 18 | New, 19 | } 20 | 21 | #[derive(Serialize, Deserialize)] 22 | struct WsMessage { 23 | msg_type: WsMessageType, 24 | text: Option, 25 | number: Option, 26 | } 27 | 28 | struct User { 29 | is_bruteforcing: bool, 30 | } 31 | 32 | struct Server { 33 | users: Arc>>, 34 | out: Sender, 35 | } 36 | 37 | impl Handler for Server { 38 | fn on_request(&mut self, req: &Request) -> Result<(Response)> { 39 | match req.resource() { 40 | "/ws" => Response::from_request(req), 41 | _ => Ok(Response::new(404, "Not Found", b"404 - Not Found".to_vec())), 42 | } 43 | } 44 | 45 | fn on_open(&mut self, shake: Handshake) -> Result<()> { 46 | self.users.lock().unwrap().insert( 47 | self.out.connection_id(), 48 | User { 49 | is_bruteforcing: false, 50 | }, 51 | ); 52 | 53 | if let Ok(ws_message) = serde_json::to_string(&WsMessage { 54 | msg_type: WsMessageType::UsersWatching, 55 | text: None, 56 | number: Some(self.users.lock().unwrap().iter().count() as u64), 57 | }) { 58 | self.out.broadcast(Message::text(ws_message)); 59 | } 60 | 61 | if let Ok(new_ws_message) = serde_json::to_string(&WsMessage { 62 | msg_type: WsMessageType::UsersBruteforcing, 63 | text: None, 64 | number: Some( 65 | self.users 66 | .lock() 67 | .unwrap() 68 | .iter() 69 | .filter(|(id, user)| user.is_bruteforcing) 70 | .count() as u64, 71 | ), 72 | }) { 73 | self.out.broadcast(Message::text(new_ws_message)); 74 | } 75 | 76 | Ok(()) 77 | } 78 | 79 | fn on_error(&mut self, err: WSError) { 80 | self.users.lock().unwrap().remove(&self.out.connection_id()); 81 | 82 | if let Ok(ws_message) = serde_json::to_string(&WsMessage { 83 | msg_type: WsMessageType::UsersWatching, 84 | text: None, 85 | number: Some(self.users.lock().unwrap().iter().count() as u64), 86 | }) { 87 | self.out.broadcast(Message::text(ws_message)); 88 | } 89 | 90 | if let Ok(new_ws_message) = serde_json::to_string(&WsMessage { 91 | msg_type: WsMessageType::UsersBruteforcing, 92 | text: None, 93 | number: Some( 94 | self.users 95 | .lock() 96 | .unwrap() 97 | .iter() 98 | .filter(|(id, user)| user.is_bruteforcing) 99 | .count() as u64, 100 | ), 101 | }) { 102 | self.out.broadcast(Message::text(new_ws_message)); 103 | } 104 | } 105 | 106 | fn on_close(&mut self, code: CloseCode, reason: &str) { 107 | self.users.lock().unwrap().remove(&self.out.connection_id()); 108 | 109 | if let Ok(ws_message) = serde_json::to_string(&WsMessage { 110 | msg_type: WsMessageType::UsersWatching, 111 | text: None, 112 | number: Some(self.users.lock().unwrap().iter().count() as u64), 113 | }) { 114 | self.out.broadcast(Message::text(ws_message)); 115 | } 116 | 117 | if let Ok(new_ws_message) = serde_json::to_string(&WsMessage { 118 | msg_type: WsMessageType::UsersBruteforcing, 119 | text: None, 120 | number: Some( 121 | self.users 122 | .lock() 123 | .unwrap() 124 | .iter() 125 | .filter(|(id, user)| user.is_bruteforcing) 126 | .count() as u64, 127 | ), 128 | }) { 129 | self.out.broadcast(Message::text(new_ws_message)); 130 | } 131 | } 132 | 133 | fn on_message(&mut self, msg: Message) -> Result<()> { 134 | if let Ok(text) = msg.as_text() { 135 | if let Ok(ws_message) = serde_json::from_str::(&text) { 136 | match ws_message.msg_type { 137 | WsMessageType::New => { 138 | if let Some(text) = ws_message.text { 139 | if let Ok(new_ws_message) = serde_json::to_string(&WsMessage { 140 | msg_type: WsMessageType::New, 141 | text: Some(text), 142 | number: None, 143 | }) { 144 | self.out.broadcast(Message::text(new_ws_message)); 145 | } 146 | } 147 | } 148 | WsMessageType::Start => { 149 | let mut users = self.users.lock().unwrap(); 150 | 151 | if let Some(user) = users.get_mut(&self.out.connection_id()) { 152 | user.is_bruteforcing = true; 153 | 154 | if let Ok(new_ws_message) = serde_json::to_string(&WsMessage { 155 | msg_type: WsMessageType::UsersBruteforcing, 156 | text: None, 157 | number: Some( 158 | users 159 | .iter() 160 | .filter(|(id, user)| user.is_bruteforcing) 161 | .count() as u64, 162 | ), 163 | }) { 164 | self.out.broadcast(Message::text(new_ws_message)); 165 | } 166 | } 167 | } 168 | WsMessageType::Stop => { 169 | let mut users = self.users.lock().unwrap(); 170 | 171 | if let Some(user) = users.get_mut(&self.out.connection_id()) { 172 | user.is_bruteforcing = false; 173 | 174 | if let Ok(new_ws_message) = serde_json::to_string(&WsMessage { 175 | msg_type: WsMessageType::UsersBruteforcing, 176 | text: None, 177 | number: Some( 178 | users 179 | .iter() 180 | .filter(|(id, user)| user.is_bruteforcing) 181 | .count() as u64, 182 | ), 183 | }) { 184 | self.out.broadcast(Message::text(new_ws_message)); 185 | } 186 | } 187 | } 188 | _ => {} 189 | } 190 | } 191 | } 192 | 193 | Ok(()) 194 | } 195 | } 196 | 197 | fn main() { 198 | env_logger::init(); 199 | 200 | let listen_addr = env::var("WS_LISTEN_ADDR").expect("WS_LISTEN_ADDR must be defined."); 201 | 202 | let users = Arc::new(Mutex::new(HashMap::new())); 203 | 204 | listen(listen_addr, |out| Server { 205 | out, 206 | users: users.clone(), 207 | }) 208 | .unwrap(); 209 | } 210 | -------------------------------------------------------------------------------- /web/src/main.rs: -------------------------------------------------------------------------------- 1 | #![recursion_limit = "8192"] 2 | 3 | use anyhow::{anyhow, Error}; 4 | 5 | use serde::{Deserialize, Serialize}; 6 | 7 | use yew::format::{Binary, Json, Nothing}; 8 | 9 | use yew::services::console::ConsoleService; 10 | use yew::services::fetch::{ 11 | FetchOptions, FetchService, FetchTask, Redirect, Referrer, ReferrerPolicy, Request, Response, 12 | }; 13 | use yew::services::interval::{IntervalService, IntervalTask}; 14 | use yew::services::timeout::{TimeoutService, TimeoutTask}; 15 | use yew::services::websocket::{WebSocketService, WebSocketStatus, WebSocketTask}; 16 | 17 | use yew::{html, html::ChangeData, Component, ComponentLink, Html, Renderable, ShouldRender}; 18 | 19 | use rand::distributions::Alphanumeric; 20 | use rand::{thread_rng, Rng}; 21 | 22 | use std::iter; 23 | 24 | use std::time::Duration; 25 | 26 | use http::response::Parts; 27 | use std::collections::HashMap; 28 | use std::collections::VecDeque; 29 | 30 | #[derive(Serialize, Deserialize)] 31 | struct Config { 32 | ws_url: String, 33 | } 34 | 35 | #[derive(Serialize, Deserialize)] 36 | enum WsMessageType { 37 | UsersBruteforcing, 38 | UsersWatching, 39 | Start, 40 | Stop, 41 | New, 42 | } 43 | 44 | #[derive(Serialize, Deserialize)] 45 | struct WsMessage { 46 | msg_type: WsMessageType, 47 | text: Option, 48 | number: Option, 49 | } 50 | 51 | struct Model { 52 | link: ComponentLink, 53 | config: Option, 54 | console_service: ConsoleService, 55 | fetch_service: FetchService, 56 | fetch_task: Option, 57 | find_fetch_tasks: HashMap, 58 | ws_service: WebSocketService, 59 | ws_task: Option, 60 | interval_service: IntervalService, 61 | interval_task: Option, 62 | reset_interval_task: Option, 63 | rate_interval_task: Option, 64 | timeout_service: TimeoutService, 65 | timeout_task: Option, 66 | is_started: bool, 67 | interval: Duration, 68 | images: VecDeque, 69 | total_requests: u64, 70 | requests_per_second: u64, 71 | requests_per_second_current: u64, 72 | images_found_self: u64, 73 | images_found: u64, 74 | users_watching: u64, 75 | users_bruteforcing: u64, 76 | concurrent_loaded: usize, 77 | show_from_top: bool, 78 | is_rate_limited: bool, 79 | rate_limit: u64, 80 | } 81 | 82 | enum Msg { 83 | FetchConfig, 84 | FetchConfigDone(Result), 85 | WsConnect, 86 | WsConnected, 87 | WsLost, 88 | WsMessage(Result), 89 | WsSend(WsMessage), 90 | IntervalChanged(String), 91 | Start, 92 | Stop, 93 | TryFind, 94 | Found((String, String)), 95 | NotFound(String), 96 | ResetRequestsPerSecond, 97 | LoadedChanged(String), 98 | ShowModeSelected(bool), 99 | RateLimitChanged(String), 100 | ResetRateLimit, 101 | NoOp, 102 | } 103 | 104 | impl Component for Model { 105 | type Message = Msg; 106 | type Properties = (); 107 | 108 | fn create(_: Self::Properties, mut link: ComponentLink) -> Self { 109 | let fetch_service = FetchService::new(); 110 | let ws_service = WebSocketService::new(); 111 | let interval_service = IntervalService::new(); 112 | let console_service = ConsoleService::new(); 113 | let timeout_service = TimeoutService::new(); 114 | 115 | link.send_message(Msg::FetchConfig); 116 | 117 | Model { 118 | link, 119 | config: None, 120 | console_service, 121 | fetch_service, 122 | fetch_task: None, 123 | find_fetch_tasks: HashMap::new(), 124 | ws_service, 125 | ws_task: None, 126 | interval_service, 127 | interval_task: None, 128 | reset_interval_task: None, 129 | rate_interval_task: None, 130 | timeout_service, 131 | timeout_task: None, 132 | is_started: false, 133 | interval: Duration::from_millis(100), 134 | images: VecDeque::new(), 135 | total_requests: 0, 136 | requests_per_second: 0, 137 | requests_per_second_current: 0, 138 | images_found_self: 0, 139 | images_found: 0, 140 | users_watching: 0, 141 | users_bruteforcing: 0, 142 | concurrent_loaded: 100, 143 | show_from_top: false, 144 | is_rate_limited: true, 145 | rate_limit: 2, 146 | } 147 | } 148 | 149 | fn update(&mut self, msg: Self::Message) -> ShouldRender { 150 | match msg { 151 | Msg::FetchConfig => { 152 | self.fetch_task = 153 | Some(self.fetch_service.fetch( 154 | Request::get("/config.json").body(Nothing).unwrap(), 155 | self.link.callback( 156 | move |response: Response>>| { 157 | let (meta, Json(config)) = response.into_parts(); 158 | if meta.status.is_success() { 159 | Msg::FetchConfigDone(config) 160 | } else { 161 | Msg::FetchConfigDone(Err(anyhow!( 162 | "{}: could not fetch /config.json", 163 | meta.status 164 | ))) 165 | } 166 | }, 167 | ), 168 | )); 169 | 170 | false 171 | } 172 | Msg::FetchConfigDone(Ok(config)) => { 173 | self.config = Some(config); 174 | 175 | self.link.send_message(Msg::WsConnect); 176 | self.reset_interval_task = Some(self.interval_service.spawn( 177 | Duration::from_secs(1), 178 | self.link.callback(|_| Msg::ResetRequestsPerSecond), 179 | )); 180 | self.rate_interval_task = Some(self.interval_service.spawn( 181 | Duration::from_secs(self.rate_limit), 182 | self.link.callback(|_| Msg::ResetRateLimit), 183 | )); 184 | 185 | false 186 | } 187 | Msg::WsConnect => { 188 | if let Some(config) = &self.config { 189 | if self.ws_task.is_none() { 190 | let callback = self.link.callback(|Json(data)| Msg::WsMessage(data)); 191 | let notification = self.link.callback(|status| match status { 192 | WebSocketStatus::Opened => Msg::WsConnected, 193 | WebSocketStatus::Closed | WebSocketStatus::Error => Msg::WsLost.into(), 194 | }); 195 | let task = self 196 | .ws_service 197 | .connect(&config.ws_url, callback, notification) 198 | .unwrap(); 199 | self.ws_task = Some(task); 200 | } 201 | } 202 | false 203 | } 204 | Msg::WsConnected => { 205 | self.link.send_message(Msg::Start); 206 | false 207 | } 208 | Msg::WsLost => { 209 | self.ws_task = None; 210 | 211 | self.timeout_task = Some(self.timeout_service.spawn( 212 | Duration::from_secs(1), 213 | self.link.callback(|_| Msg::WsConnect), 214 | )); 215 | 216 | false 217 | } 218 | Msg::WsSend(msg) => { 219 | self.ws_task.as_mut().unwrap().send(Json(&msg)); 220 | 221 | false 222 | } 223 | Msg::WsMessage(Ok(msg)) => match msg.msg_type { 224 | WsMessageType::New => { 225 | if let Some(text) = msg.text { 226 | if text.is_ascii() && text.chars().all(char::is_alphanumeric) { 227 | if self.is_rate_limited == false || self.rate_limit == 0 { 228 | if self.concurrent_loaded != 0 { 229 | while self.images.len() > self.concurrent_loaded { 230 | if self.show_from_top { 231 | self.images.pop_front(); 232 | } else { 233 | self.images.pop_back(); 234 | } 235 | } 236 | 237 | if self.images.len() >= self.concurrent_loaded { 238 | if self.show_from_top { 239 | self.images.pop_front(); 240 | } else { 241 | self.images.pop_back(); 242 | } 243 | } 244 | } 245 | 246 | if self.show_from_top { 247 | self.images.push_back(text); 248 | } else { 249 | self.images.push_front(text); 250 | } 251 | 252 | self.is_rate_limited = true; 253 | } 254 | 255 | self.images_found += 1; 256 | 257 | true 258 | } else { 259 | false 260 | } 261 | } else { 262 | false 263 | } 264 | } 265 | WsMessageType::UsersWatching => { 266 | if let Some(number) = msg.number { 267 | self.users_watching = number; 268 | true 269 | } else { 270 | false 271 | } 272 | } 273 | WsMessageType::UsersBruteforcing => { 274 | if let Some(number) = msg.number { 275 | self.users_bruteforcing = number; 276 | true 277 | } else { 278 | false 279 | } 280 | } 281 | _ => false, 282 | }, 283 | Msg::TryFind => { 284 | let alnum = iter::repeat(()) 285 | .map(|()| thread_rng().sample(Alphanumeric)) 286 | .take(7) 287 | .collect::(); 288 | 289 | self.find_fetch_tasks.insert( 290 | alnum.to_owned(), 291 | self.fetch_service.fetch_binary_with_options( 292 | Request::get(format!("https://i.imgur.com/{}.png", &alnum)) 293 | .body(Nothing) 294 | .unwrap(), 295 | FetchOptions { 296 | cache: None, 297 | credentials: None, 298 | redirect: Some(Redirect::Error), 299 | mode: None, 300 | referrer: None, 301 | referrer_policy: Some(ReferrerPolicy::NoReferrer), 302 | integrity: None, 303 | }, 304 | self.link.callback(move |response: Response| { 305 | let (meta, _) = response.into_parts(); 306 | 307 | let message = format!("{:#?}", meta); 308 | 309 | if meta.status.as_u16() != 408 { 310 | Msg::Found((message, alnum.clone())) 311 | } else { 312 | Msg::NotFound(message) 313 | } 314 | }), 315 | ), 316 | ); 317 | 318 | false 319 | } 320 | Msg::Found((message, data)) => { 321 | // self.console_service.log(&message); 322 | 323 | self.find_fetch_tasks.remove(&data); 324 | self.link.send_message(Msg::WsSend(WsMessage { 325 | msg_type: WsMessageType::New, 326 | text: Some(data), 327 | number: None, 328 | })); 329 | 330 | self.images_found_self += 1; 331 | self.requests_per_second_current += 1; 332 | self.total_requests += 1; 333 | 334 | true 335 | } 336 | Msg::NotFound(message) => { 337 | // self.console_service.log(&message); 338 | 339 | self.requests_per_second_current += 1; 340 | self.total_requests += 1; 341 | 342 | true 343 | } 344 | Msg::IntervalChanged(new_interval) => { 345 | if let Ok(interval) = new_interval.parse::() { 346 | self.interval = Duration::from_millis(interval); 347 | } 348 | 349 | if self.is_started { 350 | self.interval_task = Some( 351 | self.interval_service 352 | .spawn(self.interval, self.link.callback(|_| Msg::TryFind)), 353 | ); 354 | } 355 | 356 | false 357 | } 358 | Msg::LoadedChanged(new_loaded) => { 359 | if let Ok(loaded) = new_loaded.parse::() { 360 | self.concurrent_loaded = loaded; 361 | } 362 | 363 | false 364 | } 365 | Msg::ShowModeSelected(value) => { 366 | self.show_from_top = value; 367 | 368 | true 369 | } 370 | Msg::RateLimitChanged(new_rate_limit) => { 371 | if let Ok(rate_limit) = new_rate_limit.parse::() { 372 | self.rate_limit = rate_limit; 373 | 374 | if self.rate_limit != 0 { 375 | self.rate_interval_task = Some(self.interval_service.spawn( 376 | Duration::from_secs(self.rate_limit), 377 | self.link.callback(|_| Msg::ResetRateLimit), 378 | )); 379 | } 380 | } 381 | 382 | false 383 | } 384 | Msg::Start => { 385 | if self.is_started == false { 386 | self.interval_task = Some( 387 | self.interval_service 388 | .spawn(self.interval, self.link.callback(|_| Msg::TryFind)), 389 | ); 390 | 391 | self.link.send_message(Msg::WsSend(WsMessage { 392 | msg_type: WsMessageType::Start, 393 | text: None, 394 | number: None, 395 | })); 396 | } 397 | 398 | self.is_started = true; 399 | 400 | false 401 | } 402 | Msg::Stop => { 403 | self.interval_task = None; 404 | 405 | if self.is_started == true { 406 | self.link.send_message(Msg::WsSend(WsMessage { 407 | msg_type: WsMessageType::Stop, 408 | text: None, 409 | number: None, 410 | })); 411 | } 412 | 413 | self.is_started = false; 414 | 415 | false 416 | } 417 | Msg::ResetRequestsPerSecond => { 418 | self.requests_per_second = self.requests_per_second_current; 419 | self.requests_per_second_current = 0; 420 | 421 | true 422 | } 423 | Msg::ResetRateLimit => { 424 | self.is_rate_limited = false; 425 | 426 | false 427 | } 428 | _ => false, 429 | } 430 | } 431 | 432 | fn view(&self) -> Html { 433 | html! { 434 | 435 |
436 |

{ "Random Imgur Wall" }

437 |
438 |
439 |
440 |
441 |

{ "NSFL Warning" }

442 |

{ "Images show up randomly and you may see terrible things staying on this site, watch with care." }

443 |

444 | 445 | { "Report abusive content" } 446 | 447 |

448 |

449 | 450 | { "Source code" } 451 | 452 |

453 |

454 | { "Thanks to " } 455 | 456 | { "u/quickscoperdoge" } 457 | 458 | { " for the revamped design!" } 459 |

460 |
461 |
462 |

{ "Settings" }

463 | 464 | 465 | 466 | // 467 | 468 | 469 | 470 | // 471 | 472 | 473 | 474 | 490 | 491 | 492 | 493 | // 494 | 495 |
{" Want to see images faster? Decrease this and press Start."}
{" Want to see images faster? Decrease or set this to 0."}
496 |

497 | // 498 | // 499 |

500 |
501 | 502 |
503 |

{ "Statistics" }

504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 |
{ "Total number of requests" }{ self.total_requests }
{ "Requests completed per second" }{ self.requests_per_second }
{ "Images you found" }{ self.images_found_self }
{ "Images everyone found" }{ self.images_found }
{ "Users watching" }{ self.users_watching }
{ "Users bruteforcing" }{ self.users_bruteforcing }
530 |
531 |
532 |
533 |

{ "Images" }

534 | 543 |
544 |
545 |
546 |
547 | 548 | } 549 | } 550 | } 551 | 552 | fn main() { 553 | yew::start_app::(); 554 | } 555 | -------------------------------------------------------------------------------- /server/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "aho-corasick" 5 | version = "0.7.6" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | dependencies = [ 8 | "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 9 | ] 10 | 11 | [[package]] 12 | name = "atty" 13 | version = "0.2.13" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | dependencies = [ 16 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 17 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 18 | ] 19 | 20 | [[package]] 21 | name = "bitflags" 22 | version = "1.1.0" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | 25 | [[package]] 26 | name = "byteorder" 27 | version = "1.3.2" 28 | source = "registry+https://github.com/rust-lang/crates.io-index" 29 | 30 | [[package]] 31 | name = "bytes" 32 | version = "0.4.12" 33 | source = "registry+https://github.com/rust-lang/crates.io-index" 34 | dependencies = [ 35 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 36 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 37 | ] 38 | 39 | [[package]] 40 | name = "cfg-if" 41 | version = "0.1.9" 42 | source = "registry+https://github.com/rust-lang/crates.io-index" 43 | 44 | [[package]] 45 | name = "env_logger" 46 | version = "0.6.2" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | dependencies = [ 49 | "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", 50 | "humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 51 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 52 | "regex 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 53 | "termcolor 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)", 54 | ] 55 | 56 | [[package]] 57 | name = "fuchsia-cprng" 58 | version = "0.1.1" 59 | source = "registry+https://github.com/rust-lang/crates.io-index" 60 | 61 | [[package]] 62 | name = "fuchsia-zircon" 63 | version = "0.3.3" 64 | source = "registry+https://github.com/rust-lang/crates.io-index" 65 | dependencies = [ 66 | "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 67 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 68 | ] 69 | 70 | [[package]] 71 | name = "fuchsia-zircon-sys" 72 | version = "0.3.3" 73 | source = "registry+https://github.com/rust-lang/crates.io-index" 74 | 75 | [[package]] 76 | name = "httparse" 77 | version = "1.3.4" 78 | source = "registry+https://github.com/rust-lang/crates.io-index" 79 | 80 | [[package]] 81 | name = "humantime" 82 | version = "1.2.0" 83 | source = "registry+https://github.com/rust-lang/crates.io-index" 84 | dependencies = [ 85 | "quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 86 | ] 87 | 88 | [[package]] 89 | name = "idna" 90 | version = "0.1.5" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | dependencies = [ 93 | "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 94 | "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 95 | "unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 96 | ] 97 | 98 | [[package]] 99 | name = "iovec" 100 | version = "0.1.2" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | dependencies = [ 103 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 104 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 105 | ] 106 | 107 | [[package]] 108 | name = "itoa" 109 | version = "0.4.4" 110 | source = "registry+https://github.com/rust-lang/crates.io-index" 111 | 112 | [[package]] 113 | name = "kernel32-sys" 114 | version = "0.2.2" 115 | source = "registry+https://github.com/rust-lang/crates.io-index" 116 | dependencies = [ 117 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 118 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 119 | ] 120 | 121 | [[package]] 122 | name = "lazy_static" 123 | version = "1.3.0" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | 126 | [[package]] 127 | name = "libc" 128 | version = "0.2.62" 129 | source = "registry+https://github.com/rust-lang/crates.io-index" 130 | 131 | [[package]] 132 | name = "log" 133 | version = "0.4.8" 134 | source = "registry+https://github.com/rust-lang/crates.io-index" 135 | dependencies = [ 136 | "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 137 | ] 138 | 139 | [[package]] 140 | name = "matches" 141 | version = "0.1.8" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | 144 | [[package]] 145 | name = "memchr" 146 | version = "2.2.1" 147 | source = "registry+https://github.com/rust-lang/crates.io-index" 148 | 149 | [[package]] 150 | name = "mio" 151 | version = "0.6.19" 152 | source = "registry+https://github.com/rust-lang/crates.io-index" 153 | dependencies = [ 154 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 155 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 156 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 157 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 158 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 159 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 160 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 161 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 162 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 163 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 164 | ] 165 | 166 | [[package]] 167 | name = "miow" 168 | version = "0.2.1" 169 | source = "registry+https://github.com/rust-lang/crates.io-index" 170 | dependencies = [ 171 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 172 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 173 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 174 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 175 | ] 176 | 177 | [[package]] 178 | name = "net2" 179 | version = "0.2.33" 180 | source = "registry+https://github.com/rust-lang/crates.io-index" 181 | dependencies = [ 182 | "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 183 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 184 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 185 | ] 186 | 187 | [[package]] 188 | name = "percent-encoding" 189 | version = "1.0.1" 190 | source = "registry+https://github.com/rust-lang/crates.io-index" 191 | 192 | [[package]] 193 | name = "proc-macro2" 194 | version = "1.0.1" 195 | source = "registry+https://github.com/rust-lang/crates.io-index" 196 | dependencies = [ 197 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 198 | ] 199 | 200 | [[package]] 201 | name = "quick-error" 202 | version = "1.2.2" 203 | source = "registry+https://github.com/rust-lang/crates.io-index" 204 | 205 | [[package]] 206 | name = "quote" 207 | version = "1.0.1" 208 | source = "registry+https://github.com/rust-lang/crates.io-index" 209 | dependencies = [ 210 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 211 | ] 212 | 213 | [[package]] 214 | name = "rand" 215 | version = "0.4.6" 216 | source = "registry+https://github.com/rust-lang/crates.io-index" 217 | dependencies = [ 218 | "fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 219 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 220 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 221 | "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 222 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 223 | ] 224 | 225 | [[package]] 226 | name = "rand_core" 227 | version = "0.3.1" 228 | source = "registry+https://github.com/rust-lang/crates.io-index" 229 | dependencies = [ 230 | "rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 231 | ] 232 | 233 | [[package]] 234 | name = "rand_core" 235 | version = "0.4.2" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | 238 | [[package]] 239 | name = "rdrand" 240 | version = "0.4.0" 241 | source = "registry+https://github.com/rust-lang/crates.io-index" 242 | dependencies = [ 243 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 244 | ] 245 | 246 | [[package]] 247 | name = "regex" 248 | version = "1.2.1" 249 | source = "registry+https://github.com/rust-lang/crates.io-index" 250 | dependencies = [ 251 | "aho-corasick 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)", 252 | "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 253 | "regex-syntax 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 254 | "thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 255 | ] 256 | 257 | [[package]] 258 | name = "regex-syntax" 259 | version = "0.6.11" 260 | source = "registry+https://github.com/rust-lang/crates.io-index" 261 | 262 | [[package]] 263 | name = "ryu" 264 | version = "1.0.0" 265 | source = "registry+https://github.com/rust-lang/crates.io-index" 266 | 267 | [[package]] 268 | name = "serde" 269 | version = "1.0.99" 270 | source = "registry+https://github.com/rust-lang/crates.io-index" 271 | 272 | [[package]] 273 | name = "serde_derive" 274 | version = "1.0.99" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | dependencies = [ 277 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 278 | "quote 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 279 | "syn 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 280 | ] 281 | 282 | [[package]] 283 | name = "serde_json" 284 | version = "1.0.40" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | dependencies = [ 287 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 288 | "ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 289 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 290 | ] 291 | 292 | [[package]] 293 | name = "server" 294 | version = "0.1.0" 295 | dependencies = [ 296 | "env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", 297 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 298 | "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 299 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", 300 | "ws 0.7.6 (git+https://github.com/leo-lb/ws-rs?branch=stable)", 301 | ] 302 | 303 | [[package]] 304 | name = "sha1" 305 | version = "0.6.0" 306 | source = "registry+https://github.com/rust-lang/crates.io-index" 307 | 308 | [[package]] 309 | name = "slab" 310 | version = "0.3.0" 311 | source = "registry+https://github.com/rust-lang/crates.io-index" 312 | 313 | [[package]] 314 | name = "slab" 315 | version = "0.4.2" 316 | source = "registry+https://github.com/rust-lang/crates.io-index" 317 | 318 | [[package]] 319 | name = "smallvec" 320 | version = "0.6.10" 321 | source = "registry+https://github.com/rust-lang/crates.io-index" 322 | 323 | [[package]] 324 | name = "syn" 325 | version = "1.0.2" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | dependencies = [ 328 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 329 | "quote 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 331 | ] 332 | 333 | [[package]] 334 | name = "termcolor" 335 | version = "1.0.5" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | dependencies = [ 338 | "wincolor 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 339 | ] 340 | 341 | [[package]] 342 | name = "thread_local" 343 | version = "0.3.6" 344 | source = "registry+https://github.com/rust-lang/crates.io-index" 345 | dependencies = [ 346 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 347 | ] 348 | 349 | [[package]] 350 | name = "unicode-bidi" 351 | version = "0.3.4" 352 | source = "registry+https://github.com/rust-lang/crates.io-index" 353 | dependencies = [ 354 | "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 355 | ] 356 | 357 | [[package]] 358 | name = "unicode-normalization" 359 | version = "0.1.8" 360 | source = "registry+https://github.com/rust-lang/crates.io-index" 361 | dependencies = [ 362 | "smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)", 363 | ] 364 | 365 | [[package]] 366 | name = "unicode-xid" 367 | version = "0.2.0" 368 | source = "registry+https://github.com/rust-lang/crates.io-index" 369 | 370 | [[package]] 371 | name = "url" 372 | version = "1.7.2" 373 | source = "registry+https://github.com/rust-lang/crates.io-index" 374 | dependencies = [ 375 | "idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 376 | "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 377 | "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 378 | ] 379 | 380 | [[package]] 381 | name = "winapi" 382 | version = "0.2.8" 383 | source = "registry+https://github.com/rust-lang/crates.io-index" 384 | 385 | [[package]] 386 | name = "winapi" 387 | version = "0.3.7" 388 | source = "registry+https://github.com/rust-lang/crates.io-index" 389 | dependencies = [ 390 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 391 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 392 | ] 393 | 394 | [[package]] 395 | name = "winapi-build" 396 | version = "0.1.1" 397 | source = "registry+https://github.com/rust-lang/crates.io-index" 398 | 399 | [[package]] 400 | name = "winapi-i686-pc-windows-gnu" 401 | version = "0.4.0" 402 | source = "registry+https://github.com/rust-lang/crates.io-index" 403 | 404 | [[package]] 405 | name = "winapi-util" 406 | version = "0.1.2" 407 | source = "registry+https://github.com/rust-lang/crates.io-index" 408 | dependencies = [ 409 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 410 | ] 411 | 412 | [[package]] 413 | name = "winapi-x86_64-pc-windows-gnu" 414 | version = "0.4.0" 415 | source = "registry+https://github.com/rust-lang/crates.io-index" 416 | 417 | [[package]] 418 | name = "wincolor" 419 | version = "1.0.2" 420 | source = "registry+https://github.com/rust-lang/crates.io-index" 421 | dependencies = [ 422 | "winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 423 | "winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 424 | ] 425 | 426 | [[package]] 427 | name = "ws" 428 | version = "0.7.6" 429 | source = "git+https://github.com/leo-lb/ws-rs?branch=stable#152dc963879c64b253fb8d8a87c30f013c0e769b" 430 | dependencies = [ 431 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 432 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 433 | "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 434 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 435 | "mio 0.6.19 (registry+https://github.com/rust-lang/crates.io-index)", 436 | "rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 437 | "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 438 | "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 439 | "url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 440 | ] 441 | 442 | [[package]] 443 | name = "ws2_32-sys" 444 | version = "0.2.1" 445 | source = "registry+https://github.com/rust-lang/crates.io-index" 446 | dependencies = [ 447 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 448 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 449 | ] 450 | 451 | [metadata] 452 | "checksum aho-corasick 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)" = "58fb5e95d83b38284460a5fda7d6470aa0b8844d283a0b614b8535e880800d2d" 453 | "checksum atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "1803c647a3ec87095e7ae7acfca019e98de5ec9a7d01343f611cf3152ed71a90" 454 | "checksum bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d155346769a6855b86399e9bc3814ab343cd3d62c7e985113d46a0ec3c281fd" 455 | "checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5" 456 | "checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" 457 | "checksum cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "b486ce3ccf7ffd79fdeb678eac06a9e6c09fc88d33836340becb8fffe87c5e33" 458 | "checksum env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3" 459 | "checksum fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" 460 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 461 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 462 | "checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 463 | "checksum humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3ca7e5f2e110db35f93b837c81797f3714500b81d517bf20c431b16d3ca4f114" 464 | "checksum idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" 465 | "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" 466 | "checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f" 467 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 468 | "checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14" 469 | "checksum libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)" = "34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba" 470 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 471 | "checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" 472 | "checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e" 473 | "checksum mio 0.6.19 (registry+https://github.com/rust-lang/crates.io-index)" = "83f51996a3ed004ef184e16818edc51fadffe8e7ca68be67f9dee67d84d0ff23" 474 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 475 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" 476 | "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" 477 | "checksum proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c5c2380ae88876faae57698be9e9775e3544decad214599c3a6266cca6ac802" 478 | "checksum quick-error 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9274b940887ce9addde99c4eee6b5c44cc494b182b97e73dc8ffdcb3397fd3f0" 479 | "checksum quote 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "49d77c41ca8767f2f41394c11a4eebccab83da25e7cc035387a3125f02be90a3" 480 | "checksum rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" 481 | "checksum rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" 482 | "checksum rand_core 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" 483 | "checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" 484 | "checksum regex 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88c3d9193984285d544df4a30c23a4e62ead42edf70a4452ceb76dac1ce05c26" 485 | "checksum regex-syntax 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "b143cceb2ca5e56d5671988ef8b15615733e7ee16cd348e064333b251b89343f" 486 | "checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997" 487 | "checksum serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "fec2851eb56d010dc9a21b89ca53ee75e6528bab60c11e89d38390904982da9f" 488 | "checksum serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "cb4dc18c61206b08dc98216c98faa0232f4337e1e1b8574551d5bad29ea1b425" 489 | "checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704" 490 | "checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" 491 | "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" 492 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 493 | "checksum smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7" 494 | "checksum syn 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2ae5cd13590144ea968ba5d5520da7a4c08415861014399b5b349f74591c375f" 495 | "checksum termcolor 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "96d6098003bde162e4277c70665bd87c326f5a0c3f3fbfb285787fa482d54e6e" 496 | "checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b" 497 | "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" 498 | "checksum unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "141339a08b982d942be2ca06ff8b076563cbe223d1befd5450716790d44e2426" 499 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 500 | "checksum url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" 501 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 502 | "checksum winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770" 503 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 504 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 505 | "checksum winapi-util 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7168bab6e1daee33b4557efd0e95d5ca70a03706d39fa5f3fe7a236f584b03c9" 506 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 507 | "checksum wincolor 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "96f5016b18804d24db43cebf3c77269e7569b8954a8464501c216cc5e070eaa9" 508 | "checksum ws 0.7.6 (git+https://github.com/leo-lb/ws-rs?branch=stable)" = "" 509 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 510 | -------------------------------------------------------------------------------- /web/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "anymap" 5 | version = "0.12.1" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | 8 | [[package]] 9 | name = "autocfg" 10 | version = "0.1.6" 11 | source = "registry+https://github.com/rust-lang/crates.io-index" 12 | 13 | [[package]] 14 | name = "backtrace" 15 | version = "0.3.35" 16 | source = "registry+https://github.com/rust-lang/crates.io-index" 17 | dependencies = [ 18 | "backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)", 19 | "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 20 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 21 | "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 22 | ] 23 | 24 | [[package]] 25 | name = "backtrace-sys" 26 | version = "0.1.31" 27 | source = "registry+https://github.com/rust-lang/crates.io-index" 28 | dependencies = [ 29 | "cc 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", 30 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 31 | ] 32 | 33 | [[package]] 34 | name = "base-x" 35 | version = "0.2.5" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | 38 | [[package]] 39 | name = "bincode" 40 | version = "1.0.1" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | dependencies = [ 43 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 44 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 45 | ] 46 | 47 | [[package]] 48 | name = "boolinator" 49 | version = "2.4.0" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | 52 | [[package]] 53 | name = "bumpalo" 54 | version = "2.6.0" 55 | source = "registry+https://github.com/rust-lang/crates.io-index" 56 | 57 | [[package]] 58 | name = "byteorder" 59 | version = "1.3.2" 60 | source = "registry+https://github.com/rust-lang/crates.io-index" 61 | 62 | [[package]] 63 | name = "bytes" 64 | version = "0.4.12" 65 | source = "registry+https://github.com/rust-lang/crates.io-index" 66 | dependencies = [ 67 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 68 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 69 | ] 70 | 71 | [[package]] 72 | name = "c2-chacha" 73 | version = "0.2.2" 74 | source = "registry+https://github.com/rust-lang/crates.io-index" 75 | dependencies = [ 76 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 77 | "ppv-lite86 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 78 | ] 79 | 80 | [[package]] 81 | name = "cc" 82 | version = "1.0.40" 83 | source = "registry+https://github.com/rust-lang/crates.io-index" 84 | 85 | [[package]] 86 | name = "cfg-if" 87 | version = "0.1.9" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | 90 | [[package]] 91 | name = "discard" 92 | version = "1.0.4" 93 | source = "registry+https://github.com/rust-lang/crates.io-index" 94 | 95 | [[package]] 96 | name = "failure" 97 | version = "0.1.5" 98 | source = "registry+https://github.com/rust-lang/crates.io-index" 99 | dependencies = [ 100 | "backtrace 0.3.35 (registry+https://github.com/rust-lang/crates.io-index)", 101 | "failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 102 | ] 103 | 104 | [[package]] 105 | name = "failure_derive" 106 | version = "0.1.5" 107 | source = "registry+https://github.com/rust-lang/crates.io-index" 108 | dependencies = [ 109 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 110 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 111 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 112 | "synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", 113 | ] 114 | 115 | [[package]] 116 | name = "fnv" 117 | version = "1.0.6" 118 | source = "registry+https://github.com/rust-lang/crates.io-index" 119 | 120 | [[package]] 121 | name = "getrandom" 122 | version = "0.1.11" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | dependencies = [ 125 | "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 126 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 127 | "stdweb 0.4.18 (registry+https://github.com/rust-lang/crates.io-index)", 128 | "wasi 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 129 | ] 130 | 131 | [[package]] 132 | name = "http" 133 | version = "0.1.18" 134 | source = "registry+https://github.com/rust-lang/crates.io-index" 135 | dependencies = [ 136 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 137 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 138 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 139 | ] 140 | 141 | [[package]] 142 | name = "indexmap" 143 | version = "1.1.0" 144 | source = "registry+https://github.com/rust-lang/crates.io-index" 145 | 146 | [[package]] 147 | name = "iovec" 148 | version = "0.1.2" 149 | source = "registry+https://github.com/rust-lang/crates.io-index" 150 | dependencies = [ 151 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 152 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 153 | ] 154 | 155 | [[package]] 156 | name = "itoa" 157 | version = "0.4.4" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | 160 | [[package]] 161 | name = "lazy_static" 162 | version = "1.3.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | 165 | [[package]] 166 | name = "libc" 167 | version = "0.2.62" 168 | source = "registry+https://github.com/rust-lang/crates.io-index" 169 | 170 | [[package]] 171 | name = "log" 172 | version = "0.4.8" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | dependencies = [ 175 | "cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 176 | ] 177 | 178 | [[package]] 179 | name = "ppv-lite86" 180 | version = "0.2.5" 181 | source = "registry+https://github.com/rust-lang/crates.io-index" 182 | 183 | [[package]] 184 | name = "proc-macro-hack" 185 | version = "0.5.9" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | dependencies = [ 188 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 189 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 190 | "syn 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 191 | ] 192 | 193 | [[package]] 194 | name = "proc-macro-nested" 195 | version = "0.1.3" 196 | source = "registry+https://github.com/rust-lang/crates.io-index" 197 | 198 | [[package]] 199 | name = "proc-macro2" 200 | version = "0.4.30" 201 | source = "registry+https://github.com/rust-lang/crates.io-index" 202 | dependencies = [ 203 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 204 | ] 205 | 206 | [[package]] 207 | name = "proc-macro2" 208 | version = "1.0.1" 209 | source = "registry+https://github.com/rust-lang/crates.io-index" 210 | dependencies = [ 211 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 212 | ] 213 | 214 | [[package]] 215 | name = "quote" 216 | version = "0.6.13" 217 | source = "registry+https://github.com/rust-lang/crates.io-index" 218 | dependencies = [ 219 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 220 | ] 221 | 222 | [[package]] 223 | name = "quote" 224 | version = "1.0.2" 225 | source = "registry+https://github.com/rust-lang/crates.io-index" 226 | dependencies = [ 227 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 228 | ] 229 | 230 | [[package]] 231 | name = "rand" 232 | version = "0.7.0" 233 | source = "registry+https://github.com/rust-lang/crates.io-index" 234 | dependencies = [ 235 | "getrandom 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 236 | "libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)", 237 | "rand_chacha 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 238 | "rand_core 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 239 | "rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 240 | ] 241 | 242 | [[package]] 243 | name = "rand_chacha" 244 | version = "0.2.1" 245 | source = "registry+https://github.com/rust-lang/crates.io-index" 246 | dependencies = [ 247 | "c2-chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 248 | "rand_core 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 249 | ] 250 | 251 | [[package]] 252 | name = "rand_core" 253 | version = "0.5.0" 254 | source = "registry+https://github.com/rust-lang/crates.io-index" 255 | dependencies = [ 256 | "getrandom 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 257 | ] 258 | 259 | [[package]] 260 | name = "rand_hc" 261 | version = "0.2.0" 262 | source = "registry+https://github.com/rust-lang/crates.io-index" 263 | dependencies = [ 264 | "rand_core 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 265 | ] 266 | 267 | [[package]] 268 | name = "rustc-demangle" 269 | version = "0.1.16" 270 | source = "registry+https://github.com/rust-lang/crates.io-index" 271 | 272 | [[package]] 273 | name = "rustc_version" 274 | version = "0.2.3" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | dependencies = [ 277 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 278 | ] 279 | 280 | [[package]] 281 | name = "ryu" 282 | version = "1.0.0" 283 | source = "registry+https://github.com/rust-lang/crates.io-index" 284 | 285 | [[package]] 286 | name = "semver" 287 | version = "0.9.0" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | dependencies = [ 290 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 291 | ] 292 | 293 | [[package]] 294 | name = "semver-parser" 295 | version = "0.7.0" 296 | source = "registry+https://github.com/rust-lang/crates.io-index" 297 | 298 | [[package]] 299 | name = "serde" 300 | version = "1.0.99" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | dependencies = [ 303 | "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 304 | ] 305 | 306 | [[package]] 307 | name = "serde_derive" 308 | version = "1.0.99" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | dependencies = [ 311 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 312 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 313 | "syn 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 314 | ] 315 | 316 | [[package]] 317 | name = "serde_json" 318 | version = "1.0.40" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | dependencies = [ 321 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 322 | "ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 323 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 324 | ] 325 | 326 | [[package]] 327 | name = "sha1" 328 | version = "0.6.0" 329 | source = "registry+https://github.com/rust-lang/crates.io-index" 330 | 331 | [[package]] 332 | name = "slab" 333 | version = "0.4.2" 334 | source = "registry+https://github.com/rust-lang/crates.io-index" 335 | 336 | [[package]] 337 | name = "stdweb" 338 | version = "0.4.18" 339 | source = "registry+https://github.com/rust-lang/crates.io-index" 340 | dependencies = [ 341 | "discard 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 342 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 343 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 344 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", 345 | "stdweb-derive 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 346 | "stdweb-internal-macros 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", 347 | "stdweb-internal-runtime 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 348 | "wasm-bindgen 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 349 | ] 350 | 351 | [[package]] 352 | name = "stdweb-derive" 353 | version = "0.5.1" 354 | source = "registry+https://github.com/rust-lang/crates.io-index" 355 | dependencies = [ 356 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 357 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 358 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 359 | "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 360 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 361 | ] 362 | 363 | [[package]] 364 | name = "stdweb-internal-macros" 365 | version = "0.2.7" 366 | source = "registry+https://github.com/rust-lang/crates.io-index" 367 | dependencies = [ 368 | "base-x 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 369 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 370 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 371 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 372 | "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 373 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", 374 | "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 375 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 376 | ] 377 | 378 | [[package]] 379 | name = "stdweb-internal-runtime" 380 | version = "0.1.4" 381 | source = "registry+https://github.com/rust-lang/crates.io-index" 382 | 383 | [[package]] 384 | name = "syn" 385 | version = "0.15.44" 386 | source = "registry+https://github.com/rust-lang/crates.io-index" 387 | dependencies = [ 388 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 389 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 390 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 391 | ] 392 | 393 | [[package]] 394 | name = "syn" 395 | version = "1.0.4" 396 | source = "registry+https://github.com/rust-lang/crates.io-index" 397 | dependencies = [ 398 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 399 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 400 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 401 | ] 402 | 403 | [[package]] 404 | name = "synstructure" 405 | version = "0.10.2" 406 | source = "registry+https://github.com/rust-lang/crates.io-index" 407 | dependencies = [ 408 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 409 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 410 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 411 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 412 | ] 413 | 414 | [[package]] 415 | name = "unicode-xid" 416 | version = "0.1.0" 417 | source = "registry+https://github.com/rust-lang/crates.io-index" 418 | 419 | [[package]] 420 | name = "unicode-xid" 421 | version = "0.2.0" 422 | source = "registry+https://github.com/rust-lang/crates.io-index" 423 | 424 | [[package]] 425 | name = "wasi" 426 | version = "0.5.0" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | 429 | [[package]] 430 | name = "wasm-bindgen" 431 | version = "0.2.42" 432 | source = "registry+https://github.com/rust-lang/crates.io-index" 433 | dependencies = [ 434 | "wasm-bindgen-macro 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 435 | ] 436 | 437 | [[package]] 438 | name = "wasm-bindgen-backend" 439 | version = "0.2.42" 440 | source = "registry+https://github.com/rust-lang/crates.io-index" 441 | dependencies = [ 442 | "bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 443 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 444 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 445 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 446 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 447 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 448 | "wasm-bindgen-shared 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 449 | ] 450 | 451 | [[package]] 452 | name = "wasm-bindgen-macro" 453 | version = "0.2.42" 454 | source = "registry+https://github.com/rust-lang/crates.io-index" 455 | dependencies = [ 456 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 457 | "wasm-bindgen-macro-support 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 458 | ] 459 | 460 | [[package]] 461 | name = "wasm-bindgen-macro-support" 462 | version = "0.2.42" 463 | source = "registry+https://github.com/rust-lang/crates.io-index" 464 | dependencies = [ 465 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 466 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 467 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 468 | "wasm-bindgen-backend 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 469 | "wasm-bindgen-shared 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 470 | ] 471 | 472 | [[package]] 473 | name = "wasm-bindgen-shared" 474 | version = "0.2.42" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | 477 | [[package]] 478 | name = "web" 479 | version = "0.1.0" 480 | dependencies = [ 481 | "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 482 | "http 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 483 | "rand 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 484 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 485 | "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 486 | "yew 0.9.0 (git+https://github.com/leo-lb/yew.git?branch=more_fetch_options)", 487 | ] 488 | 489 | [[package]] 490 | name = "winapi" 491 | version = "0.2.8" 492 | source = "registry+https://github.com/rust-lang/crates.io-index" 493 | 494 | [[package]] 495 | name = "yew" 496 | version = "0.9.0" 497 | source = "git+https://github.com/leo-lb/yew.git?branch=more_fetch_options#c61fdf63bdb2eaf815fe293f79947af269f75105" 498 | dependencies = [ 499 | "anymap 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", 500 | "bincode 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 501 | "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 502 | "http 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 503 | "indexmap 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 504 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 505 | "proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", 506 | "proc-macro-nested 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 507 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", 508 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", 509 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 510 | "stdweb 0.4.18 (registry+https://github.com/rust-lang/crates.io-index)", 511 | "wasm-bindgen 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)", 512 | "yew-macro 0.9.0 (git+https://github.com/leo-lb/yew.git?branch=more_fetch_options)", 513 | ] 514 | 515 | [[package]] 516 | name = "yew-macro" 517 | version = "0.9.0" 518 | source = "git+https://github.com/leo-lb/yew.git?branch=more_fetch_options#c61fdf63bdb2eaf815fe293f79947af269f75105" 519 | dependencies = [ 520 | "autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 521 | "boolinator 2.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 522 | "lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 523 | "proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", 524 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 525 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 526 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 527 | ] 528 | 529 | [metadata] 530 | "checksum anymap 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "33954243bd79057c2de7338850b85983a44588021f8a5fee574a8888c6de4344" 531 | "checksum autocfg 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "b671c8fb71b457dd4ae18c4ba1e59aa81793daacc361d82fcd410cef0d491875" 532 | "checksum backtrace 0.3.35 (registry+https://github.com/rust-lang/crates.io-index)" = "1371048253fa3bac6704bfd6bbfc922ee9bdcee8881330d40f308b81cc5adc55" 533 | "checksum backtrace-sys 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)" = "82a830b4ef2d1124a711c71d263c5abdc710ef8e907bd508c88be475cebc422b" 534 | "checksum base-x 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "76f4eae81729e69bb1819a26c6caac956cc429238388091f98cb6cd858f16443" 535 | "checksum bincode 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9f2fb9e29e72fd6bc12071533d5dc7664cb01480c59406f656d7ac25c7bd8ff7" 536 | "checksum boolinator 2.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cfa8873f51c92e232f9bac4065cddef41b714152812bfc5f7672ba16d6ef8cd9" 537 | "checksum bumpalo 2.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ad807f2fc2bf185eeb98ff3a901bd46dc5ad58163d0fa4577ba0d25674d71708" 538 | "checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5" 539 | "checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" 540 | "checksum c2-chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7d64d04786e0f528460fc884753cf8dddcc466be308f6026f8e355c41a0e4101" 541 | "checksum cc 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "b548a4ee81fccb95919d4e22cfea83c7693ebfd78f0495493178db20b3139da7" 542 | "checksum cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "b486ce3ccf7ffd79fdeb678eac06a9e6c09fc88d33836340becb8fffe87c5e33" 543 | "checksum discard 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" 544 | "checksum failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2" 545 | "checksum failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1" 546 | "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" 547 | "checksum getrandom 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "fc344b02d3868feb131e8b5fe2b9b0a1cc42942679af493061fc13b853243872" 548 | "checksum http 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "372bcb56f939e449117fb0869c2e8fd8753a8223d92a172c6e808cf123a5b6e4" 549 | "checksum indexmap 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356" 550 | "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" 551 | "checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f" 552 | "checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14" 553 | "checksum libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)" = "34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba" 554 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 555 | "checksum ppv-lite86 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e3cbf9f658cdb5000fcf6f362b8ea2ba154b9f146a61c7a20d647034c6b6561b" 556 | "checksum proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e688f31d92ffd7c1ddc57a1b4e6d773c0f2a14ee437a4b0a4f5a69c80eb221c8" 557 | "checksum proc-macro-nested 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "369a6ed065f249a159e06c45752c780bda2fb53c995718f9e484d08daa9eb42e" 558 | "checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" 559 | "checksum proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c5c2380ae88876faae57698be9e9775e3544decad214599c3a6266cca6ac802" 560 | "checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" 561 | "checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe" 562 | "checksum rand 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d47eab0e83d9693d40f825f86948aa16eff6750ead4bdffc4ab95b8b3a7f052c" 563 | "checksum rand_chacha 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "03a2a90da8c7523f554344f921aa97283eadf6ac484a6d2a7d0212fa7f8d6853" 564 | "checksum rand_core 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "615e683324e75af5d43d8f7a39ffe3ee4a9dc42c5c701167a71dc59c3a493aca" 565 | "checksum rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" 566 | "checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783" 567 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 568 | "checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997" 569 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 570 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 571 | "checksum serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "fec2851eb56d010dc9a21b89ca53ee75e6528bab60c11e89d38390904982da9f" 572 | "checksum serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "cb4dc18c61206b08dc98216c98faa0232f4337e1e1b8574551d5bad29ea1b425" 573 | "checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704" 574 | "checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" 575 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 576 | "checksum stdweb 0.4.18 (registry+https://github.com/rust-lang/crates.io-index)" = "a68c0ce28cf7400ed022e18da3c4591e14e1df02c70e93573cc59921b3923aeb" 577 | "checksum stdweb-derive 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0e21ebd9179de08f2300a65454268a17ea3de204627458588c84319c4def3930" 578 | "checksum stdweb-internal-macros 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "e68f7d08b76979a43e93fe043b66d2626e35d41d68b0b85519202c6dd8ac59fa" 579 | "checksum stdweb-internal-runtime 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d52317523542cc0af5b7e31017ad0f7d1e78da50455e38d5657cd17754f617da" 580 | "checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" 581 | "checksum syn 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c65d951ab12d976b61a41cf9ed4531fc19735c6e6d84a4bb1453711e762ec731" 582 | "checksum synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f" 583 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 584 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 585 | "checksum wasi 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fd5442abcac6525a045cc8c795aedb60da7a2e5e89c7bf18a0d5357849bb23c7" 586 | "checksum wasm-bindgen 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "ffde3534e5fa6fd936e3260cd62cd644b8656320e369388f9303c955895e35d4" 587 | "checksum wasm-bindgen-backend 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "40c0543374a7ae881cdc5d32d19de28d1d1929e92263ffa7e31712cc2d53f9f1" 588 | "checksum wasm-bindgen-macro 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "f914c94c2c5f4c9364510ca2429e59c92157ec89429243bcc245e983db990a71" 589 | "checksum wasm-bindgen-macro-support 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "9168c413491e4233db7b6884f09a43beb00c14d11d947ffd165242daa48a2385" 590 | "checksum wasm-bindgen-shared 0.2.42 (registry+https://github.com/rust-lang/crates.io-index)" = "326c32126e1a157b6ced7400061a84ac5b11182b2cda6edad7314eb3ae9ac9fe" 591 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 592 | "checksum yew 0.9.0 (git+https://github.com/leo-lb/yew.git?branch=more_fetch_options)" = "" 593 | "checksum yew-macro 0.9.0 (git+https://github.com/leo-lb/yew.git?branch=more_fetch_options)" = "" 594 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published 637 | by the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | --------------------------------------------------------------------------------