Commit Graph
566 Commits
Author SHA1 Message Date
escritorio-gustavo 474cc86a2e Merge pull request #257 from Aleph-Alpha/better-error-locations
Improve location of some compiler errors
2024-03-08 07:58:21 -03:00
Gustavo b8a1df92ff Make inacurate error spans capture the entire item 2024-03-07 16:11:47 -03:00
NyxCode cd59b2c3d2 Alternative handling of output paths (#256)
* Implement alternative handling of output paths

* adjust CI

* fix CI, remove println!
2024-03-07 19:20:05 +01:00
Gustavo 501e87c324 Improve location of some errors 2024-03-07 15:08:17 -03:00
escritorio-gustavo 49b74fd022 Merge pull request #254 from Aleph-Alpha/remove_default_panic
Convert `inline`, `inline_flattened`, `decl` and `decl_concrete` to required methods
2024-03-07 11:56:50 -03:00
escritorio-gustavo b62f6010a5 Merge pull request #255 from Aleph-Alpha/update-dependencies
Update dependencies
2024-03-07 11:55:29 -03:00
NyxCodeandGustavo 7fc4945c6e Update & format documentation (#252)
* document `#[ts(tag)]` and `#[ts(as)]`, reformat documentation

* fix line breaks in README.md

* put cargo features in a table

* Fix typo in readme

* Document change to export_to made in #250

* Add missing newline

* Explain flatten

* Document #[ts(untagged)] on enum variants

* Document #[ts(rename_all = ..)] on enum variants

* Add missing newline

* Change interface to type

* Link to mentioned items

* Run cargo readme

* Document TS::DOCS

* Improve TS::ident so it doesn't panic

* document TypeList

---------

Co-authored-by: Gustavo <gustavo.shigueo@proton.me>
2024-03-07 15:53:54 +01:00
Gustavo a0b0a71384 Update dependencies 2024-03-07 11:27:09 -03:00
Gustavo adfdd82a8c Fix chrono impls 2024-03-07 10:40:17 -03:00
Gustavo 3e91c6b82c Convert inline, inline_flattened, decl and decl_concrete to required methods 2024-03-07 10:32:25 -03:00
escritorio-gustavo 3a667d453b Merge pull request #250 from Aleph-Alpha/export_relative_ts_rs_env
Make `#[ts(export_to = "...")]` relative to `TS_RS_EXPORT_DIR`
2024-03-07 08:12:04 -03:00
Gustavo 1dd9d7337d Make output_path public 2024-03-06 18:02:53 -03:00
Gustavo 5ecae522de add TS::export_path 2024-03-06 17:53:27 -03:00
Gustavo 91485a3f55 Read environment variable outside macro 2024-03-06 17:13:37 -03:00
Gustavo b325448cc6 Change how environment variable is read 2024-03-06 16:44:51 -03:00
Gustavo afbc24e34c Test TS_RS_EXPORT_DIR first to get error faster 2024-03-06 16:24:06 -03:00
Gustavo 83bebd549d More info 2024-03-06 16:13:30 -03:00
Gustavo 8e86b3588f Try to get info on test failure 2024-03-06 15:58:04 -03:00
Gustavo b25ac88112 Fix docs.rs test again 2024-03-06 15:40:24 -03:00
Gustavo 7e73ed8d69 Fix path_bug.rs test 2024-03-06 15:36:09 -03:00
Gustavo 82863bb79e Fix docs.rs test 2024-03-06 15:00:55 -03:00
Gustavo ae64422ba6 2024-03-06 14:18:06 -03:00
escritorio-gustavo ffac0e2073 Merge pull request #247 from Aleph-Alpha/repro-path-bug
bug: `#[ts(export_to = "../path")]` can cause `diff_paths` to fail
2024-03-06 12:04:25 -03:00
Moritz Bischof 00b390aa51 expand test 2024-03-06 15:40:21 +01:00
Gustavo a11dc42b62 Make absolute into regular fn 2024-03-04 14:57:33 -03:00
Gustavo 1840d15c24 Simplify absolute path conversion 2024-03-04 14:51:05 -03:00
Gustavo 8cb4849401 Add licensing info 2024-03-01 08:21:19 -03:00
Gustavo a14ff38456 Copy over path-clean to remove dependency 2024-03-01 08:00:14 -03:00
Gustavo 9f1940123a Convert paths to absolute 2024-02-29 17:29:31 -03:00
Gustavo 3c6449a169 Make repro simpler 2024-02-29 16:01:50 -03:00
Gustavo 8d106f9cfd Reproduce path problem 2024-02-29 15:57:34 -03:00
escritorio-gustavo 676cc6eff0 Merge pull request #246 from Aleph-Alpha/build-typelist-fix
No longer build TypeLists manually
2024-02-29 15:38:39 -03:00
escritorio-gustavo 72437772ac No longer build TypeLists manually 2024-02-29 15:24:32 -03:00
escritorio-gustavo 63d2d46c69 Merge pull request #244 from Aleph-Alpha/tag-struct
Parse `#[ts(tag = "...")]` on structs
2024-02-29 15:12:52 -03:00
escritorio-gustavo a05169e85a Merge pull request #243 from Aleph-Alpha/remove-transparent
Remove `TS::trasparent`
2024-02-29 15:12:24 -03:00
Gustavo 5ebe368f1f Add missing method to impl_shadow 2024-02-29 15:06:00 -03:00
Gustavo 38ec2f72f5 Use TypeList methods + impl_shadow 2024-02-29 15:04:39 -03:00
Gustavo 59f7062b77 Update CHANGELOG.md 2024-02-29 14:50:22 -03:00
Gustavo 01c2b5b494 Update CHANGELOG.md 2024-02-29 14:48:44 -03:00
Gustavo 6e0d48ee79 Parse #[ts(tag = "...")] on structs 2024-02-29 14:40:56 -03:00
Gustavo def7e64734 Remove TS::trasparent 2024-02-29 14:35:14 -03:00
escritorio-gustavo cdaae6c5cb Merge pull request #241 from Aleph-Alpha/type-params-are-not-imported
- Fix import of type parameters
- Improve error location
- Export all types under the `tests` directory
- Run `tsc` on the `tests-out` directory as part of CI
- Fix `Result`, `Option`, `Vec` and `HashMap`
- Fix unused import of inlined types
2024-02-29 14:21:25 -03:00
Moritz Bischof 535eeff756 Test hashmap.rs: Change CustomKey to yield a valid TS Record 2024-02-29 16:29:30 +01:00
Moritz Bischof a177f8997c CI: use tsc --strict in all jobs 2024-02-29 16:23:22 +01:00
Moritz Bischof 2136c75891 fix imports for TypeList in macros 2024-02-29 16:07:12 +01:00
Moritz Bischof 10c09adb01 Implement TS::generics() within impl_shadow 2024-02-29 16:03:21 +01:00
Moritz Bischof ed397dad28 Add tests for all impl_shadow! types 2024-02-29 15:59:36 +01:00
escritorio-gustavo 22a8edc5c2 Remove ts(export) from self referential internally tagged enum 2024-02-29 11:38:14 -03:00
Moritz Bischof 6e0957148c self_referential.rs: Rename types to unique names 2024-02-29 15:19:09 +01:00
Moritz Bischof 8ea5cf03d5 Revert "self_referential.rs: Do not rename types"
This reverts commit f4572ea94d.
2024-02-29 15:16:56 +01:00