Commit Graph

51 Commits

Author SHA1 Message Date
Joshua Warner
2b91af02df
Introduce record! combinator
... and refactor header parser to fully use combinators, in support of future combinator-based superpowers
2022-11-28 20:25:55 -08:00
Anton-4
f91523baa9
update tutorial, cleanup 2022-11-28 20:13:39 +01:00
Richard Feldman
32d9c6d875
Fix a comment 2022-11-26 09:08:24 -05:00
Richard Feldman
2409399ff3
Don't even compile https stuff in wasm! 2022-11-26 08:53:31 -05:00
Richard Feldman
b9074f0cfa
Avoid unused import warning on wasm tests 2022-11-26 08:47:21 -05:00
Richard Feldman
ca06a200e6
Use PathBuf::from over PathBuf::new 2022-11-25 21:27:00 -05:00
Richard Feldman
0ecebe57b5
WASI doesn't have a home directory 2022-11-25 19:49:28 -05:00
Richard Feldman
e0030bac6c
Try to fix wasm URL-based downloads again 2022-11-25 16:54:10 -05:00
Richard Feldman
59e13d5bec
Don't try to import reqwest::blocking on wasm 2022-11-25 03:32:15 -05:00
Richard Feldman
253f903ae6
Drop openssl dependency 2022-11-24 21:14:26 -05:00
Richard Feldman
7874db0b5f
Fix a cfg 2022-11-24 19:14:34 -05:00
Richard Feldman
85a5905ef7
Fix typos in comments 2022-11-24 04:40:42 -05:00
Richard Feldman
c3fa64afbd
Add /packages to ~/.cache/roc over ROC_VERSION 2022-11-22 12:10:45 -05:00
Richard Feldman
207160e22c
Print downloading message when downloading package 2022-11-22 12:05:19 -05:00
Richard Feldman
822f059e6e
Always include ROC_VERSION in cache dir 2022-11-22 12:05:03 -05:00
Richard Feldman
7356809fc3
clippy 2022-11-22 10:59:17 -05:00
Richard Feldman
13caa0bc17
Fix doc comment 2022-11-22 08:38:59 -05:00
Richard Feldman
c7f9ecccf1
Fix compression inference 2022-11-22 08:38:02 -05:00
Richard Feldman
092d21a663
Properly resolve shorthands to HTTPS URL packages 2022-11-22 08:28:54 -05:00
Richard Feldman
d16b247523
Rename some variables 2022-11-22 07:20:35 -05:00
Richard Feldman
7b7f64e6c0
Streaming downloading and hash verification works 2022-11-21 19:24:25 -05:00
Richard Feldman
ea8bb8820b
Switch from ureq to reqwest::blocking 2022-11-21 15:01:43 -05:00
Richard Feldman
52783558a5
If Content-Encoding is missing, try to infer it 2022-11-21 04:24:50 -05:00
Richard Feldman
06e8ca2bd1
Be explicit about certain Brotli encoder params 2022-11-21 03:59:53 -05:00
Richard Feldman
d0a1fa3d57
Bundle tarballs with compression after all 2022-11-21 03:57:05 -05:00
Richard Feldman
a38380ec76
Remove references to obsolete .rp1 format 2022-11-21 02:58:18 -05:00
Richard Feldman
9e304e4b1e
Fix some issues with tarball generation 2022-11-21 02:51:53 -05:00
Richard Feldman
8b75545176
Separate error for multiple content encodings 2022-11-20 20:58:00 -05:00
Richard Feldman
7d2fa63dca
Make roc_cache_dir() panic if it can't find $HOME 2022-11-20 20:54:03 -05:00
Richard Feldman
4987fe1656
Put RocCacheDir::Temp behind #[cfg(test)] 2022-11-20 20:49:26 -05:00
Richard Feldman
60f89f75aa
clippy 2022-11-20 19:54:20 -05:00
Richard Feldman
721841fa1f
Provide roc_cache_dir everywhere 2022-11-20 19:53:48 -05:00
Richard Feldman
581c2f248d
Download files into tempdir if no cache available 2022-11-20 11:29:31 -05:00
Richard Feldman
a6c0bd854f
Revert "Always use a tempdir for caches during tests"
This reverts commit 6572b46983.
2022-11-20 11:10:51 -05:00
Richard Feldman
6572b46983
Always use a tempdir for caches during tests 2022-11-20 11:10:17 -05:00
Richard Feldman
d6fa2acc54
Properly pass around roc_cache_dir during loading 2022-11-20 11:05:53 -05:00
Richard Feldman
f9676098d3
clippy 2022-11-20 10:39:57 -05:00
Richard Feldman
514fa73701
Early return an io::Result 2022-11-20 10:39:24 -05:00
Richard Feldman
2831c0eb5a
Incorporate caching into HTTPS packages 2022-11-20 10:37:55 -05:00
Richard Feldman
066eb38043
Drop unusued tempfile dependency in packaging 2022-11-19 23:47:34 -05:00
Richard Feldman
d654ba77f1
Clippy 2022-11-19 23:46:30 -05:00
Richard Feldman
017fcca641
Fix https write logic (thanks, Clippy!) 2022-11-19 23:46:29 -05:00
Richard Feldman
804a7cb7bf
Fix compile errors for https module 2022-11-19 23:46:29 -05:00
Richard Feldman
7c1c48afa7
Add https module 2022-11-19 23:46:29 -05:00
Richard Feldman
04492ce485
.rp1 -> .tar; let the server handle compression! 2022-11-19 23:46:29 -05:00
Richard Feldman
92b71da633
Make some brotli settings more explicit 2022-11-19 23:46:29 -05:00
Richard Feldman
0fe3a2e1dc
Switch from lz4 to brotli compression 2022-11-19 23:46:29 -05:00
Richard Feldman
58c8722c4d
Only add precompiled hosts and .roc file to bundle 2022-11-19 23:46:28 -05:00
Richard Feldman
32086e25be
Don't recursively create rp1 files! 2022-11-19 23:46:28 -05:00
Richard Feldman
4f34eac1e6
Add roc build --bundle to CLI 2022-11-19 23:46:28 -05:00