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
Anton-4
f1b1aa6a7b
Merge branch 'main' of github.com:roc-lang/roc into glue-getters-rtfeldman
2023-03-17 11:34:29 +01:00
Brendan Hansknecht
18e6dbd163
fix roc_std to support seamless str slices
2023-03-15 13:23:34 -07:00
Folkert
fdf1489df6
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman
2023-03-14 01:01:26 +01:00
Brendan Hansknecht
dfb748fb03
misc cleanup + change refcount pointer to avoid branching
2023-03-13 14:08:24 -07:00
Brendan Hansknecht
401f525846
update roc_std for seamless slices
2023-03-13 14:08:23 -07:00
Anton-4
49196ad032
fixing CI releated issues
2023-03-10 15:31:46 +01:00
Folkert
fe15a2e79c
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman
2023-03-08 19:46:00 +01:00
Brendan Hansknecht
11cccde050
clippy
2023-03-06 21:02:47 -08:00
Brendan Hansknecht
75e996c445
remove unused dependencies and ignore false positives
2023-03-06 20:09:01 -08:00
Brendan Hansknecht
f42f61e271
run a toml formatter and then clean it up a bit
2023-03-06 19:47:57 -08:00
Brendan Hansknecht
4a89bee0a5
centralize package versions except for vendor and excluded
2023-03-06 19:29:09 -08:00
Brendan Hansknecht
5485c8a5b0
update to using workspace package spec
2023-03-06 16:36:18 -08:00
Folkert
3b59c01724
attempt to make RocSet/RocDict FFI-safe
2023-03-06 22:12:33 +01:00
Brendan Hansknecht
43224dcca9
remove less important Cargo.lock files that we probably shouldn't track
2023-03-06 13:01:07 -08:00
Folkert
fee5e978f7
use roc_alloc to store unsized types
2023-02-25 16:45:58 +01:00
Folkert
eb48f01f63
Str.startsWith, str.endsWith and friends
2023-02-11 00:51:04 +01:00
Folkert
52b283edd4
roc_std: don't throw away capacity after appending slice
2023-01-21 15:57:10 +01:00
Folkert
662bf1de99
more workspace dependencies
2022-11-13 16:10:02 +01:00
Luke Boswell
f3bdb5f321
updating rust package documentation
2022-11-03 20:00:06 +11: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
Brendan Hansknecht
96b5d365b2
Add capacity growth to RocStr
...
Also, cleans up the alloc and realloc api for both list and str.
Updates Str.reserve to match List.reserve
2022-10-10 22:24:55 -07:00
Brian Hicks
0f4c848978
remove RocList.get
...
It wasn't used outside of `RocDict`'s `IntoIterator`, and in that use case it
was throwing segfaults and bus errors all over the place. I was unable to figure
out what was wrong with it, but since we have an alternative path forward let's
just drop it for now.
2022-09-22 06:03:50 -05:00
Brian Hicks
37fbc5ec24
use the slice's iterator for iterating over RocDictItems
2022-09-22 06:03:31 -05:00
Brian Hicks
74552f0bac
Merge pull request #4074 from roc-lang/dict-umentation
...
document why Dict is the way it is
2022-09-20 09:58:35 -05:00
Brian Hicks
9d6b27e23c
format references for automatic links
...
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Brian Hicks <brian@brianthicks.com>
2022-09-20 07:48:38 -05:00
Brian Hicks
c6235f8c76
grammar ✨
...
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Brian Hicks <brian@brianthicks.com>
2022-09-20 07:48:11 -05:00
Richard Feldman
593bd02cb9
Make RocDict FFI-safe
2022-09-19 21:12:41 -04:00
Brian Hicks
3f1f90dce2
document why Dict is the way it is
2022-09-19 14:50:25 -05:00
Richard Feldman
523b18900f
Give RocDict a FromIterator instance
2022-09-19 12:44:13 -04:00
Brian Hicks
6236be9416
fix formatting
2022-09-15 12:53:17 -05:00
Brian Hicks
335a8372c5
implement Drop for RocDictItem
2022-09-14 15:39:46 -05:00
Brian Hicks
98a8cc02e6
follow Roc's layout rules for RocDictItem
2022-09-14 15:36:54 -05:00
Brian Hicks
5d23aec153
📎
2022-09-12 10:24:11 -05:00
Brian Hicks
39f73b4c7b
add size_hint for dict iterator
2022-09-12 10:24:03 -05:00
Brian Hicks
ca8490dc71
restore IntoIterator for borrowed RocDict values
2022-09-12 09:09:31 -05:00
Brian Hicks
5fec0ec0ce
restore IntoIterator for borrowed RocList values
2022-09-12 09:09:31 -05:00
Brian Hicks
1f31e16896
add RocSet.is_empty
2022-09-07 15:08:55 -05:00
Brian Hicks
3bcefd7f68
add RocDict.is_empty
2022-09-07 15:08:32 -05:00
Brian Hicks
c993d882cc
remove reference to into_iter
2022-09-07 15:06:50 -05:00
Brian Hicks
c1ae2fe8b7
make RocDict FFI-safe
2022-09-07 15:05:23 -05:00
Brian Hicks
2a141395d9
remove IntoIter for RocList
...
This implies we get ownership of the data inside the iterator, but that's
not true--it's not safe to change values in place because Roc might still
hold a reference to the memory.
2022-09-07 14:59:29 -05:00
Brian Hicks
0b78e14978
add RocList.get
2022-09-07 14:59:24 -05:00
isaacthefallenapple
4c5e89f46c
replace unsound MaybeUninit
deref with ptr::copy
...
Signed-off-by: isaacthefallenapple <isaacthefallenapple@gmail.com>
2022-08-29 17:00:03 +02:00
Richard Feldman
ccd0d32332
Merge remote-tracking branch 'origin/main' into glue-dict
2022-08-21 09:51:22 -04:00
Ayaz Hafiz
f70993c2a3
Add RocList from array
2022-08-17 17:58:03 -05:00
Ayaz Hafiz
b1e41a5995
Remove Clone restriction from RocList FromIterator
...
You don't need clone-able elements to create a Roc list from an owned
iterator.
2022-08-17 17:44:06 -05:00