1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! 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`](../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](https://github.com/thermofisherlsms/RawFileReader/blob/main/License.doc)
mod runtime;
mod buffer;

pub use crate::buffer::{RawVec, configure_allocator};
pub use crate::runtime::{BundleStore, DotNetLibraryBundle, get_runtime, set_runtime_dir};