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
13bed30411
Have Either derive Clone and Copy
2022-11-20 16:20:24 -05:00
Richard Feldman
4139b4ddb1
Combine some imports
2022-11-20 16:20:15 -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
79be1f94fa
Go back to old load_platform_module name
2022-11-20 10:40:50 -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
0fe3ecd00e
Drop unused enum
2022-11-20 10:39:07 -05:00
Richard Feldman
40bd8ff1de
Support loading platform modules via HTTPS
2022-11-20 10:37:55 -05:00
Richard Feldman
2831c0eb5a
Incorporate caching into HTTPS packages
2022-11-20 10:37:55 -05:00
Richard Feldman
291e6cce73
Make a lock get dropped sooner
2022-11-20 07:08:21 -05:00
Richard Feldman
2cc6a16dd1
Extract an &mut so we don't do it every time
2022-11-20 07:00:30 -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
1661c0c87f
Only check for --bundle flag in roc build
2022-11-19 23:46:28 -05:00
Richard Feldman
2fd59981e5
Tweak wording on --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
777e05cdc8
Report how long it took to make the bundle
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
Richard Feldman
841d764ca1
Add roc_packaging::rp1 initial implementation
2022-11-19 23:46:28 -05:00
Richard Feldman
0e416adc3a
Give a nice error if precompiled host is missing
2022-11-19 23:46:27 -05:00
Richard Feldman
00128e3a18
Don't spawn platform-rebuilding thread if prebuilt
2022-11-19 23:46:27 -05:00
Richard Feldman
571844fc27
Change preprocessedhost filename
2022-11-19 23:46:27 -05:00
Ayaz
1a3119e4c5
Merge pull request #4525 from roc-lang/fix-fixpoints-2
...
Implement fixpoint-fixing and unconditionally emplace variables into type indices
2022-11-19 17:47:02 -06:00
Anton-4
d2959e95c2
improve/expand design docs
2022-11-19 18:27:09 +01:00
Folkert de Vries
3e0176a717
Merge pull request #4541 from roc-lang/fix-echo
...
Fix warnings on examples/cli/echo.roc
2022-11-19 14:46:14 +01:00
Richard Feldman
200d456b7b
Create single source of favicon truth
2022-11-19 06:23:46 -05:00
Richard Feldman
674d449bc1
Give a nice error if precompiled host is missing
2022-11-19 00:20:04 -05:00
Richard Feldman
61153ed33b
Don't spawn platform-rebuilding thread if prebuilt
2022-11-19 00:10:37 -05:00
Richard Feldman
062ecce84c
Change preprocessedhost filename
2022-11-18 23:54:21 -05:00
Joshua Warner
2d9aba2242
Refactor parser methods to not return State as part of ParseError
...
As previously discovered with #4464 , it's easy to accidentally mis-use the State value returned on the Err path.
There were mixed assumptions about what that State represents: (1) the State where the error occurred, or (2) the State at the beginning of the thing we were just parsing.
I fixed this up to always mean (2) - at which point we don't actually need to return the State at all - so it's impossible for further discrepency to creep in.
I also took the liberty to refactor a few more methods to be purely combinator-based, rather than calling `parse` directly.
2022-11-18 19:52:23 -05:00
Richard Feldman
7f617c87bf
Change precompiled host filename format
2022-11-18 17:08:10 -05:00
Richard Feldman
fa2e0648ca
Fix wasm32 host filename generation
2022-11-18 16:47:29 -05:00
Richard Feldman
e4e629c4e4
clippy doesn't like Result with () for the error
2022-11-18 14:45:12 -05:00
Richard Feldman
ebc314691c
Fix Swift linking
2022-11-18 14:26:04 -05:00
Richard Feldman
ba90cbfbd2
Panic in legacy linker if ld returns nonzero
...
We don't print an error message for this, so it's very
confusing if we don't panic - and legacy linker is
going away eventually anyway, so not worth investing in
better error reporting
2022-11-18 14:16:21 -05:00
Richard Feldman
c331925f3f
Drop obsolete comment
2022-11-18 14:16:12 -05:00