Sunshine
|
0df8613789
|
Rewrite part of function retrieve_asset, include support for brotli and deflate (#312)
do not crash the app if reqwest throws, add support for deflate & brotli
|
2 years ago |
Sunshine
|
2cc1870033
|
get rid of macros, move tests out of src
|
3 years ago |
Sunshine
|
4bc8043f0f
|
account for charset when creating data URLs
|
3 years ago |
Sunshine
|
b8aa545e8c
|
add support for wider range of charsets
|
3 years ago |
Sunshine
|
2e86ee67a5
|
revamp codebase
|
4 years ago |
Sunshine
|
4921a70dda
|
Merge branch 'master' into change-meta-charset-to-utf-8
|
4 years ago |
Sunshine
|
e0273c664a
|
forcefully set document's charset to UTF-8
|
4 years ago |
Sunshine
|
9a27c6c5ee
|
add color to asset download log
|
4 years ago |
Sunshine
|
15d98a7269
|
don't modify base url by default, add option for setting it
|
4 years ago |
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
|
5 years ago |
Sunshine
|
594ad55bd8
|
improve data URL media type detection
|
5 years ago |
Sunshine
|
c097733ae7
|
improve parsing of data URLs
|
5 years ago |
Sunshine
|
4951fea730
|
implement full CSS parsing
|
5 years ago |
Sunshine
|
be25784297
|
improve SVG media type detection
|
5 years ago |
Sunshine
|
479c42e1ce
|
improve test code structure
|
5 years ago |
Sunshine
|
59a8be493d
|
add support for working with local assets
|
5 years ago |
Sunshine
|
0d1e21e9ad
|
add black box tests
|
5 years ago |
Sunshine
|
3d2d40e7cd
|
add support for data URL targets
|
5 years ago |
Sunshine
|
928664dc88
|
correct is_valid_url to is_http_url
|
5 years ago |
Sunshine
|
5c8d75539b
|
rename dataurl to data_url
|
5 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
|
5 years ago |
rhysd
|
75fb6961ed
|
migrate to Rust 2018
|
5 years ago |
Sunshine
|
c7fc121c7c
|
use clean URLs as hashmap keys
|
5 years ago |
Emi Simpson
|
3d4a932ac1
|
Merge Y2Z/master, fix conflicts between shared-client & resolve-css
|
5 years ago |
Emi Simpson
|
614af44c92
|
Gramatical and stylistic fixes
|
5 years ago |
Emi Simpson
|
028beb821c
|
Rustfmt update for nightly formatter
|
5 years ago |
Emi Simpson
|
76ccff80f9
|
Fixed failure of regex to match @imports
|
5 years ago |
Emi Simpson
|
a4743ca92f
|
Respect the --no-images flag while parsing CSS
|
5 years ago |
Emi Simpson
|
b96a777e8a
|
Merge commit '4decea7' into load-css-imports
|
5 years ago |
Emi Simpson
|
4decea716c
|
Fixed css replacement with more than one linked asset
|
5 years ago |
Emi Simpson
|
695a787206
|
Moved regex compilation to lazy_static
|
5 years ago |
Emi Simpson
|
90e6cb1c45
|
Prevent crash on URLs delimited by single quotes
|
5 years ago |
Emi Simpson
|
7412d663e0
|
Use a slightly more efficient .replace_range() instead of cloning the string twice
|
5 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 |