Steve Klabnik 10 سال پیش
والد
کامیت
c970c7e897

+ 4 - 0
frameworks/Rust/hyper/Cargo.toml

@@ -0,0 +1,4 @@
+[package]
+name = "hello"
+version = "0.1.0"
+authors = ["Steve Klabnik <[email protected]>"]

+ 21 - 0
frameworks/Rust/hyper/benchmark_config.json

@@ -0,0 +1,21 @@
+{
+  "framework": "compojure",
+  "tests": [{
+    "default": {
+      "setup_file": "setup",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Micro",
+      "database": "Postgres",
+      "framework": "hyper",
+      "language": "Rust",
+      "orm": "Raw",
+      "platform": "Rust",
+      "webserver": "Hyper",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "Hyper",
+      "notes": ""
+    }
+  }]
+}

+ 3 - 0
frameworks/Rust/hyper/install.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+fw_depends rust

+ 7 - 0
frameworks/Rust/hyper/setup.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/main.rs
+
+cargo build --release
+
+cargo run --release &

+ 3 - 0
frameworks/Rust/hyper/src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world");
+}