Wire up project for working with actix.

This commit is contained in:
Dorian 2023-01-12 09:41:47 -05:00
parent ecbf7b4cdc
commit 1fa6c55d1d
5 changed files with 40 additions and 2 deletions

5
.gitignore vendored
View File

@ -14,3 +14,8 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Added by cargo
/target

19
Cargo.toml Normal file
View File

@ -0,0 +1,19 @@
[package]
name = "mirror-server"
version = "0.1.0"
edition = "2021"
authors = ["Dorian Pula <dorian.pula@amber-penguin-software.ca>"]
description = "A simple server for mirror HTTP requests for testing."
homepage = "https://code.birch-tree.net/dorian/mirror-server"
repository = "https://code.birch-tree.net/dorian/mirror-server"
license = "MIT"
readme = "README.md"
[package.metadata.deb]
section = "web"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "4"

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) <year> <copyright holders>
Copyright (c) 2023 Dorian Pula <dorian.pula@amber-penguin-software.ca>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,3 +1,14 @@
# mirror-server
A simple server for mirroring HTTP requests for testing.
A simple server for mirroring HTTP requests for testing.
## Getting Started
* Use the latest stable version of Rust using rustup.
* Build: `cargo build`
* Test: `cargo test`
* Run the server: `cargo run -- --port=8080`
* Create a DEB package:
* Install cargo-deb: `cargo install cargo-deb`
* Create the DEB package: `cargo deb`

3
src/main.rs Normal file
View File

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