mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2025-01-09 05:17:47 +00:00
rm
This commit is contained in:
parent
47fd97eb37
commit
62a556f0cd
11
README.md
11
README.md
@ -14,10 +14,11 @@ There are usually many pains involved in using the C Library with C#. Not only i
|
||||
csbindgen can easily bring native C libraries into C# through Rust. csbindgen generates Rust extern code and C# DllImport code to work with C# from code generated from C by bindgen. With cc crate or cmake crate, C code is linked to the single rust native library.
|
||||
|
||||
showcase:
|
||||
* [lz4_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/5b5469d9c99ab2c61369fbd941eb88c89e227845/dotnet-sandbox/lz4_bindgen.cs) : [LZ4](https://github.com/lz4/lz4) compression library C# binding
|
||||
* [zstd_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/5b5469d9c99ab2c61369fbd941eb88c89e227845/dotnet-sandbox/zstd_bindgen.cs) : [Zstandard](https://github.com/facebook/zstd) compression library C# binding
|
||||
* [quiche_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/5b5469d9c99ab2c61369fbd941eb88c89e227845/dotnet-sandbox/quiche_bindgen.cs) : [cloudflare/quiche](https://github.com/cloudflare/quiche) QUIC and HTTP/3 library C# binding
|
||||
* [bullet3_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/5b5469d9c99ab2c61369fbd941eb88c89e227845/dotnet-sandbox/bullet3_bindgen.cs) : [Bullet Physics SDK](https://github.com/bulletphysics/bullet3) C# binding
|
||||
* [lz4_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/47fd97eb379beeb278d7546c6d0b9a404b28fbd1/dotnet-sandbox/lz4_bindgen.cs) : [LZ4](https://github.com/lz4/lz4) compression library C# binding
|
||||
* [zstd_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/47fd97eb379beeb278d7546c6d0b9a404b28fbd1/dotnet-sandbox/zstd_bindgen.cs) : [Zstandard](https://github.com/facebook/zstd) compression library C# binding
|
||||
* [quiche_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/47fd97eb379beeb278d7546c6d0b9a404b28fbd1/dotnet-sandbox/quiche_bindgen.cs) : [cloudflare/quiche](https://github.com/cloudflare/quiche) QUIC and HTTP/3 library C# binding
|
||||
* [bullet3_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/47fd97eb379beeb278d7546c6d0b9a404b28fbd1/dotnet-sandbox/bullet3_bindgen.cs) : [Bullet Physics SDK](https://github.com/bulletphysics/bullet3) C# binding
|
||||
* [sqlite3_bindgen.cs](https://github.com/Cysharp/csbindgen/blob/47fd97eb379beeb278d7546c6d0b9a404b28fbd1/dotnet-sandbox/sqlite3_bindgen.cs) : [SQLite](https://www.sqlite.org/index.html) C# binding
|
||||
|
||||
Getting Started
|
||||
---
|
||||
@ -264,7 +265,7 @@ pub unsafe extern "C" fn {rust_method_prefix}LZ4_versionNumber() -> c_int
|
||||
|
||||
`csharp_*` option template is same as Rust to C#, see above documentation.
|
||||
|
||||
Adjust `rust_file_header` and `rust_method_type_path` to match your module configuration.
|
||||
Adjust `rust_file_header` for match your module configuration, recommend to use `::*`, also using `rust_method_type_path` that add explicitly resolve path.
|
||||
|
||||
`method_filter` allows you to specify which methods to exclude; if unspecified, methods prefixed with `_` are excluded by default. C libraries are usually published with a specific prefix. For example, [LZ4](https://github.com/lz4/lz4) is `LZ4`, [ZStandard](https://github.com/facebook/zstd) is `ZSTD_`, [quiche](https://github.com/cloudflare/quiche) is `quiche_`, [Bullet Physics SDK](https://github.com/bulletphysics/bullet3) is `b3`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user