Crate dotnetrawfilereader_sys
source ·Expand description
This crate wraps the librawfilereader
.NET library and its associated dependencies,
manages the creation of a hosted .NET runtime for them, and provides access to the
runtime. See thermorawfilereader
for useful bindings.
For regular use, call get_runtime
to get a runtime handle, or set_runtime_dir
to
pre-specify the location where runtime files need to be cached. Alternatively, set the
DOTNET_RAWFILEREADER_BUNDLE_PATH
environment variable.
If you wish to link with a local nethost
library instead of downloading the latest version
at build time, please see netcorehost
’s documentation. This is still distinct from actually
statically linking with .NET’s coreclr
library which must be installed separately.
§Licensing
By using this library, you agree to the RawFileReader License
Structs§
- A location on the file system and an associated .NET DLL bundle to host a .NET runtime for.
- A sized array for passing heap-allocated memory across the FFI memory boundary to receive buffers from .NET. Dereferences a
&[T]
otherwise.
Enums§
- Represent a directory to store bundled files within.
Functions§
- Configure the
dotnet
runtime to allow it to allocate unmanaged memory from Rust for specific purposes. Directly depends upon the bundleddotnet
library. - Get a reference to a shared .NET runtime and associated DLL bundle
- Set the default runtime directory to
path
that will be accessed byget_runtime