]> git.bitcoin.ninja Git - ldk-java/log
ldk-java
2 months agoBe more conservative about holding a ref to a cloned object
Matt Corallo [Sat, 3 Aug 2024 02:37:12 +0000 (02:37 +0000)]
Be more conservative about holding a ref to a cloned object

If we clone an object before passing to/from native code, we
generally don't need to hold a reference to that object in the
struct that owns the method.

The one exception we include here is if the object being passed is
either a trait or holds a reference to a trait. Its not clear if
this is required but it seems like a potential sharp edge.

5 months agoMerge pull request #163 from TheBlueMatt/main v0.0.123.1
Matt Corallo [Fri, 7 Jun 2024 13:14:46 +0000 (06:14 -0700)]
Merge pull request #163 from TheBlueMatt/main

Update to c-bindings 0.0.123.1

5 months ago[TS] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
Matt Corallo [Thu, 6 Jun 2024 14:33:00 +0000 (14:33 +0000)]
[TS] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1

5 months ago[C#] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
Matt Corallo [Thu, 6 Jun 2024 14:10:28 +0000 (14:10 +0000)]
[C#] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1

5 months ago[Java] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
Matt Corallo [Thu, 6 Jun 2024 14:09:30 +0000 (14:09 +0000)]
[Java] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1

5 months ago[C#] Run tests against release dylib on OSX in CI
Matt Corallo [Thu, 6 Jun 2024 14:06:31 +0000 (14:06 +0000)]
[C#] Run tests against release dylib on OSX in CI

5 months ago[Java] Change OSX CI to just check release JARs, don't build
Matt Corallo [Thu, 6 Jun 2024 13:40:31 +0000 (13:40 +0000)]
[Java] Change OSX CI to just check release JARs, don't build

5 months agoUpdate README with a bit more info on how Rusty things are mapped
Matt Corallo [Mon, 13 May 2024 18:47:30 +0000 (18:47 +0000)]
Update README with a bit more info on how Rusty things are mapped

Fixes #160

5 months ago[C#] Run tests against release library in determinism CI run
Matt Corallo [Fri, 24 May 2024 15:32:07 +0000 (15:32 +0000)]
[C#] Run tests against release library in determinism CI run

5 months ago[C#] Add a simple test of BOLT12 offer parsing
Matt Corallo [Fri, 24 May 2024 15:18:27 +0000 (15:18 +0000)]
[C#] Add a simple test of BOLT12 offer parsing

5 months ago[C#] Fix bool passing
Matt Corallo [Fri, 7 Jun 2024 01:26:57 +0000 (01:26 +0000)]
[C#] Fix bool passing

It turns out that C# always expects bools to be passed as 4-byte
ints, which matches the classic C definition (which was usually
typedef'd to int) but is platform-dependent. On some platforms we
were building with 1-byte ints which led to bools getting mangled
when passing them to C#.

Luckily we already have bools passed to C# separated from bools
passed to Rust, so we can simply redefine `jboolean` to `int32_t`.

5 months agoMerge pull request #162 from TheBlueMatt/main
Matt Corallo [Fri, 24 May 2024 15:34:05 +0000 (08:34 -0700)]
Merge pull request #162 from TheBlueMatt/main

Additional CI Debugging

5 months agoMerge pull request #161 from TheBlueMatt/main v0.0.123.0
Matt Corallo [Thu, 16 May 2024 13:07:42 +0000 (06:07 -0700)]
Merge pull request #161 from TheBlueMatt/main

0.0.123.0

5 months ago[Java] Print error stack trace when tests fail
Matt Corallo [Thu, 16 May 2024 01:20:26 +0000 (01:20 +0000)]
[Java] Print error stack trace when tests fail

5 months ago[C#] Install mono-devel in determinism check to get semantic diff
Matt Corallo [Thu, 16 May 2024 01:20:09 +0000 (01:20 +0000)]
[C#] Install mono-devel in determinism check to get semantic diff

5 months agoUpdate branch references to 0.0.123 in CI
Matt Corallo [Wed, 15 May 2024 20:07:57 +0000 (20:07 +0000)]
Update branch references to 0.0.123 in CI

5 months ago[C#] Update test to LDK 0.0.123 and pay a BOLT12 offer
Matt Corallo [Mon, 13 May 2024 18:21:45 +0000 (18:21 +0000)]
[C#] Update test to LDK 0.0.123 and pay a BOLT12 offer

5 months ago[C#] Update auto-generated bindings to LDK 0.0.123
Matt Corallo [Mon, 13 May 2024 17:31:12 +0000 (17:31 +0000)]
[C#] Update auto-generated bindings to LDK 0.0.123

5 months ago[TS] Update tests to LDK 0.0.123
Matt Corallo [Sun, 12 May 2024 20:52:23 +0000 (20:52 +0000)]
[TS] Update tests to LDK 0.0.123

5 months ago[TS] Update auto-generated bindings to LDK 0.0.123
Matt Corallo [Sun, 12 May 2024 20:48:54 +0000 (20:48 +0000)]
[TS] Update auto-generated bindings to LDK 0.0.123

5 months ago[TS] Add one more method style for callback definitions
Matt Corallo [Sun, 12 May 2024 20:49:35 +0000 (20:49 +0000)]
[TS] Add one more method style for callback definitions

5 months ago[Java] Update CMC and Human peer test to LDK 0.0.123
Matt Corallo [Sun, 12 May 2024 19:49:18 +0000 (19:49 +0000)]
[Java] Update CMC and Human peer test to LDK 0.0.123

5 months ago[Java] Update auto-generated bindings to LDK 0.0.123
Matt Corallo [Sun, 12 May 2024 19:48:39 +0000 (19:48 +0000)]
[Java] Update auto-generated bindings to LDK 0.0.123

5 months agoOnly handle `null` objects when its allowed
Matt Corallo [Mon, 13 May 2024 17:01:48 +0000 (17:01 +0000)]
Only handle `null` objects when its allowed

This should result in hitting NPEs rather than in-native
panics/SEGFAULTs.

5 months agoAvoid manual memory management in NioPeerHandler
Matt Corallo [Sun, 12 May 2024 19:36:42 +0000 (19:36 +0000)]
Avoid manual memory management in NioPeerHandler

We still free the native memory optimistically, but avoid disabling
the GC being able to free memory entirely.

Fixes #157

5 months agoAdd a new `force_free` in Java for cases where its useful
Matt Corallo [Sun, 12 May 2024 14:47:29 +0000 (14:47 +0000)]
Add a new `force_free` in Java for cases where its useful

5 months agoMap the new `LDKTweakedPublicKey` as a 32-byte array
Matt Corallo [Sun, 12 May 2024 14:47:13 +0000 (14:47 +0000)]
Map the new `LDKTweakedPublicKey` as a 32-byte array

5 months agoSupport 4-tuples
Matt Corallo [Sun, 12 May 2024 14:47:02 +0000 (14:47 +0000)]
Support 4-tuples

6 months agoMerge pull request #158 from TheBlueMatt/main
Matt Corallo [Fri, 26 Apr 2024 15:24:17 +0000 (08:24 -0700)]
Merge pull request #158 from TheBlueMatt/main

Update CI references to 0.0.122

6 months agoUpdate CI references to 0.0.122 v0.0.122.0
Matt Corallo [Thu, 25 Apr 2024 20:54:46 +0000 (20:54 +0000)]
Update CI references to 0.0.122

7 months agoMerge pull request #155 from TheBlueMatt/main v0.0.121.3
Matt Corallo [Wed, 20 Mar 2024 16:02:30 +0000 (16:02 +0000)]
Merge pull request #155 from TheBlueMatt/main

Cut 0.0.121.3

7 months ago[Java] Upgrade Android deterministic build to Debian bookworm
Matt Corallo [Wed, 20 Mar 2024 13:30:23 +0000 (13:30 +0000)]
[Java] Upgrade Android deterministic build to Debian bookworm

7 months ago[Java] Update auto-generated bindings
Matt Corallo [Wed, 13 Mar 2024 22:58:43 +0000 (22:58 +0000)]
[Java] Update auto-generated bindings

7 months agoAlso don't pass `--target` to clang on *-androideabi
Matt Corallo [Wed, 13 Mar 2024 22:58:06 +0000 (22:58 +0000)]
Also don't pass `--target` to clang on *-androideabi

... but do pass the march/mcpu argument.

7 months agoMerge pull request #154 from TheBlueMatt/main
Matt Corallo [Wed, 13 Mar 2024 22:09:15 +0000 (22:09 +0000)]
Merge pull request #154 from TheBlueMatt/main

Fix typo introduced in 2dc5209c398ec23e5ce4f2a287bb55c33c681811

7 months agoFix typo introduced in 2dc5209c398ec23e5ce4f2a287bb55c33c681811
Matt Corallo [Wed, 13 Mar 2024 22:08:47 +0000 (22:08 +0000)]
Fix typo introduced in 2dc5209c398ec23e5ce4f2a287bb55c33c681811

7 months agoMerge pull request #153 from TheBlueMatt/main
Matt Corallo [Wed, 13 Mar 2024 21:38:05 +0000 (21:38 +0000)]
Merge pull request #153 from TheBlueMatt/main

Skip passing the `--target` to clang on Android

7 months agoSkip passing the `--target` to clang on Android
Matt Corallo [Wed, 13 Mar 2024 21:37:21 +0000 (21:37 +0000)]
Skip passing the `--target` to clang on Android

7 months agoMerge pull request #152 from siwatanejo/master
Matt Corallo [Wed, 13 Mar 2024 19:36:14 +0000 (19:36 +0000)]
Merge pull request #152 from siwatanejo/master

CI: fix typo in git clone command

7 months agoCI: fix typo in git clone command
siwatanejo [Wed, 13 Mar 2024 18:25:07 +0000 (19:25 +0100)]
CI: fix typo in git clone command

Introduced in:
94ae3f5ecc951f3d527f97ea10a8a4d897e6b696

7 months agoMerge pull request #150 from TheBlueMatt/main
Matt Corallo [Wed, 13 Mar 2024 14:57:01 +0000 (14:57 +0000)]
Merge pull request #150 from TheBlueMatt/main

Ensure bindings statics run before enums try to call native init

7 months ago[C#] Very marginally clean up get_java_arr_elem conditionals
Matt Corallo [Wed, 13 Mar 2024 14:56:08 +0000 (14:56 +0000)]
[C#] Very marginally clean up get_java_arr_elem conditionals

7 months agoSkip the strip step on Windows
Matt Corallo [Tue, 12 Mar 2024 14:17:58 +0000 (14:17 +0000)]
Skip the strip step on Windows

This partially reverts 5a78aa805d7c550a855d6b589907cab4ab6ca476

7 months ago[Java] Ensure bindings statics run before enums call native code
Matt Corallo [Thu, 7 Mar 2024 18:02:33 +0000 (18:02 +0000)]
[Java] Ensure bindings statics run before enums call native code

Fixes #149.

7 months agoMerge pull request #151 from aarani/fixStringArrayDecode
Matt Corallo [Wed, 13 Mar 2024 14:54:04 +0000 (14:54 +0000)]
Merge pull request #151 from aarani/fixStringArrayDecode

CSharp: fix LDKStr array decoding

8 months agoCSharp: fix LDKStr array decoding
Afshin Arani [Sun, 10 Mar 2024 10:40:17 +0000 (12:40 +0200)]
CSharp: fix LDKStr array decoding

Strings are encoded as array of string references, those references
are actually pointers to the string location and have 64bit in size,
but decoding logic was decoding those pointers as 32bit which caused
the following exception, this commit fixes that.

Exception:

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at InternalUtils.getArrayLength(Int64)
   at InternalUtils.decodeUint8Array(Int64)
   at InternalUtils.decodeString(Int64)
   at org.ldk.structs.Result_CVec_StrZIOErrorZ+Result_CVec_StrZIOErrorZ_OK..ctor(System.Object, Int64)
   at org.ldk.structs.Result_CVec_StrZIOErrorZ.constr_from_ptr(Int64)
   at org.ldk.structs.KVStore.list(System.String, System.String)

8 months agoMerge pull request #148 from TheBlueMatt/main v0.0.121.2
Matt Corallo [Thu, 7 Mar 2024 14:38:01 +0000 (14:38 +0000)]
Merge pull request #148 from TheBlueMatt/main

Build macOS binaries in the CI-built release C# Nupkg

8 months agoMerge pull request #147 from TheBlueMatt/main
Matt Corallo [Thu, 7 Mar 2024 14:33:39 +0000 (14:33 +0000)]
Merge pull request #147 from TheBlueMatt/main

Various C# build fixes

8 months agoBuild macOS binaries in the CI-built release C# Nupkg
Matt Corallo [Tue, 5 Mar 2024 15:04:10 +0000 (15:04 +0000)]
Build macOS binaries in the CI-built release C# Nupkg

8 months agoAlways use -march on x86, even when targeting MacOS.
Matt Corallo [Sat, 2 Mar 2024 13:20:59 +0000 (13:20 +0000)]
Always use -march on x86, even when targeting MacOS.

8 months agoFix `$IS_MAC` usage in c_sharp generation
Matt Corallo [Sat, 2 Mar 2024 03:22:40 +0000 (03:22 +0000)]
Fix `$IS_MAC` usage in c_sharp generation

8 months agoPass -isysroot to $CC when targeting MacOS with MACOS_SDK set
Matt Corallo [Fri, 1 Mar 2024 20:29:03 +0000 (20:29 +0000)]
Pass -isysroot to $CC when targeting MacOS with MACOS_SDK set

9 months agoStrip LLVM BC from resulting binaries v0.0.121.1
Matt Corallo [Thu, 1 Feb 2024 21:53:16 +0000 (21:53 +0000)]
Strip LLVM BC from resulting binaries

9 months ago[C#] Use new X-Lang LTO for C# Windows builds
Matt Corallo [Thu, 1 Feb 2024 19:33:08 +0000 (19:33 +0000)]
[C#] Use new X-Lang LTO for C# Windows builds

9 months agoPass --target/-mcpu/-march/-mtune to all $CC calls
Matt Corallo [Thu, 1 Feb 2024 19:22:57 +0000 (19:22 +0000)]
Pass --target/-mcpu/-march/-mtune to all $CC calls

9 months ago[C#] Use `Heap{Alloc,Free}` rather than `malloc`/`free` on Windows
Matt Corallo [Thu, 1 Feb 2024 17:31:45 +0000 (17:31 +0000)]
[C#] Use `Heap{Alloc,Free}` rather than `malloc`/`free` on Windows

We generally expect to allocate pointers in C which Rust will free,
and vice versa. On Windows, this requires that we use the same
allocation path as Rust's stdlib does, which is actually
`Heap{Alloc,Free}`, not `malloc`/`free`. Here, we swap the heap
allocation functions we call, fixing heap corruption issues on
Windows.

9 months agoMerge pull request #146 from TheBlueMatt/main
Matt Corallo [Mon, 29 Jan 2024 19:32:20 +0000 (19:32 +0000)]
Merge pull request #146 from TheBlueMatt/main

Update to LDK 0.0.121

9 months agoRestore android builds to Debian bullseye v0.0.121.0
Matt Corallo [Sat, 27 Jan 2024 00:29:44 +0000 (00:29 +0000)]
Restore android builds to Debian bullseye

There was never a reason to upgrade, and while it doesn't matter,
I'm not upgrading locally yet.

9 months agoFix Java CI determinism validation to ignore C# output
Matt Corallo [Fri, 26 Jan 2024 21:36:03 +0000 (21:36 +0000)]
Fix Java CI determinism validation to ignore C# output

9 months agoUpload CI-built release artifacts to enable better debugging
Matt Corallo [Fri, 26 Jan 2024 19:59:57 +0000 (19:59 +0000)]
Upload CI-built release artifacts to enable better debugging

9 months agoUpdate CI references to LDK 0.0.121 branches
Matt Corallo [Tue, 23 Jan 2024 23:58:35 +0000 (23:58 +0000)]
Update CI references to LDK 0.0.121 branches

9 months ago[C#] Update tests to LDK 0.0.121 API
Matt Corallo [Wed, 24 Jan 2024 03:10:52 +0000 (03:10 +0000)]
[C#] Update tests to LDK 0.0.121 API

9 months ago[C#] Update auto-generated C# bindings
Matt Corallo [Wed, 24 Jan 2024 03:32:37 +0000 (03:32 +0000)]
[C#] Update auto-generated C# bindings

9 months ago[TS] Update tests for LDK 0.0.121 API
Matt Corallo [Wed, 24 Jan 2024 01:40:31 +0000 (01:40 +0000)]
[TS] Update tests for LDK 0.0.121 API

9 months ago[TS] Update auto-generated bindings
Matt Corallo [Wed, 24 Jan 2024 00:20:52 +0000 (00:20 +0000)]
[TS] Update auto-generated bindings

9 months ago[Java] Update batteries and tests to LDK 0.0.121
Matt Corallo [Tue, 23 Jan 2024 23:54:08 +0000 (23:54 +0000)]
[Java] Update batteries and tests to LDK 0.0.121

9 months ago[Java] Update auto-generated Java bindings to LDK 0.0.121
Matt Corallo [Tue, 23 Jan 2024 23:53:18 +0000 (23:53 +0000)]
[Java] Update auto-generated Java bindings to LDK 0.0.121

9 months agoDrop old manual implementations of the `Tx{In,Out}` getters
Matt Corallo [Tue, 23 Jan 2024 23:52:11 +0000 (23:52 +0000)]
Drop old manual implementations of the `Tx{In,Out}` getters

...as these are now provided directly upstream.

9 months agoAdd manual implementation of the new `WitnessVersion` struct
Matt Corallo [Tue, 23 Jan 2024 23:51:51 +0000 (23:51 +0000)]
Add manual implementation of the new `WitnessVersion` struct

9 months ago[TS] Add one additional call function semantic
Matt Corallo [Wed, 24 Jan 2024 01:31:39 +0000 (01:31 +0000)]
[TS] Add one additional call function semantic

9 months ago[C#] Free array buffers passed to C# after we've decoded them
Matt Corallo [Wed, 24 Jan 2024 03:17:10 +0000 (03:17 +0000)]
[C#] Free array buffers passed to C# after we've decoded them

9 months ago[C#] Use an instance of the callback delegate, not the fn itself
Matt Corallo [Tue, 23 Jan 2024 21:19:51 +0000 (21:19 +0000)]
[C#] Use an instance of the callback delegate, not the fn itself

When passing the callback delegate to C from C# during static init,
it appears (but only on Windows) this actually creates a C# class
instance for the delegate and passes that. However, that class
instance is eventually GC'd and our callbacks will start failing.

Instead, we create a static instance of of the delegate and pass
that to C.

9 months ago[C#] Check int lengths at compile time
Matt Corallo [Tue, 23 Jan 2024 21:17:20 +0000 (21:17 +0000)]
[C#] Check int lengths at compile time

...cause I was using the wrong headers trying to do debug builds
and it took much too long to debug.

9 months ago[Java] Fix libcode.version argument to not reference C#
Matt Corallo [Mon, 29 Jan 2024 05:24:51 +0000 (05:24 +0000)]
[Java] Fix libcode.version argument to not reference C#

This caused the generated shared library to export no symbols.

9 months ago[Java] Re-introduce glibc versioning checks, but only up to 2.34
Matt Corallo [Mon, 20 Nov 2023 23:05:58 +0000 (23:05 +0000)]
[Java] Re-introduce glibc versioning checks, but only up to 2.34

11 months agoMerge pull request #145 from TheBlueMatt/main
Matt Corallo [Fri, 17 Nov 2023 01:56:29 +0000 (01:56 +0000)]
Merge pull request #145 from TheBlueMatt/main

Switch C# builds to use `dotnet` on Fedora

11 months ago[C#] Upload the release zip as a CI artifact v0.0.118.0-alpha1
Matt Corallo [Thu, 16 Nov 2023 20:10:34 +0000 (20:10 +0000)]
[C#] Upload the release zip as a CI artifact

11 months agoTreat Fedora like Linux...because they think they're so special 🙄
Matt Corallo [Thu, 16 Nov 2023 04:33:04 +0000 (04:33 +0000)]
Treat Fedora like Linux...because they think they're so special ðŸ™„

11 months ago[C#] Update auto-generated bindings
Matt Corallo [Thu, 16 Nov 2023 19:23:34 +0000 (19:23 +0000)]
[C#] Update auto-generated bindings

11 months ago[C#] Add -lntdll to windows builds as rustc relies on it
Matt Corallo [Thu, 16 Nov 2023 04:22:00 +0000 (04:22 +0000)]
[C#] Add -lntdll to windows builds as rustc relies on it

11 months ago[C#] Fix compile warnings which have become errors in newer clang
Matt Corallo [Thu, 16 Nov 2023 04:21:13 +0000 (04:21 +0000)]
[C#] Fix compile warnings which have become errors in newer clang

11 months ago[C#] Switch to net6.0 for the "target", though unclear if it does much
Matt Corallo [Thu, 16 Nov 2023 23:42:34 +0000 (23:42 +0000)]
[C#] Switch to net6.0 for the "target", though unclear if it does much

11 months ago[C#] Switch to `dotnet` for releases
Matt Corallo [Thu, 16 Nov 2023 03:41:09 +0000 (03:41 +0000)]
[C#] Switch to `dotnet` for releases

Apparently some tooling doesn't like mono-compiled libraries, so
we just use `dotnet` for releases instead.

11 months ago[C#] Set the "build id" to a dummy value to improve determinism
Matt Corallo [Thu, 16 Nov 2023 22:21:36 +0000 (22:21 +0000)]
[C#] Set the "build id" to a dummy value to improve determinism

11 months ago[C#] Use faketime explicitly when compiling
Matt Corallo [Thu, 16 Nov 2023 21:36:10 +0000 (21:36 +0000)]
[C#] Use faketime explicitly when compiling

As targeting windows has a timestamp in the resulting dll, which we
need to be deterministic.

12 months agoMerge pull request #144 from TheBlueMatt/main
Matt Corallo [Sat, 11 Nov 2023 03:48:18 +0000 (03:48 +0000)]
Merge pull request #144 from TheBlueMatt/main

Update README to remove stale build instructions, mention C#

12 months agoUpdate README to remove stale build instructions, mention C#
Matt Corallo [Sat, 11 Nov 2023 03:47:39 +0000 (03:47 +0000)]
Update README to remove stale build instructions, mention C#

12 months agoMerge pull request #143 from TheBlueMatt/main
Matt Corallo [Sat, 11 Nov 2023 03:41:31 +0000 (03:41 +0000)]
Merge pull request #143 from TheBlueMatt/main

[C#] Set license URL to the deprecated marker, fix file path

12 months ago[C#] Set license URL to the deprecated marker, fix file path
Matt Corallo [Sat, 11 Nov 2023 03:27:57 +0000 (03:27 +0000)]
[C#] Set license URL to the deprecated marker, fix file path

Apparently this is required when using a LICENSE file for nuget.org

12 months agoMerge pull request #142 from TheBlueMatt/main
Matt Corallo [Sat, 11 Nov 2023 03:24:39 +0000 (03:24 +0000)]
Merge pull request #142 from TheBlueMatt/main

Initial 0.0.118.0-alpha0 C# Release

12 months ago[C#] Add CI testing for C#
Matt Corallo [Fri, 10 Nov 2023 01:30:32 +0000 (01:30 +0000)]
[C#] Add CI testing for C#

12 months ago[C#] Update build commands to match Java, add win and release bins
Matt Corallo [Thu, 9 Nov 2023 21:34:19 +0000 (21:34 +0000)]
[C#] Update build commands to match Java, add win and release bins

Also fixes a mono-csc argument error

12 months ago[C#] Add packaging artifacts to build a .nuget zip
Matt Corallo [Thu, 9 Nov 2023 17:53:23 +0000 (17:53 +0000)]
[C#] Add packaging artifacts to build a .nuget zip

12 months ago[C#] Add some initial C# tests
Matt Corallo [Tue, 7 Nov 2023 23:26:33 +0000 (23:26 +0000)]
[C#] Add some initial C# tests

12 months ago[C#] Update auto-generated C# bindings
Matt Corallo [Tue, 7 Nov 2023 23:33:37 +0000 (23:33 +0000)]
[C#] Update auto-generated C# bindings

12 months ago[C#] Drop reference to `assert` which makes building on Win hard
Matt Corallo [Thu, 9 Nov 2023 23:25:27 +0000 (23:25 +0000)]
[C#] Drop reference to `assert` which makes building on Win hard

12 months ago[C#] Remove version file which should not have been checked in
Matt Corallo [Thu, 9 Nov 2023 21:06:30 +0000 (21:06 +0000)]
[C#] Remove version file which should not have been checked in

12 months ago[C#] Add `-unsafe` to mono-csc and build C library
Matt Corallo [Tue, 7 Nov 2023 23:27:38 +0000 (23:27 +0000)]
[C#] Add `-unsafe` to mono-csc and build C library

12 months ago[C#] Drop marshalling generation
Matt Corallo [Tue, 7 Nov 2023 23:25:37 +0000 (23:25 +0000)]
[C#] Drop marshalling generation

Given we now do array/string conversion using the TypeScript logic
we no longer need to use the C# marshalling nonsense, which we
remove the remnants of here.

12 months ago[C#] Move C# side to a TypeScript-based array/string conversion
Matt Corallo [Tue, 7 Nov 2023 23:22:44 +0000 (23:22 +0000)]
[C#] Move C# side to a TypeScript-based array/string conversion

Using the marshallers properly will be a ton of additional work,
and its not clear we can do it in the C -> C# direction anyway.
Instead, we can trivially just use the TypeScript conversion logic
which converts everything through pointers anyway.

We'd previously done this on the C side of things, but here we do
it on the C# side as well.