Brendan Hansknecht
c79febb52d
Change RocRefcounted to have argumentless inc function
...
Just inc by 1. No need for inc by n.
2024-07-13 10:39:52 -07:00
Brendan Hansknecht
93fab26c01
Add a RocRefcounted trait in roc_std
...
This is required to properly handle refcounting of RocList.
Without it, we can't tell if we need to get the length from the heap.
That said, it isn't a pretty solution.
I think dealing with generating bespoke type in glue would feel nicer than this but be much more work.
It also would deal with the issue of implementations in the bitcode not matching external libraries.
That said, it would require exposing way more symbols from roc for each monomophorphized list variant.
2024-07-13 10:39:51 -07:00
Anton-4
2ac6243e72
partial clippy fixes
2023-12-27 17:46:56 +01:00
Anton-4
a4fd42b8de
rustfmt
2023-12-25 17:19:30 +01:00
Anton-4
cd632fe549
Merge branch 'main' of github.com:roc-lang/roc into clippy-1.74
2023-12-25 17:05:37 +01:00
Folkert
f570444901
always slice a big string as a slice (not as a small string)
2023-12-12 10:49:21 +01:00
Folkert
37ef3549c8
rename field name
2023-12-12 10:45:53 +01:00
Folkert
f742d50379
changes after review
2023-12-12 10:45:53 +01:00
Folkert
9865096c24
expose list/string slices to rust users
2023-12-12 10:45:53 +01:00
Folkert
6d55acc5cf
cleanups in roc_std
2023-11-18 22:43:11 +01:00
Folkert
d4e77856fe
roc_std: fixes found by running miri
2023-10-15 20:12:06 +02:00
Ayaz Hafiz
782a9839ac
Only mark roc_std no_std if std feature is not present
...
Otherwise, you will get compile errors with the std feature.
2023-03-25 17:09:38 -05:00
Brendan Hansknecht
18e6dbd163
fix roc_std to support seamless str slices
2023-03-15 13:23:34 -07:00
Brendan Hansknecht
11cccde050
clippy
2023-03-06 21:02:47 -08:00
Brendan Hansknecht
8804b28be0
expand safety doc comment
2022-10-19 12:09:05 -07:00
Brendan Hansknecht
6ebfcc8fa1
add clone to SendSafe* types
2022-10-19 11:54:17 -07:00
Brendan Hansknecht
24cd78fe7e
add tests and expose types
2022-10-18 23:35:15 -07:00
Brendan Hansknecht
58f4afd9f0
add a wrapper for RocStr and RocList that is Send safe
2022-10-18 23:00:43 -07:00
Brian Hicks
3afe0b1a30
implement Serialize/Deserialize for RocStr
2022-08-10 16:57:00 -05:00
Folkert
6394a4e337
update no_std config
2022-08-06 19:05:29 +02:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes
2022-07-01 17:37:43 +02:00