coreclr_hosting_shared/lib.rs
1#![no_std]
2#![warn(clippy::pedantic, clippy::cargo, unsafe_op_in_unsafe_fn)]
3#![allow(
4 clippy::missing_safety_doc,
5 clippy::missing_errors_doc,
6 clippy::missing_panics_doc,
7 clippy::module_name_repetitions,
8 clippy::multiple_crate_versions,
9 clippy::doc_markdown,
10 non_camel_case_types,
11 dead_code
12)]
13
14//! Shared bindings for the [coreclr hosting components](https://github.com/dotnet/runtime/blob/main/docs/design/features/native-hosting.md).
15//!
16//! ## Related crates
17//! - [nethost-sys](https://crates.io/crates/nethost-sys) - bindings and downloader for the nethost library.
18//! - [hostfxr-sys](https://crates.io/crates/hostfxr-sys) - bindings for the hostfxr library.
19//! - [netcorehost](https://crates.io/crates/netcorehost) - rusty wrapper over the nethost and hostfxr libraries.
20//!
21//! ## Additional Information
22//! - [Hosting layer APIs](https://github.com/dotnet/core-setup/blob/master/Documentation/design-docs/hosting-layer-apis.md)
23//! - [Native hosting](https://github.com/dotnet/core-setup/blob/master/Documentation/design-docs/native-hosting.md#runtime-properties)
24//! - [Write a custom .NET Core host to control the .NET runtime from your native code](https://docs.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting)
25//!
26//! ## License
27//! Licensed under the MIT license ([LICENSE](https://github.com/OpenByteDev/netcorehost/blob/master/LICENSE) or <https://opensource.org/licenses/MIT>)
28
29/// Module for constants related to the coreclr hosting components or useful for interacting with them.
30mod consts;
31pub use consts::*;
32
33/// Module for type aliases used in the coreclr hosting components.
34mod type_aliases;
35pub use type_aliases::*;
36
37/// Module for status codes returned by the coreclr hosting components.
38mod status_code;
39pub use status_code::*;