Commit Graph

46 Commits (5ac520b4da9e768bbaf425bd823fe02aa4ef9993)

Author SHA1 Message Date
Sunshine 38a6f963ad
account for network errors, add option to ignore them 4 years ago
Sunshine bc98aca2a2
indent items in retrieval log to form a tree-like structure 4 years ago
Sunshine 5c229c51da
move functions related to URL manipulation into url.rs 4 years ago
Sunshine f6ea16b3ad
create a separate function for appending URL fragments 4 years ago
Sunshine a18df74946
refactor code and implement integrity validation 4 years ago
Sunshine edacd09dc8
store blobs instead of data URLs in cache 4 years ago
Sunshine 594ad55bd8
improve data URL media type detection 4 years ago
Sunshine c097733ae7
improve parsing of data URLs 4 years ago
Sunshine 4951fea730
implement full CSS parsing 4 years ago
Sunshine be25784297
improve SVG media type detection 4 years ago
Sunshine 479c42e1ce
improve test code structure 4 years ago
Sunshine 59a8be493d
add support for working with local assets 4 years ago
Sunshine 0d1e21e9ad
add black box tests 4 years ago
Sunshine 3d2d40e7cd
add support for data URL targets 4 years ago
Sunshine 928664dc88
correct is_valid_url to is_http_url 4 years ago
Sunshine 5c8d75539b
rename dataurl to data_url 4 years ago
rhysd 6e99ad13e7 upgrade reqwest to v0.10.0
This will improve build time and binary size as follows:

* Before

- **Compile targets**: 220
- **Build time**: `cargo build --release  1264.95s user 39.72s system 335% cpu 6:29.14 total`
- **Binary size**: 6578568 bytes

* After

- **Compile targets**: 170
- **Build time**: `cargo build --release  1130.64s user 32.15s system 359% cpu 5:23.69 total`
- **Binary size**: 6107088 bytes

* Differences

- **Compile targets**: 1.29x smaller
- **Build time**: 1.23x faster
- **Binary size**: 1.07x smaller
4 years ago
rhysd 75fb6961ed migrate to Rust 2018 4 years ago
Sunshine c7fc121c7c use clean URLs as hashmap keys 4 years ago
Emi Simpson 3d4a932ac1
Merge Y2Z/master, fix conflicts between shared-client & resolve-css 4 years ago
Emi Simpson 614af44c92
Gramatical and stylistic fixes 4 years ago
Emi Simpson 028beb821c
Rustfmt update for nightly formatter 4 years ago
Emi Simpson 76ccff80f9
Fixed failure of regex to match @imports 4 years ago
Emi Simpson a4743ca92f
Respect the --no-images flag while parsing CSS 4 years ago
Emi Simpson b96a777e8a
Merge commit '4decea7' into load-css-imports 4 years ago
Emi Simpson 4decea716c
Fixed css replacement with more than one linked asset 4 years ago
Emi Simpson 695a787206
Moved regex compilation to lazy_static 4 years ago
Emi Simpson 90e6cb1c45
Prevent crash on URLs delimited by single quotes 4 years ago
Emi Simpson 7412d663e0
Use a slightly more efficient .replace_range() instead of cloning the string twice 4 years ago
Emi Simpson de383c94b1
Applied rustfmt 5 years ago
Emi Simpson ab65b44f0d
Cleaned up some overcomplicated code 5 years ago
Emi Simpson 13bacb4320
EMPTY_STRING no longer used 5 years ago
Emi Simpson d574e9a5da
Added support for <style> tags 5 years ago
Emi Simpson d3956a7905
Made merge compatible with Y2Z/master 5 years ago
Emi Simpson ef7ddcd434
Added fallback to absolute URL on failure to resolve CSS stylesheet @imports 5 years ago
Emi Simpson 11bbfc0851
Added support for recursively nested css @imports 5 years ago
Emi Simpson a2bf7e3345
Fixed some errors detecting, parsing, and transforming urls in `resolve_css_imports` 5 years ago
knidarkness 550e4cc83f Fixed formatting 5 years ago
knidarkness 5443c0cc3f Added loading of the links given as url(...) in css files 5 years ago
robatipoor 55fe523a1c refactor utils functions 5 years ago
Vincent Flyson 3948ea3aa0 Improve code structure 5 years ago
Vincent Flyson 88a230872c Add CSP isolation, no CSS, and no iframe options 5 years ago
Vincent Flyson c0fffbb212 Get rid of mime-sniffer dependency 5 years ago
mahdi 14e9e6facc cargo clippy 5 years ago
mahdi b25b6765c1 some code refactor 5 years ago
Vincent Flyson 143c396c71 Rewrite program in Rust 5 years ago