mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-22 12:25:38 +01:00
Clean up source commenting
This commit is contained in:
parent
cab17e6832
commit
a46e911ea0
@ -1,4 +1,5 @@
|
||||
/// Serves static files from a asset directory.
|
||||
//! Serves static files from a asset directory.
|
||||
|
||||
extern crate mime_guess;
|
||||
|
||||
use assets::mime_guess::{get_mime_type, octet_stream};
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// config.rs
|
||||
///
|
||||
/// Contains Config structures, as well as means of serialising them.
|
||||
//! config.rs
|
||||
//!
|
||||
//! Contains Config structures, as well as means of serialising them.
|
||||
|
||||
use toml;
|
||||
use toml::de::Error as TomlError;
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// http.rs
|
||||
///
|
||||
/// A simple wrapper around Hyper's HTTP client.
|
||||
//! http.rs
|
||||
//!
|
||||
//! A simple wrapper around Hyper's HTTP client.
|
||||
|
||||
use hyper::header::ContentLength;
|
||||
|
||||
use reqwest;
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// installer.rs
|
||||
///
|
||||
/// Contains the main installer structure, as well as high-level means of controlling it.
|
||||
//! installer.rs
|
||||
//!
|
||||
//! Contains the main installer structure, as well as high-level means of controlling it.
|
||||
|
||||
use serde_json;
|
||||
|
||||
use std::fs::File;
|
||||
|
@ -1,3 +1,8 @@
|
||||
//! main.rs
|
||||
//!
|
||||
//! The main entrypoint for the application. Orchestrates the building of the installation
|
||||
//! framework, and opens necessary HTTP servers/frontends.
|
||||
|
||||
#![windows_subsystem = "windows"]
|
||||
|
||||
#[cfg(windows)]
|
||||
@ -7,6 +12,7 @@ extern crate web_view;
|
||||
|
||||
extern crate futures;
|
||||
extern crate hyper;
|
||||
extern crate url;
|
||||
|
||||
extern crate number_prefix;
|
||||
extern crate reqwest;
|
||||
|
11
src/rest.rs
11
src/rest.rs
@ -1,8 +1,7 @@
|
||||
/// rest.rs
|
||||
///
|
||||
/// Provides a HTTP/REST server for both frontend<->backend communication, as well
|
||||
/// as talking to external applications.
|
||||
extern crate url;
|
||||
//! rest.rs
|
||||
//!
|
||||
//! Provides a HTTP/REST server for both frontend<->backend communication, as well
|
||||
//! as talking to external applications.
|
||||
|
||||
use serde_json;
|
||||
|
||||
@ -15,7 +14,7 @@ use hyper::header::{ContentLength, ContentType};
|
||||
use hyper::server::{Http, Request, Response, Service};
|
||||
use hyper::{self, Error as HyperError, Get, Post, StatusCode};
|
||||
|
||||
use self::url::form_urlencoded;
|
||||
use url::form_urlencoded;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||
|
@ -1,4 +1,7 @@
|
||||
/// github/mod.rs
|
||||
//! github/mod.rs
|
||||
//!
|
||||
//! Contains the Github API implementation of a release source.
|
||||
|
||||
use reqwest;
|
||||
use reqwest::header::UserAgent;
|
||||
use reqwest::StatusCode;
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// sources/mod.rs
|
||||
///
|
||||
/// Contains backends to various release distribution services.
|
||||
//! sources/mod.rs
|
||||
//!
|
||||
//! Contains backends to various release distribution services.
|
||||
|
||||
pub mod types;
|
||||
|
||||
pub mod github;
|
||||
|
@ -1,6 +1,7 @@
|
||||
/// types.rs
|
||||
///
|
||||
/// Contains traits that should be implemented by sources, as well as corresponding types.
|
||||
//! types.rs
|
||||
//!
|
||||
//! Contains traits that should be implemented by sources, as well as corresponding types.
|
||||
|
||||
use std::cmp::Ordering;
|
||||
|
||||
pub use semver::Version as SemverVersion;
|
||||
|
Loading…
Reference in New Issue
Block a user