Expand description
FFI bindings for hostfxr.
§Related crates
- nethost-sys - bindings for the nethost library.
- coreclr-hosting-shared - shared bindings between this crate and nethost-sys.
- netcorehost - rusty wrapper over the nethost and hostfxr libraries.
§Additional Information
- Hosting layer APIs
- Native hosting
- Write a custom .NET Core host to control the .NET runtime from your native code
§License
Licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT)
Re-exports§
pub use dlopen2;
Modules§
- hostfxr_
resolve_ sdk2_ flags_ t netcore2_1
- Flag constants for
hostfxr_resolve_sdk2
.
Structs§
- hostfxr_
initialize_ parameters - A structure that stores parameters which are common to all forms of initialization.
Enums§
- hostfxr_
delegate_ type netcore3_0
- Enum representing the type of runtime functionality requested with
hostfxr_get_runtime_delegate
. - hostfxr_
resolve_ sdk2_ result_ key_ t netcore2_1
Constants§
- PATH_
LIST_ SEPARATOR - Seperator char used to seperate a list of paths in a string.
- UNMANAGED_
CALLERS_ ONLY_ METHOD net5_0
- Signifies that the target method is marked with the
UnmanagedCallersOnlyAttribute
. This means that the name alone can identify the target method.
Type Aliases§
- component_
entry_ point_ fn netcore3_0
- Signature of delegate returned by
load_assembly_and_get_function_pointer_fn
whendelegate_type_name == null
(default) - get_
function_ pointer_ fn net5_0
- Signature of delegate returned by
hostfxr_get_runtime_delegate
for typehdt_get_function_pointer
- hostfxr_
error_ writer_ fn netcore3_0
- Error reporting function signature.
- hostfxr_
get_ available_ sdks_ result_ fn netcore2_1
- Result callback signature for
hostfxr_get_available_sdks
. - hostfxr_
handle - Handle to a hostfxr context.
- hostfxr_
resolve_ sdk2_ result_ fn netcore2_1
- Result callback signature for
hostfxr_resolve_sdk2
. - load_
assembly_ and_ get_ function_ pointer_ fn netcore3_0
- Signature of delegate returned by
hostfxr_get_runtime_delegate
for typehdt_load_assembly_and_get_function_pointer
- load_
assembly_ bytes_ fn net8_0
- Signature of delegate returned by
hostfxr_get_runtime_delegate
for typehdt_load_assembly_bytes
- load_
assembly_ fn net8_0
- Signature of delegate returned by
hostfxr_get_runtime_delegate
for typehdt_load_assembly
.