mirror of
https://github.com/Y2Z/monolith.git
synced 2025-12-22 10:27:12 +00:00
bump version number (2.10.1 -> 2.11.0), update README and crates
This commit is contained in:
26
Cargo.lock
generated
26
Cargo.lock
generated
@@ -120,9 +120,9 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
||||
|
||||
[[package]]
|
||||
name = "assert_cmd"
|
||||
version = "2.0.16"
|
||||
version = "2.0.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "dc1835b7f27878de8525dc71410b5a31cdcc5f230aed5ba5df968e09c201b23d"
|
||||
checksum = "2bd389a4b2970a01282ee455294913c0a43724daedcd1a24c3eb0ec1c1320b66"
|
||||
dependencies = [
|
||||
"anstyle",
|
||||
"bstr",
|
||||
@@ -339,9 +339,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "chrono"
|
||||
version = "0.4.40"
|
||||
version = "0.4.41"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
|
||||
checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
|
||||
dependencies = [
|
||||
"android-tzdata",
|
||||
"iana-time-zone",
|
||||
@@ -353,9 +353,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clap"
|
||||
version = "4.5.35"
|
||||
version = "4.5.37"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d8aa86934b44c19c50f87cc2790e19f54f7a67aedb64101c2e1a2e5ecfb73944"
|
||||
checksum = "eccb054f56cbd38340b380d4a8e69ef1f02f1af43db2f0cc817a4774d80ae071"
|
||||
dependencies = [
|
||||
"clap_builder",
|
||||
"clap_derive",
|
||||
@@ -363,9 +363,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clap_builder"
|
||||
version = "4.5.35"
|
||||
version = "4.5.37"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2414dbb2dd0695280da6ea9261e327479e9d37b0630f6b53ba2a11c60c679fd9"
|
||||
checksum = "efd9466fac8543255d3b1fcad4762c5e116ffe808c8a3043d4263cd4fd4862a2"
|
||||
dependencies = [
|
||||
"anstream",
|
||||
"anstyle",
|
||||
@@ -1673,7 +1673,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "monolith"
|
||||
version = "2.10.1"
|
||||
version = "2.11.0"
|
||||
dependencies = [
|
||||
"assert_cmd",
|
||||
"atty",
|
||||
@@ -2186,9 +2186,9 @@ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
||||
|
||||
[[package]]
|
||||
name = "redb"
|
||||
version = "2.4.0"
|
||||
version = "2.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ea0a72cd7140de9fc3e318823b883abf819c20d478ec89ce880466dc2ef263c6"
|
||||
checksum = "34bc6763177194266fc3773e2b2bb3693f7b02fdf461e285aa33202e3164b74e"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
@@ -2460,9 +2460,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "sha2"
|
||||
version = "0.10.8"
|
||||
version = "0.10.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
|
||||
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"cpufeatures",
|
||||
|
||||
55
Cargo.toml
55
Cargo.toml
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "monolith"
|
||||
version = "2.10.1"
|
||||
version = "2.11.0"
|
||||
authors = [
|
||||
"Sunshine <snshn@tutanota.com>",
|
||||
"Mahdi Robatipoor <mahdi.robatipoor@gmail.com>",
|
||||
@@ -16,29 +16,28 @@ repository = "https://github.com/Y2Z/monolith"
|
||||
readme = "README.md"
|
||||
keywords = ["web", "http", "html", "download", "command-line"]
|
||||
categories = ["command-line-utilities", "web-programming"]
|
||||
include = [
|
||||
"src/*.rs",
|
||||
"Cargo.toml",
|
||||
]
|
||||
include = ["src/*.rs", "Cargo.toml"]
|
||||
license = "CC0-1.0"
|
||||
|
||||
[dependencies]
|
||||
atty = "0.2.14" # Used for highlighting network errors
|
||||
base64 = "0.22.1" # Used for integrity attributes
|
||||
chrono = "0.4.40" # Used for formatting timestamps
|
||||
clap = { version = "4.5.35", features = ["derive"], optional = true } # Used for processing CLI arguments
|
||||
cssparser = "0.35.0" # Used for dealing with CSS
|
||||
directories = { version = "6.0.0", optional = true } # Used for GUI
|
||||
druid = { version = "0.8.3", optional = true } # Used for GUI
|
||||
encoding_rs = "0.8.35" # Used for parsing and converting document charsets
|
||||
html5ever = "0.29.1" # Used for all things DOM
|
||||
markup5ever_rcdom = "=0.5.0-unofficial" # Used for manipulating DOM
|
||||
percent-encoding = "2.3.1" # Used for encoding URLs
|
||||
sha2 = "0.10.8" # Used for calculating checksums during integrity checks
|
||||
redb = "2.4.0" # Used for on-disk caching of remote assets
|
||||
tempfile = { version = "3.19.1", optional = true } # Used for on-disk caching of remote assets
|
||||
url = "2.5.4" # Used for parsing URLs
|
||||
openssl = "0.10.72" # Used for static linking of the OpenSSL library
|
||||
atty = "0.2.14" # Used for highlighting network errors
|
||||
base64 = "0.22.1" # Used for integrity attributes
|
||||
chrono = "0.4.41" # Used for formatting timestamps
|
||||
clap = { version = "4.5.37", features = [
|
||||
"derive",
|
||||
], optional = true } # Used for processing CLI arguments
|
||||
cssparser = "0.35.0" # Used for dealing with CSS
|
||||
directories = { version = "6.0.0", optional = true } # Used for GUI
|
||||
druid = { version = "0.8.3", optional = true } # Used for GUI
|
||||
encoding_rs = "0.8.35" # Used for parsing and converting document charsets
|
||||
html5ever = "0.29.1" # Used for all things DOM
|
||||
markup5ever_rcdom = "=0.5.0-unofficial" # Used for manipulating DOM
|
||||
percent-encoding = "2.3.1" # Used for encoding URLs
|
||||
sha2 = "0.10.9" # Used for calculating checksums during integrity checks
|
||||
redb = "2.5.0" # Used for on-disk caching of remote assets
|
||||
tempfile = { version = "3.19.1", optional = true } # Used for on-disk caching of remote assets
|
||||
url = "2.5.4" # Used for parsing URLs
|
||||
openssl = "0.10.72" # Used for static linking of the OpenSSL library
|
||||
|
||||
# Used for unwrapping NOSCRIPT
|
||||
[dependencies.regex]
|
||||
@@ -53,13 +52,19 @@ default-features = false
|
||||
features = ["default-tls", "blocking", "gzip", "brotli", "deflate"]
|
||||
|
||||
[dev-dependencies]
|
||||
assert_cmd = "2.0.16"
|
||||
assert_cmd = "2.0.17"
|
||||
|
||||
[features]
|
||||
default = ["cli", "vendored-openssl"]
|
||||
cli = ["clap", "tempfile"] # Build a CLI tool that includes main() function
|
||||
gui = ["directories", "druid", "tempfile"] # Build a GUI executable that includes main() function
|
||||
vendored-openssl = ["openssl/vendored"] # Compile and statically link a copy of OpenSSL
|
||||
cli = ["clap", "tempfile"] # Build a CLI tool that includes main() function
|
||||
gui = [
|
||||
"directories",
|
||||
"druid",
|
||||
"tempfile",
|
||||
] # Build a GUI executable that includes main() function
|
||||
vendored-openssl = [
|
||||
"openssl/vendored",
|
||||
] # Compile and statically link a copy of OpenSSL
|
||||
|
||||
[lib]
|
||||
name = "monolith"
|
||||
|
||||
@@ -138,13 +138,13 @@ Dependencies: `libssl`, `cargo`
|
||||
<details>
|
||||
<summary>Install cargo (GNU/Linux)</summary>
|
||||
Check if cargo is installed
|
||||
|
||||
|
||||
```console
|
||||
cargo -v
|
||||
```
|
||||
|
||||
If cargo is not already installed, install and add it to your existing ```$PATH``` (paraphrasing the [official installation instructions](https://doc.rust-lang.org/cargo/getting-started/installation.html)):
|
||||
|
||||
|
||||
```console
|
||||
curl https://sh.rustup.rs -sSf | sh
|
||||
. "$HOME/.cargo/env"
|
||||
@@ -198,6 +198,7 @@ cat some-site-page.html | monolith -aIiFfcMv -b https://some.site/ - > some-site
|
||||
- `-I`: Isolate the document
|
||||
- `-j`: Exclude JavaScript
|
||||
- `-k`: Accept invalid X.509 (TLS) certificates
|
||||
- `-m`: Output in MHTML format instead of HTML
|
||||
- `-M`: Don't add timestamp and URL information
|
||||
- `-n`: Extract contents of NOSCRIPT elements
|
||||
- `-o`: Write output to `file` (use “-” for STDOUT)
|
||||
@@ -258,7 +259,7 @@ Please set `https_proxy`, `http_proxy`, and `no_proxy` environment variables.
|
||||
|
||||
---------------------------------------------------
|
||||
|
||||
### Apify Actor Usage
|
||||
### Apify Actor Usage
|
||||
|
||||
<a href="https://apify.com/snshn/monolith?fpr=snshn"><img src="https://apify.com/ext/run-on-apify.png" alt="Run Monolith Actor on Apify" width="176" height="39" /></a>
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ struct Cli {
|
||||
#[arg(short = 'k', long)]
|
||||
insecure: bool,
|
||||
|
||||
/// Output in MHTML format instead of HTML
|
||||
/// Use MHTML as output format
|
||||
#[arg(short = 'm', long)]
|
||||
mhtml: bool,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user