Commit Graph

407 Commits

Author SHA1 Message Date
Brendan Hansknecht
09a3b2425f
update glue cli tests to generate directories 2023-03-05 12:33:42 -08:00
Brendan Hansknecht
69bd296099
switch tests to use list of files 2023-03-05 12:33:42 -08:00
Brendan Hansknecht
2f9e1ad539
change glue api to enable writing multiple files 2023-03-05 12:33:41 -08:00
Folkert
853c0387dc
cleanup 2023-03-05 17:33:48 +01:00
Folkert
180187e5af
get old examples to work 2023-03-01 21:56:14 +01:00
Folkert
fa05c49693
correct the name of the size() exposed function 2023-02-26 14:23:10 +01:00
Folkert
fee5e978f7
use roc_alloc to store unsized types 2023-02-25 16:45:58 +01:00
Folkert
f232bdda4f
fix some glue formatting 2023-02-25 16:32:10 +01:00
Folkert
1bf2cc3b8c
cleanup 2023-02-25 16:23:40 +01:00
Folkert
35980e50b8
fix function getters 2023-02-25 15:47:20 +01:00
Folkert
033618f3f4
fixes to get rocLovesRust to work 2023-02-22 21:17:50 +01:00
Folkert
b6bae82913
hello world works 2023-02-14 22:11:23 +01:00
Folkert
6c15284a8f
more wip; now we just need to generate the exposed procs at the right time 2023-02-08 22:56:38 +01:00
Ayaz
ad84e02abf
Merge pull request #4950 from roc-lang/keep-recptr-index
Initial support for linking recursive pointer layouts back to their source layouts
2023-01-24 14:42:00 -06:00
Ayaz
a7c415dc35
Merge pull request #4940 from joshuawarner32/tuple-solve
Initial implementation of tuples in type checking
2023-01-23 16:25:35 -06:00
Ayaz Hafiz
8750127111
Begin support for looping-back recursive pointers to their source layouts 2023-01-23 14:37:48 -06:00
Joshua Warner
de828416bf
Initial implementation of tuples in type checking
This leaves in place a bunch of TODOs and likely many bugs - notably, I haven't tested codegen/layout at all here.
2023-01-22 12:40:44 -08:00
Folkert
1ba4d9d735
WIP 2023-01-22 11:53:02 +01:00
dependabot[bot]
8801c147cb
Bump bumpalo from 3.11.0 to 3.11.1
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.11.0 to 3.11.1.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.11.0...3.11.1)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-21 15:06:17 +00:00
Folkert
c622cebea6
correct codegen for calling the extern 2023-01-20 15:07:49 +01:00
Folkert
1ac2c2bb80
add Unsized RocType variant 2023-01-18 23:38:25 +01:00
Folkert
01b6d234ff
WIP 2023-01-18 23:18:09 +01:00
Folkert
bb44063419
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-01-18 20:06:26 +01:00
Ayaz Hafiz
3d0a0a4a99
Update more dict/set references 2023-01-14 15:33:54 +01:00
Folkert
ee99ae2372
WIP 2023-01-13 20:42:23 +01:00
Folkert
b412765972
push extern name down 2023-01-12 19:02:52 +01:00
Folkert
6ead631c82
generate the RocFunction struct 2023-01-11 23:05:32 +01:00
Ayaz Hafiz
1960f429bd
Cleanup of lints 2023-01-11 14:39:12 -06:00
Ayaz Hafiz
55b8aaebda
Update roc glue 2023-01-11 14:39:11 -06:00
Ayaz Hafiz
e14a0abb99
Store target info on layout interners 2023-01-11 14:32:16 -06:00
Ayaz Hafiz
ce717dca8b
Do not require allocating Layouts in arena before interning
This should reduce memory spend, the interner has its own effective
arena anyway
2023-01-10 09:47:13 -06:00
Folkert
98ba49baf6
WIP 2023-01-08 14:49:13 +01:00
Folkert
1c1112ec35
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-01-04 20:45:01 +01:00
Ayaz Hafiz
50826d1a83
Inline interners into the layout interner module
I realized that we'll need to make the layout interner more complicated
to support things like recursive pointers pointing to their parents and
to support lambda set layout caching. Since the layout interner is the
only user of intern crate right now anyway, just inline the whole thing.
2023-01-03 14:19:39 -06:00
Ayaz Hafiz
b60d5c0251
Push wrapped layout interners through 2023-01-03 10:51:33 -06:00
Ayaz Hafiz
947158b17e
Stub out layout interners into own module 2023-01-03 10:07:12 -06:00
Ayaz
ea53a50447
Merge pull request #4836 from roc-lang/intern-layouts-2
Intern list element layouts and thread mut layout interner through LLVM backend
2022-12-29 18:41:35 -06:00
Ayaz
7076c889a5
Merge pull request #4828 from roc-lang/refactor-build
Refactor build
2022-12-29 18:41:22 -06:00
Folkert
92da3973e7
remove argument from load_and_typecheck 2022-12-29 16:50:19 +01:00
Ayaz Hafiz
e4b5252e51
List takes interned element 2022-12-29 08:52:37 -06:00
Ayaz Hafiz
7ab7fdfa7b
Push interned layouts as mut throughout the backend, and intern box layouts 2022-12-28 18:51:26 -06:00
Folkert
d287eafa3a
remove F128 2022-12-14 23:28:38 +01:00
Brendan Hansknecht
759130952d
fix glue generation for Dict and Set 2022-12-07 20:53:50 -08:00
Brendan Hansknecht
436bfc41ed
disable glue test and update mono test 2022-12-03 13:17:36 -08: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
721841fa1f
Provide roc_cache_dir everywhere 2022-11-20 19:53:48 -05:00
Richard Feldman
36178b5f59
REVERT ME - add some debug info 2022-11-16 17:07:04 -05:00
Richard Feldman
58e672749c
Fix glue getter name synchronization 2022-11-16 17:06:21 -05:00
Richard Feldman
4ba59077b9
Return glue getters via pointer 2022-11-16 14:30:06 -05:00
Richard Feldman
53ab17d0e9
contains_functions -> has_varying_stack_size 2022-11-16 13:55:06 -05:00
Richard Feldman
781c151f17
Fix some more glue for getters 2022-11-16 13:26:45 -05:00
Richard Feldman
59e29bbb91
Allow unused variables in glue header 2022-11-16 13:26:09 -05:00
Richard Feldman
9b04480fdc
Make naming more consistent 2022-11-16 11:22:12 -05:00
Richard Feldman
b3f9ff562d
Silence some warnings 2022-11-16 10:51:57 -05:00
Richard Feldman
42f2d0941d
Fix some exhaustiveness errors with todo! for now 2022-11-16 10:38:27 -05:00
Richard Feldman
a9b116cbeb
Fix some exhaustivness errors in glue 2022-11-16 09:42:56 -05:00
Richard Feldman
8fc635efc3
Fix some glue borrow checker errors 2022-11-16 09:37:54 -05:00
Richard Feldman
2db6856dbf
Fix remaining glue type mismatches name: _, 2022-11-15 21:18:11 -05:00
Richard Feldman
66644f26a5
Use RocStructFields correctly in more places 2022-11-15 21:00:17 -05:00
Richard Feldman
5d062f901c
Fix a bunch of type mismatches 2022-11-15 20:48:11 -05:00
Richard Feldman
955ed673e3
Drop variant_size idea 2022-11-15 20:18:55 -05:00
Richard Feldman
f4c9d245b7
Revise Rust glue derive logic 2022-11-15 20:18:43 -05:00
Richard Feldman
6d54ec0ab8
Remove RocTags from glue 2022-11-15 20:09:25 -05:00
Richard Feldman
2de1b3f51d
Don't always derive PartialEq in glue 2022-11-15 20:09:01 -05:00
Richard Feldman
e5f4e08fec
wip 2022-11-15 16:41:51 -05:00
Richard Feldman
2122bcb563
Restore discriminant_offset 2022-11-15 12:17:40 -05:00
Richard Feldman
d3d21630e8
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2022-11-15 12:16:19 -05:00
Richard Feldman
8e2bbee377
Simplify how glue_procs are handled 2022-11-13 23:10:23 -05:00
Richard Feldman
746b2fdeb1
Further incorporate closures into glue 2022-11-12 18:08:30 -05:00
Richard Feldman
5b04c0e31d
Take closures into account with has_float_help 2022-11-12 15:51:05 -05:00
Richard Feldman
b943537068
s/glue_procs/glue_getter_procs for clarity 2022-11-12 04:19:55 -05:00
Richard Feldman
b06d90c405
Fix some single tag payload glue 2022-11-12 04:19:45 -05:00
Richard Feldman
c29d9ef682
Drop unused imports 2022-11-12 02:59:55 -05:00
Richard Feldman
3c80d8ee13
Thread glue procs into Types::new 2022-11-12 02:59:06 -05:00
Richard Feldman
d6490b8731
Don't hardcode glue to assume UNIX as the OS 2022-11-12 02:44:51 -05:00
Brian Carroll
b64514d7e4
Fix web REPL error formatting by routing the active Palette everywhere 2022-11-11 23:38:08 +00:00
Richard Feldman
99420f65ed
Merge branch 'glue-exposed' into glue-getters 2022-11-11 17:02:27 -05:00
Richard Feldman
cc190374b5
Inline Env::vars_to_types 2022-11-11 16:54:29 -05:00
Richard Feldman
7667aebebb
Avoid an allocation on variables 2022-11-11 16:53:56 -05:00
Richard Feldman
0c78716696
Fix glue for exposed-to-host-symbols 2022-11-11 16:43:36 -05:00
Richard Feldman
aca942864d
Extract Types::new and hide Env 2022-11-11 16:43:36 -05:00
Richard Feldman
1e7ffae62b
Only generate glue for exposed-to-host symbols 2022-11-11 16:42:28 -05:00
Richard Feldman
a0e450cadd
wip 2022-11-11 16:37:49 -05:00
Richard Feldman
c5037e7311
Extract Types::new and hide Env 2022-11-11 16:37:31 -05:00
Richard Feldman
15143e5aa7
Only generate glue for exposed-to-host symbols 2022-11-11 16:36:07 -05:00
Richard Feldman
f8fb4a1196
Add types::RocFn 2022-11-11 14:31:00 -05:00
Folkert
14cd48fce7
Merge remote-tracking branch 'origin/main' into rust-1-62-1 2022-11-09 13:51:51 +01:00
Ayaz Hafiz
281bc94b55
Remove FlatType::Erroneous 2022-11-08 14:11:25 -06:00
Richard Feldman
6486591201
Merge pull request #4462 from lukewilliamboswell/rust-docs
Rust docs update #2
2022-11-08 09:35:04 -08:00
Anton-4
590c61a6fd
Merge branch 'main' of github.com:roc-lang/roc into editor_launch_fix 2022-11-04 15:15:55 +01:00
Luke Boswell
a3f901427a
correct formatting and removed duplicate image 2022-11-03 20:02:10 +11:00
Luke Boswell
f3bdb5f321
updating rust package documentation 2022-11-03 20:00:06 +11:00
Ayaz Hafiz
05e8e6de6f
Disallow typing optional fields when required fields are annotated
Closes #4313
2022-10-18 15:50:20 -05:00
Anton-4
652dbde26e
editor launch fix + new test 2022-10-15 12:36:06 +02:00
Jan Van Bruggen
be3e4e7b11
De-bump all v0.1.0 Roc packages to v0.0.1 2022-10-09 00:16:19 -06:00
Ayaz Hafiz
73210469db
Add tests for env var passing 2022-10-05 14:36:34 -05:00
Ayaz Hafiz
1cffb3376e
Ignore can errors in glue tests 2022-09-30 13:40:35 -05:00
Richard Feldman
b6157e76b8
Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
Richard Feldman
ac68d75eec
Merge pull request #3989 from roc-lang/fix-glue-segfault
Fix glue segfault for newtype wrappers around recursive tag unions
2022-09-13 13:47:51 -07:00
dependabot[bot]
0079048944
Bump bumpalo from 3.10.0 to 3.11.0
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.10.0...3.11.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 21:08:56 +00:00
Richard Feldman
f85f1b84a2
Merge pull request #3991 from roc-lang/glue-handle-multiple-modules
Add glue test case for multiple modules, and when anonymous type is reused
2022-09-12 13:55:41 -07:00
Ayaz Hafiz
0b2cea8c42
Move 2022-09-12 13:25:01 -04:00
Ayaz Hafiz
564d9f795a
Deal with equivalence in the presence of unresolved recursive pointers 2022-09-12 12:39:47 -04:00
Ayaz Hafiz
9eb1c170f3
Print unreachable id 2022-09-12 12:26:44 -04:00
Ayaz Hafiz
9f3a44d323
Remove redundant reference 2022-09-12 12:26:44 -04:00
Ayaz Hafiz
ea527f627f
Add test for multiple modules and anonymous string 2022-09-12 12:26:43 -04:00
Ayaz Hafiz
f1b5705b06
Re-use existing ID of added anonymous type, when possible 2022-09-12 12:26:43 -04:00
Ayaz Hafiz
15f66e3eaa
Add some tracing for debug purposes 2022-09-12 12:26:43 -04:00
dependabot[bot]
35b2e9c80f
Bump clap from 3.2.18 to 3.2.20
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.18 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.20)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 10:33:19 +00:00
dependabot[bot]
d1c406812f
Bump pretty_assertions from 1.2.1 to 1.3.0
Bumps [pretty_assertions](https://github.com/rust-pretty-assertions/rust-pretty-assertions) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/rust-pretty-assertions/rust-pretty-assertions/releases)
- [Changelog](https://github.com/rust-pretty-assertions/rust-pretty-assertions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-pretty-assertions/rust-pretty-assertions/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: pretty_assertions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 05:28:00 +00:00
Jan Van Bruggen
824f8a3e48
Move "🔨 Rebuilding platform..." message from stdout to stderr 2022-09-11 10:25:02 -06:00
Anton-4
f6324edc10
Merge branch 'main' of github.com:roc-lang/roc into rust-1-62-1 2022-09-10 18:17:33 +02:00
Richard Feldman
474a31d7d6
Fix test 2022-09-07 15:36:32 -04:00
Richard Feldman
3a12aa26cc
Use repr(transparent) in glue for newtype wrappers 2022-09-07 13:00:08 -04:00
Richard Feldman
5b787aa218
Glue newtype wrappers of recursive tag unions 2022-09-07 13:00:07 -04:00
Richard Feldman
a1f3036fc8
Reduce some allocations in glue 2022-09-07 13:00:07 -04:00
dependabot[bot]
d061730960
Bump dircpy from 0.3.12 to 0.3.13
Bumps [dircpy](https://github.com/woelper/dircpy) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/woelper/dircpy/releases)
- [Commits](https://github.com/woelper/dircpy/commits)

---
updated-dependencies:
- dependency-name: dircpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 14:02:27 +00:00
Ayaz Hafiz
3b4b1838b8
Push layout interner further through Layout 2022-08-31 14:33:52 -05:00
Ayaz Hafiz
c5466810a4
Add LayoutInterner to LayoutCache
Adds a thread-local interner of layouts to LayoutCache, and updates all
references appropriately.

This is a bit suboptimal for single-threaded workloads that will look at
creating layout caches again, like the REPL, but I think that's okay for
now - since the global interner will be uncontested for those workloads, it
should still be plenty fast to access the interner, even behind a lock.
2022-08-31 14:33:51 -05:00
dependabot[bot]
492eff3556
Bump clap from 3.2.11 to 3.2.18
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.11 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.11...v3.2.18)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 10:17:11 +00:00
Richard Feldman
282a31ae8b
Fix glue for into_ and as_ on single-tag unions 2022-08-26 11:28:26 -04:00
Richard Feldman
641f089384
Use repr(transparent) for single-tag union glue 2022-08-26 09:18:20 -04:00
Anton-4
9aee7cdcf6
1.62.1 version update, fmt, clippy 2022-08-22 15:27:19 +02:00
Richard Feldman
3a1f2a2fcf
clippy 2022-08-21 18:06:32 -04:00
Richard Feldman
3b9c65aefe
Disable more clippy checks in glue 2022-08-21 18:06:31 -04:00
Richard Feldman
e829d2af5b
Revert "Ignore all clippy lints in glue"
This reverts commit 436d2359f5352eed18b91022cf5d86a00dd0c6b4.
2022-08-21 18:06:31 -04:00
Richard Feldman
c1aee72c73
Ignore all clippy lints in glue 2022-08-21 18:06:31 -04:00
Richard Feldman
32f4546518
Skip rustfmt on glue 2022-08-21 18:06:31 -04:00
Richard Feldman
cd01e7fe76
Add #![allow(unused_unsafe)] to Rust glue header 2022-08-21 18:06:31 -04:00
Richard Feldman
64cea0e7ff
Don't glue ManuallyDrop for types that are Copy 2022-08-21 18:06:31 -04:00
Richard Feldman
577128d410
Check in initial glue for RocType etc 2022-08-21 18:06:30 -04:00
Richard Feldman
fa1f2f87ae
Fix glue generation for keywords 2022-08-21 18:06:30 -04:00
Richard Feldman
ace37cf613
Glue 2-tag unions w/ no payloads (but aren't Bool) 2022-08-21 18:06:30 -04:00
Richard Feldman
539429f16b
Add RocType.roc to glue 2022-08-21 18:06:29 -04:00
Richard Feldman
ccd0d32332
Merge remote-tracking branch 'origin/main' into glue-dict 2022-08-21 09:51:22 -04:00
Richard Feldman
8742a81caf
Add len for RocDict and RocSet 2022-08-15 13:05:32 -04:00
Richard Feldman
0b54f08f7f
Generate glue for Set 2022-08-15 13:05:32 -04:00
Richard Feldman
ef64966159
Add glue test for Set 2022-08-15 13:05:31 -04:00
Richard Feldman
99da1cbf6f
Fix some unused warnings 2022-08-15 13:05:31 -04:00
Richard Feldman
1b4a98167c
Add a glue test for Dict 2022-08-15 13:05:31 -04:00
Richard Feldman
3f950059b8
Glue for dictionaries 2022-08-15 10:59:58 -04:00
Richard Feldman
5c4d6d3dfc
Add todos for glue for Dict and Set 2022-08-15 10:59:58 -04:00
dependabot[bot]
4c6ad52c47
Bump indoc from 1.0.6 to 1.0.7
Bumps [indoc](https://github.com/dtolnay/indoc) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.6...1.0.7)

---
updated-dependencies:
- dependency-name: indoc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 13:18:18 +00:00
dependabot[bot]
7d174089ae
Bump dircpy from 0.3.10 to 0.3.12
Bumps [dircpy](https://github.com/woelper/dircpy) from 0.3.10 to 0.3.12.
- [Release notes](https://github.com/woelper/dircpy/releases)
- [Commits](https://github.com/woelper/dircpy/commits)

---
updated-dependencies:
- dependency-name: dircpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 05:30:48 +00:00
Richard Feldman
778f7fe45e
Fix strategy for fixing up pending recursive types 2022-08-12 10:40:39 -04:00
Richard Feldman
1d5943ccff
Revert "Failed attempt"
This reverts commit d05f9e67e7.
2022-08-12 10:22:54 -04:00
Richard Feldman
d05f9e67e7
Failed attempt 2022-08-12 00:38:19 -04:00
Richard Feldman
394cce74ef
Revert "Remove pending recursive type IDs in glue"
This reverts commit fcb174cfa0.
2022-08-11 23:53:29 -04:00
Richard Feldman
fcb174cfa0
Remove pending recursive type IDs in glue 2022-08-11 23:53:28 -04:00
Richard Feldman
d7ef42612b
Improve a variable name 2022-08-11 23:53:28 -04:00
Ayaz Hafiz
81bb889e93
Add RigidOptional record field variant 2022-08-10 20:24:18 -07:00
Richard Feldman
0105fa4c4a
Merge pull request #3733 from rtfeldman/expect-fx
Expect fx
2022-08-09 23:03:37 -04:00
Folkert
7c9b1897bb
fully canonicalize expect-fx 2022-08-09 14:50:24 +02:00
Richard Feldman
d5c50d0d04
c-c-c-clippy 2022-08-08 20:36:40 -04:00
Richard Feldman
bee8bdcfc0
Fix typo in comment 2022-08-08 20:34:35 -04:00
Richard Feldman
09a7117237
Fix single tag struct Debug impl 2022-08-08 19:55:57 -04:00
Richard Feldman
5d3f7f2967
Fix semicolon 2022-08-08 18:15:22 -04:00
Richard Feldman
595b7c9884
Fix tests 2022-08-08 17:30:54 -04:00
Richard Feldman
d965a43fe9
Split back out NullableUnwrapped 2022-08-08 17:27:29 -04:00
Richard Feldman
1a10174abb
Combine all single-tag unions into RocTagUnion::SingleTag 2022-08-08 14:42:52 -04:00
Richard Feldman
4ac79772df
Revise glue for single-tag recursive unions 2022-08-08 14:42:52 -04:00
Richard Feldman
22b219c3c9
Glue body for recursive single-tag unions 2022-08-08 14:42:52 -04:00
Richard Feldman
6e7f0210da
Combine recursive and nonrecursive single-tag glue 2022-08-08 14:42:52 -04:00
Richard Feldman
4e73899356
Rename NonNullableUnwrapped to RecursiveSingleTag 2022-08-08 14:42:52 -04:00
Richard Feldman
23b8ff896a
Give non-recursive single tag unions a payload 2022-08-08 14:42:52 -04:00
Richard Feldman
3adae16cff
Add test fixtures for nonnullable-unwrapped 2022-08-08 14:42:51 -04:00
Richard Feldman
1ad59c6c45
Replace usages of ManuallyDrop::take with ::into_inner 2022-08-08 12:10:20 -04:00
Richard Feldman
0ca0da85cf
Merge pull request #3694 from rtfeldman/roc-std-platform
further windows linking fixes
2022-08-07 14:42:52 -04:00
Folkert
792936066c
Merge remote-tracking branch 'origin/trunk' into roc-std-platform 2022-08-07 13:28:03 +02:00
Folkert
ca5610c748
clippy 2022-08-07 13:20:28 +02:00
Richard Feldman
7f758ab9b6
Fix nullable-wrapped tests 2022-08-07 00:42:52 -04:00
Richard Feldman
7a5db3d457
Revert "Add an index to write_impl_tags"
This reverts commit 31f1aef8e0.
2022-08-07 00:42:52 -04:00
Richard Feldman
7726c1745b
Modify test fixture for nullable-wrapped 2022-08-07 00:42:46 -04:00
Richard Feldman
484cc582fc
Add some comments 2022-08-07 00:32:52 -04:00
Richard Feldman
f644c8ac50
Special-case nullable-unwrapped's null tag 2022-08-06 23:35:29 -04:00
Richard Feldman
31f1aef8e0
Add an index to write_impl_tags 2022-08-06 23:27:38 -04:00
Richard Feldman
dba935b8b7
Reuse add_tag_union for nullable_wrapped 2022-08-06 23:24:23 -04:00
Richard Feldman
4f55105a35
Generate glue for nullable unwrapped 2022-08-06 23:11:17 -04:00
Richard Feldman
621d1afd5d
Add test fixture for nullable-wrapped 2022-08-06 23:11:13 -04:00
Folkert
79d0dbf4a1
clippy 2022-08-06 20:12:10 +02:00
Folkert
b4eda7c9d9
rework features for roc_std 2022-08-06 19:01:07 +02:00
Richard Feldman
e5a7c28c6e
Remove unsafe from glue functions that don't need it 2022-08-05 20:17:26 -04:00
Richard Feldman
314d7a7952
Add RocTagUnion::SingleTagUnion 2022-08-05 20:14:41 -04:00
Richard Feldman
e9966e6551
Extract some common wrapper logic 2022-08-05 20:14:41 -04:00
Richard Feldman
efa31ae747
Add failing single-tag-union glue test 2022-08-05 20:14:41 -04:00
Richard Feldman
1a1d1da51a
Drop obsolete dbg! calls 2022-08-05 20:14:41 -04:00
Richard Feldman
72ca577b54
Glue: don't derive Ord or Hash impls for floats 2022-08-05 09:44:47 -04:00
Richard Feldman
26ee1a01bc
Merge pull request #3691 from rtfeldman/cargo_verson_change
changed Cargo versions from 0.1.0 to 0.0.1
2022-08-05 09:13:04 -04:00
Richard Feldman
e7b4d3f18d
Disable roc_std default features in glue and reporting 2022-08-03 22:39:20 -04:00
Richard Feldman
3136c5fb63
Allow testing interface modules 2022-08-03 19:49:48 -04:00
Folkert de Vries
fe707a9d6c Revert "don't use default flags when using roc_std just for its types"
This reverts commit 092a119eb7.
2022-08-03 21:18:56 +02:00
Folkert de Vries
092a119eb7 don't use default flags when using roc_std just for its types 2022-08-03 20:24:18 +02:00
Anton-4
6a15a7b41b
changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
Folkert de Vries
c296b5a5ac remove useless conversion 2022-08-02 14:06:14 +02:00
Folkert de Vries
1366be4a50 formatting 2022-08-02 00:10:26 +02:00
Folkert de Vries
7df31619dd add the concept of an OS to target info 2022-08-01 23:53:17 +02:00
Folkert de Vries
23411ea147 add the Windows64 target 2022-08-01 23:10:31 +02:00
Richard Feldman
e2de5519a7
Remove unnecessary clone - thanks, Clippy! 2022-07-24 12:01:38 -04:00
Richard Feldman
ad563f0600
Drop unused ctor dependency 2022-07-24 12:00:43 -04:00
Richard Feldman
ed69a73786
Update glue tests 2022-07-24 11:57:01 -04:00
Richard Feldman
fcd9819118
Print formatted reports for roc glue errors 2022-07-24 11:23:23 -04:00
Richard Feldman
946b44cfd0
Fix some type mismatches 2022-07-24 11:22:58 -04:00
Richard Feldman
3765cbbc8f
Drop obsolete templates and main.rs 2022-07-24 10:46:27 -04:00
Richard Feldman
fc7351508e
Rename bindgen_rs to rust_glue 2022-07-24 10:41:52 -04:00
Richard Feldman
4bc961a453
Have the roc CLI use the new glue 2022-07-24 10:41:05 -04:00
Richard Feldman
7258446283
Make roc_glue a library, not a separate CLI 2022-07-24 10:25:27 -04:00
Richard Feldman
98c6ab0e97
Rename crates/bindgen to crates/glue 2022-07-24 10:25:24 -04:00