initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/target
|
||||||
|
**/*.rs.bk
|
||||||
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[package]
|
||||||
|
name = "gopherbridge"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Jali <jali@orca-central.de>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
config = "0.9"
|
||||||
3
src/gopherbridge.rs
Normal file
3
src/gopherbridge.rs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
//! # Gopherbridge - A Bridge to display content form different sources in gopher
|
||||||
|
//! This module lists all sub modules
|
||||||
|
mod settings;
|
||||||
16
src/gopherbridge/settings.rs
Normal file
16
src/gopherbridge/settings.rs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
//! # Settings
|
||||||
|
//! Implements a settings module
|
||||||
|
//!
|
||||||
|
//! ## Examples
|
||||||
|
//!
|
||||||
|
|
||||||
|
use config;
|
||||||
|
|
||||||
|
/// Read and access the configuration for the server
|
||||||
|
/// class uses the config module to read data from a
|
||||||
|
/// toml file or the command line.
|
||||||
|
pub struct Settings {
|
||||||
|
debug: bool,
|
||||||
|
listenPort: i32,
|
||||||
|
bridges: Vec<String>
|
||||||
|
}
|
||||||
4
src/main.rs
Normal file
4
src/main.rs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user