Wire up project for working with actix.
This commit is contained in:
parent
ecbf7b4cdc
commit
1fa6c55d1d
|
@ -14,3 +14,8 @@ Cargo.lock
|
||||||
# MSVC Windows builds of rustc generate these, which store debugging information
|
# MSVC Windows builds of rustc generate these, which store debugging information
|
||||||
*.pdb
|
*.pdb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Added by cargo
|
||||||
|
|
||||||
|
/target
|
||||||
|
|
|
@ -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"
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
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:
|
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:
|
||||||
|
|
||||||
|
|
11
README.md
11
README.md
|
@ -1,3 +1,14 @@
|
||||||
# mirror-server
|
# 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`
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in New Issue