Gustavo
bdb06d4b67
use TS::ident
2024-02-16 11:26:00 -03:00
Gustavo
a693b60683
use DerivedTS::ts_name instead of rust_ty
2024-02-16 11:21:55 -03:00
Gustavo
bae3df8a9b
Add dummy type to allow exporting types that use ToString as a generic trait bound
2024-02-16 11:17:43 -03:00
Gustavo
3e31a3a95a
Add ident method
2024-02-16 11:02:00 -03:00
Gustavo
5ab4aa9d7c
Use type_params to simplify capture of Generics' identifiers
2024-02-16 08:57:42 -03:00
Moritz Bischof
2b5b9a9e30
remove "limitations" section from readme - both #56 and #70 are fixed
2024-02-16 11:38:13 +01:00
Moritz Bischof
0a68cef24b
remove TODO about #56 - already fixed
2024-02-16 11:36:09 +01:00
Moritz Bischof
129b32384b
remove TODO about race condition - we fixed that with a mutex.
2024-02-16 11:36:08 +01:00
Moritz Bischof
ebfa532d50
enable test for #214
2024-02-16 11:34:29 +01:00
Moritz Bischof
61c9692299
add test for #70
2024-02-16 11:33:06 +01:00
Moritz Bischof
83b95413a4
fix TS_RS_EXPORT_DIR
2024-02-16 11:10:06 +01:00
Moritz Bischof
4264c5f3ec
fix optional features
2024-02-16 11:03:07 +01:00
Moritz Bischof
29248b4f49
adjust failing test
2024-02-16 10:56:22 +01:00
Moritz Bischof
d764f5c17f
expand e2e test
2024-02-16 10:56:11 +01:00
Moritz Bischof
cab0908d1b
Dependency::from_ty - remove generic params from name
2024-02-16 10:55:58 +01:00
Moritz Bischof
5daeed248d
re-implement handeling of generics
2024-02-15 22:18:34 +01:00
Moritz Bischof
495a6bfab2
add test
2024-02-12 18:56:50 +01:00
escritorio-gustavo
ed9abd3067
Update format_docs doc comment
2024-02-12 14:02:35 -03:00
Tim Guggenmos
c7094375a7
feat: Add functionality to export doc strings on struct fields and enum variants ( #229 )
...
* exporting docs on struct fields now works
* trim trailing whitespace at the end of doc comments
2024-02-12 11:02:21 -03:00
Sammy Harris
823abfd488
Feat: add default export directory override ( #195 )
...
* feat: default export path
* added docs
* document why __private mod is pub
* add default env dir test to ci
* add export_to to crate1 dependency for tests
2024-02-12 08:37:29 -03:00
NyxCode
660deddf7e
Fix #[ts(skip)] in newtype variants ( #231 )
...
* add tests
* apply fix
* update changelog
2024-02-10 18:19:21 +01:00
escritorio-gustavo
3c58ac7865
Update CHANGELOG.md
2024-02-09 08:42:28 -03:00
Tim Guggenmos
e7a462a43a
feat: Add functionality to export doc strings on types ( #187 )
...
* Added implementation and tests for type docs
* Added `docs` to `EnumAttr` and `StrucAttr`
* Added `DOCS` to `TS`
2024-02-09 08:21:02 -03:00
escritorio-gustavo
4eccadaabc
Update CHANGELOG.md
2024-02-08 17:45:11 -03:00
escritorio-gustavo
dd32308cb5
Add support for #[serde(rename_all_fields = "...")] attribute ( #225 )
...
* Add support for #[serde(rename_all_fields = ...)] attribute
* Change VariantAttr constructor
* Document the new attribute
* Update CHANGELOG.md
* Update tests
* Run cargo +nightly fmt
2024-02-08 17:12:16 -03:00
escritorio-gustavo
be74ebba37
Merge pull request #226 from Aleph-Alpha/support_untagged_variant
...
Add support for `#[serde(untagged)]` on enum variants
2024-02-08 14:23:00 -03:00
Gustavo
a84b8389bc
Fix test dependency on serde
2024-02-08 14:20:28 -03:00
Gustavo
db6af98bbd
Merge remote-tracking branch 'refs/remotes/origin/support_untagged_variant'
2024-02-08 14:17:43 -03:00
escritorio-gustavo
9ace87fcbd
Merge branch 'main' into support_untagged_variant
2024-02-08 14:18:18 -03:00
Gustavo
b358ffa0c7
Parse #[ts(untagged)] on enum variants
2024-02-08 14:16:47 -03:00
Gustavo
63c889fc1a
Run cargo +nightly fmt
2024-02-08 14:15:35 -03:00
escritorio-gustavo
e352882903
Merge pull request #227 from Aleph-Alpha/ts_tag
...
Implement `#[ts(untagged)]`, `#[ts(tag = "...")]` and `#[ts(tag = "...", content = "...")]`
2024-02-08 14:11:31 -03:00
Gustavo
f996370337
Remove more serde dependency from tests
2024-02-08 11:10:03 -03:00
Gustavo
c945fa67e3
Fix test warning
2024-02-08 10:59:34 -03:00
Gustavo
adc9d4549e
Fix test warning
2024-02-08 10:58:58 -03:00
Gustavo
aa0a85f64e
Update CHANGELOG.md
2024-02-08 10:52:56 -03:00
Gustavo
10ef8a97c3
Fix another test
2024-02-08 10:48:56 -03:00
Gustavo
85c433e210
Fix test depending on serde
2024-02-08 10:47:37 -03:00
Gustavo
61030c27b0
Implement #[ts(untagged)] #[ts(tag = ...)] and #[ts(tag = ..., content = ...)]
2024-02-08 10:42:59 -03:00
escritorio-gustavo
c3af2e2312
Update CHANGELOG.md
2024-02-05 14:53:13 -03:00
Gustavo
b54c1e1a6f
Add support for #[serde(untagged)] on enum variants
2024-02-05 14:38:18 -03:00
escritorio-gustavo
e4aad3bb62
Update lib.rs doc comment
...
`#[ts(flatten)]` now works with enums
2024-02-05 08:33:32 -03:00
Moritz Bischof
fb4f8f4dc0
update CHANGELOG.md
2024-02-03 22:40:25 +01:00
NyxCode
e19b099def
Merge pull request #224 from Aleph-Alpha/more-tests
...
Tests: Add tests for deeply nested generics and recursive types
2024-02-03 22:08:16 +01:00
Moritz Bischof
78d98cdba9
tests: generics::deeply_nested(), self_referential
2024-02-03 21:33:45 +01:00
escritorio-gustavo
5db57ab746
Merge pull request #218 from Aleph-Alpha/e2e
...
E2E tests + TypeList
Auto export dependencies
2024-02-01 17:05:34 -03:00
escritorio-gustavo
8eb28e5a53
Merge pull request #221 from Aleph-Alpha/typelist
...
Introduce TypeList, always export Dependencies as well
2024-02-01 17:01:51 -03:00
Moritz Bischof
dcec4d89dd
introduce mutex for file exports, change array tuple limit to 64
2024-02-01 20:48:06 +01:00
Gustavo
d9464e3cec
Merge branch 'typelist' of github.com:Aleph-Alpha/ts-rs into typelist
2024-02-01 15:12:41 -03:00
Gustavo
3de39ab39a
Separate recursive exporting into mod
2024-02-01 15:07:55 -03:00