Skip to content

Commit

Permalink
Merge pull request #16 from lmburns/4plebs
Browse files Browse the repository at this point in the history
Support for 4plebs
  • Loading branch information
mariot authored Aug 22, 2022
2 parents 5019fbc + 71fcb8f commit b3a2677
Show file tree
Hide file tree
Showing 5 changed files with 447 additions and 199 deletions.
23 changes: 12 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "chan-downloader"
description = "CLI to download all images/webms of a 4chan thread"
version = "0.2.1"
version = "0.3.0"
authors = ["Mariot Tsitoara <[email protected]>"]
edition = "2018"
license = "MIT"
readme = "README.md"
homepage = "https://github.com/mariot/chan-downloader"
repository = "https://github.com/mariot/chan-downloader"
keywords = ["cli", "4chan", "download", "downloader", "crawler"]
keywords = ["cli", "4chan", "4plebs", "download", "downloader", "crawler"]
categories = ["command-line-utilities"]

[lib]
Expand All @@ -20,12 +20,13 @@ name = "chan-downloader"
path = "src/bin.rs"

[dependencies]
clap = {version = "2.33.3", features = ["yaml"]}
env_logger = "0.8.2"
futures = "0.3"
indicatif = "0.15.0"
lazy_static = "1.4.0"
log = "0.4.11"
regex = "1.4.2"
reqwest = { version = "0.10", features = ["blocking"] }
tokio = { version = "0.2", features = ["full"] }
anyhow = "1.0.62"
clap = {version = "3.2.17", features = ["cargo", "default"]}
env_logger = "0.9.0"
futures = "0.3.23"
indicatif = "0.17.0"
log = "0.4.17"
once_cell = "1.13.1"
regex = "1.6.0"
reqwest = { version = "0.11.11", features = ["blocking"] }
tokio = { version = "1.20", features = ["full"] }
46 changes: 46 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
edition = "2021"
newline_style = "Unix"
tab_spaces = 4
hard_tabs = false
unstable_features = true
comment_width = 80
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = false # #[doc] -> //!
error_on_line_overflow = true # change to fix errors
error_on_unformatted = false
format_code_in_doc_comments = true
format_macro_bodies = true
format_macro_matchers = true # $a: ident -> $a:ident
format_strings = true
imports_granularity = "Crate"
imports_layout = "HorizontalVertical"
# group_imports = "StdExternalCrate" # create 3 groups
reorder_imports = true
reorder_modules = true
reorder_impl_items = true
match_arm_blocks = false
match_block_trailing_comma = true
trailing_semicolon = true # continue, break, return
overflow_delimited_expr = true
use_field_init_shorthand = true # F { x: x } -> F { x }
use_try_shorthand = true # try!() -> ()?
empty_item_single_line = true # fn foo() {}
fn_single_line = false # not fn foo() { println!() }
where_single_line = false
max_width = 106
struct_field_align_threshold = 20
struct_lit_width = 30
struct_variant_width = 60
combine_control_expr = true # if expr within fn call
condense_wildcard_suffixes = true # (_, _) -> ( .. )
merge_derives = true
spaces_around_ranges = false # 1 .. 5 -> 1..5
type_punctuation_density = "Wide" # S: Display+Debug=Foo -> spaces

color = "Always"
hex_literal_case = "Upper" # "Preserve"
# remove_nested_parens = true

# report_fixme = "Always"
# report_todo = "Always"
Loading

0 comments on commit b3a2677

Please sign in to comment.