diff --git a/.gitignore b/.gitignore index 3ca43ae..193d30e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb + + +# Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..e8a47d8 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "mirror-server" +version = "0.1.0" +edition = "2021" +authors = ["Dorian Pula "] +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" diff --git a/LICENSE b/LICENSE index 2071b23..b455c45 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2023 Dorian Pula 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: diff --git a/README.md b/README.md index 84c91de..c176389 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ # mirror-server -A simple server for mirroring HTTP requests for testing. \ No newline at end of file +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` + diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}