Commit Graph

158 Commits

Author SHA1 Message Date
Marco Mastropaolo
fd497d4205 Added compatibility with repr(C) enum types, defaulting to uint type
Having a `repr(C)` enum is syntactically perfectly legal and used,
	even though the specs are not clear on what underlying type is used
	for such an enum. Checking both documentation online and testing
	with several OS (macOS, Windows, Linux) and architectures
	(x86, x86-64 and aarch64) `u32` (i.e. `uint`) seems to be the
	correct choice on all platforms where C# interop is reasonable to
	happen.
	Still, without this a `repr(C)` enum would produce code that
	wouldn't compile at all.
2023-09-19 19:52:03 +02:00
github-actions[bot]
8861b83a97 Update cargo.toml version to 1.8.2 2023-09-09 01:47:08 +00:00
Yoshifumi Kawai
5524c91958
Merge pull request #49 from Skgland/patch-1
fix braking change of Cysharp/csbindgen#48
2023-09-09 10:45:45 +09:00
Bennet Bleßmann
549fb46350
fix braking change of Cysharp/csbindgen#48 2023-09-08 20:29:40 +02:00
github-actions[bot]
a596032cb5 Update cargo.toml version to 1.8.1 2023-09-08 08:16:39 +00:00
Yoshifumi Kawai
61a19f49a0
Merge pull request #48 from startewho/const_fliter
Change the csharp_generate_const to csharp_generate_const_filter
2023-09-08 17:15:20 +09:00
startewho
82c91e13f5 Update README.md 2023-09-08 15:43:44 +08:00
startewho
c4781ee653 spell error 2023-09-08 15:37:29 +08:00
startewho
cee92d8130 add fliter 2023-09-08 15:31:23 +08:00
github-actions[bot]
a0e4804b3b Update cargo.toml version to 1.8.0 2023-09-07 08:40:51 +00:00
neuecc
6f4c59f928 ReadMe for v1.8.0 2023-09-07 17:38:45 +09:00
Yoshifumi Kawai
297da130fa
Merge pull request #46 from yamachu/support-reference
Support reference type ( & )
2023-09-07 17:21:32 +09:00
Yoshifumi Kawai
d4ba618c35
Merge branch 'main' into support-reference 2023-09-07 17:20:37 +09:00
Yoshifumi Kawai
47458c0f0c
Merge pull request #45 from yamachu/non-repr-attribute-struct-treat-as-empty-struct
Non repr attribute struct treat as unit struct
2023-09-07 17:19:12 +09:00
yamachu
8a047b31c5 Add reference type sample case 2023-09-06 22:27:51 +09:00
yamachu
3fe9084e47 Add reference type parser 2023-09-06 22:27:06 +09:00
yamachu
c27e01bd90 Add sample case 2023-09-06 19:35:34 +09:00
yamachu
dd6330a573 treat and parse structs without repr attributes as unit structs 2023-09-06 19:30:21 +09:00
github-actions[bot]
7b614935e5 Update cargo.toml version to 1.7.5 2023-09-05 07:46:33 +00:00
neuecc
6e27a5ba08 support NonZero 2023-09-05 16:42:44 +09:00
neuecc
510750c6b6 support NoNull, Box 2023-09-05 16:00:50 +09:00
neuecc
7041ca7f48 working for nonnull(not yet) 2023-09-04 20:57:50 +09:00
neuecc
4ed2767538 n2 2023-09-04 20:54:04 +09:00
neuecc
044c0afdf2 generate arg1, arg2, arg3 2023-09-04 20:44:27 +09:00
neuecc
27dd0cd91b Merge remote-tracking branch 'origin/main' into main 2023-09-04 20:23:34 +09:00
Yoshifumi Kawai
fe5b83c78a
Merge pull request #40 from KoolieAid/main
Function pointer parameters now has names
2023-09-04 20:23:00 +09:00
neuecc
9c4c90d3da remove run cargo test in release build 2023-09-04 19:57:33 +09:00
Yoshifumi Kawai
29c496fb27
Merge pull request #42 from Danielmelody/fix-tests
fix: unit tests
2023-09-04 19:41:51 +09:00
Danielhu
f834b72373 ci: add check for unit tests 2023-08-31 00:53:38 +08:00
Danielhu
aa9544a03e fix: unit tests 2023-08-31 00:27:37 +08:00
Go Erik
737bbd1fc5 function pointer params now has names 2023-08-27 03:04:52 +08:00
github-actions[bot]
f33f18bb8c Update cargo.toml version to 1.7.4 2023-08-15 13:12:06 +00:00
neuecc
7cd77da373 ready for 1.7.4 2023-08-15 22:10:32 +09:00
neuecc
1aa65e75fa more generate_const 2023-08-15 22:10:06 +09:00
neuecc
6e5a623352 add csharp_generate_const option 2023-08-15 21:18:30 +09:00
neuecc
511053bb5c ReadMe for csharp_imported_namespaces 2023-08-15 19:56:27 +09:00
Yoshifumi Kawai
32a9013d43
Merge pull request #38 from wavefunk/feat/extra-namespaces
feat: add extra namespaces to the exported file
2023-08-15 19:50:11 +09:00
Yoshifumi Kawai
ffea1be846
Update README.md 2023-07-28 18:00:51 +09:00
Sandeep Nambiar
148caab599 chore: undo formatting (unrelated change) 2023-07-25 04:57:24 +02:00
Sandeep Nambiar
8a837b8973 feat: add extra namespaces to the exported file 2023-07-25 04:52:42 +02:00
Yoshifumi Kawai
e9071f3bd5
Update README.md 2023-07-02 10:26:11 +09:00
Yoshifumi Kawai
134e4f35fa
Update README.md 2023-06-30 17:02:45 +09:00
github-actions[bot]
8909a4d5fb Update cargo.toml version to 1.7.3 2023-05-22 08:36:07 +00:00
Yoshifumi Kawai
7f3e57eada
Merge pull request #34 from dsmiller95/main
Support code inside Module blocks
2023-05-22 17:32:18 +09:00
Dan Miller
ef86e0c3ab add performance suggestion 2023-05-16 18:59:26 -05:00
Dan Miller
1a9c89d5c3 walk module tree recursively when parsing for symbols from any rust file 2023-05-16 18:57:34 -05:00
Yoshifumi Kawai
eaec0db14c
Merge pull request #29 from NicholasMaselli/patch-1
Update README.md To Add Main() to the build.rs
2023-04-28 12:08:41 +09:00
Nicholas Maselli
09ef58a304
Update README.md 2023-04-27 11:30:35 -04:00
Yoshifumi Kawai
1a306d6d12
Merge pull request #27 from higumachan/patch-1
Add a setting to GetStarted to build crate into a dynamic library.
2023-04-27 16:43:00 +09:00
Yuta Hinokuma
6503d1c738
Add a setting to GetStarted to build crate into a dynamic library. 2023-04-25 19:56:22 +09:00