diff --git a/.gitignore b/.gitignore index d4cf81c..eef1b55 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ .idea **/target/** + +/target +**/*.rs.bk diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..4be6e2f --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "downfav" +version = "0.1.0" +authors = ["Julio Biason "] +edition = "2018" + +[dependencies] diff --git a/README.md b/README.md deleted file mode 100644 index 5354d42..0000000 --- a/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Downfav - -Download your favorites/likes from Mastodon/Twitter. - -## Architecture - -This is mostly an experiment in creating microservices with Rust. - -* `template` is a microservice that receives a template name and some data and - renders the template back to disk. Uses: - * [Actic-web](https://github.com/actix/actix-web) for the web interface. - * [Clap](https://github.com/clap-rs/clap) for the command line options. - * [Log-Derive](https://github.com/elichai/log-derive) for logging. 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!"); +} diff --git a/templater/Cargo.toml b/templater/Cargo.toml deleted file mode 100644 index 2777bd2..0000000 --- a/templater/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -name = "templater" -version = "0.1.0" -authors = ["Julio Biason "] -edition = "2018" -description = "Generate files based on templates." - -[dependencies] -clap = "2.32" diff --git a/templater/src/main.rs b/templater/src/main.rs deleted file mode 100644 index 2edff91..0000000 --- a/templater/src/main.rs +++ /dev/null @@ -1,27 +0,0 @@ -use clap::App; -use clap::Arg; -use clap::crate_name; -use clap::crate_version; -use clap::crate_authors; -use clap::crate_description; - -fn main() { - let params = App::new(crate_name!()) - .version(crate_version!()) - .author(crate_authors!()) - .about(crate_description!()) - .arg(Arg::with_name("bind") - .short("b") - .long("bind") - .value_name("ADDRESS") - .help("Binding address for the service") - .takes_value(true)) - .arg(Arg::with_name("port") - .short("p") - .long("port") - .value_name("PORT") - .help("Port to bind") - .takes_value(true)) - .get_matches(); - println!("Hello, world!"); -}