Skip to content

Commit 2033b1f

Browse files
committed
first working version, also published at https://crates.io/crates/iis
1 parent 7fc130f commit 2033b1f

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
66
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
77
Cargo.lock
8+
iis/.*.swp
9+
*/target/

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# rust-web-iis
2-
Set of helper functions for smooth running web server written in Rust on Internet Information Services (IIS)
2+
Set of helper functions for smooth running web server written in Rust on Internet Information Services (IIS). Inspired by [Suave IIS](https://github.com/SuaveIO/Suave.IIS).
3+
4+

iis/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "iis"
3+
version = "0.1.0"
4+
authors = ["David Podhola <david.podhola@hsharp.software>"]
5+
description = "Set of helper functions for smooth running web server written in Rust on Internet Information Services (IIS) "
6+
repository = "https://github.com/hsharpsoftware/rust-web-iis"
7+
keywords = ["www", "iis", "azure"]
8+
gitlab = { repository = "https://github.com/hsharpsoftware/rust-web-iis", branch = "master" }
9+
categories = ["web-programming"]
10+
license = "MIT"
11+
12+
[dependencies]

iis/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {}
5+
}
6+
7+
use std::env;
8+
9+
pub fn get_port() -> String {
10+
let port = match env::var("HTTP_PLATFORM_PORT") {
11+
Ok(val) => val,
12+
Err(e) => "6767".to_string(),
13+
};
14+
port
15+
}

0 commit comments

Comments
 (0)