@@ -13,11 +13,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
16+ #![ deny( dead_code, missing_docs, unused_mut) ]
17+ //! This crate contains an SDK that is used to execute specially-
18+ // compiled binaries within a very lightweight hypervisor environment.
1619
1720use std:: sync:: Once ;
1821
19- /// This crate contains an SDK that is used to execute specially-
20- /// compiled binaries within a very lightweight hypervisor environment.
2122use log:: info;
2223/// The `built` crate is used to generate a `built.rs` file that contains
2324/// information about the build environment. This information is used to
@@ -26,13 +27,10 @@ pub(crate) mod built_info {
2627 include ! ( concat!( env!( "OUT_DIR" ) , "/built.rs" ) ) ;
2728}
2829/// Dealing with errors, including errors across VM boundaries
29- #[ deny( dead_code, missing_docs, unused_mut) ]
3030pub mod error;
3131/// Wrappers for host and guest functions.
32- #[ deny( dead_code, missing_docs, unused_mut) ]
3332pub mod func;
3433/// Wrappers for hypervisor implementations
35- #[ deny( dead_code, missing_docs, unused_mut) ]
3634pub mod hypervisor;
3735/// Functionality to establish and manage an individual sandbox's
3836/// memory.
@@ -62,15 +60,12 @@ pub mod hypervisor;
6260///
6361/// The pointer passed to the Entrypoint in the Guest application is the 0x200000 + size of page table + size of code,
6462/// at this address structs below are laid out in this order
65- #[ deny( dead_code, missing_docs, unused_mut) ]
6663pub mod mem;
6764/// Metric definitions and helpers
68- #[ deny( dead_code, missing_docs, unused_mut) ]
6965pub mod metrics;
7066/// The main sandbox implementations. Do not use this module directly in code
7167/// outside this file. Types from this module needed for public consumption are
7268/// re-exported below.
73- #[ deny( dead_code, missing_docs, unused_mut) ]
7469pub mod sandbox;
7570/// `trait`s and other functionality for dealing with defining sandbox
7671/// states and moving between them
@@ -82,7 +77,6 @@ pub(crate) mod seccomp;
8277pub ( crate ) mod signal_handlers;
8378/// Utilities for testing including interacting with `simpleguest.exe`
8479/// and `callbackguest.exe`, our two most basic guest binaries for testing
85- #[ deny( missing_docs, unused_mut) ]
8680#[ cfg( test) ]
8781pub ( crate ) mod testing;
8882
@@ -110,8 +104,8 @@ pub use crate::func::call_ctx::MultiUseGuestCallContext;
110104/// The universal `Result` type used throughout the Hyperlight codebase.
111105pub type Result < T > = core:: result:: Result < T , error:: HyperlightError > ;
112106
113- // Logs an error then returns with it , more or less equivalent to the bail! macro in anyhow
114- // but for HyperlightError instead of anyhow::Error
107+ /// Logs an error then returns with it, more or less equivalent to the bail! macro in anyhow
108+ /// but for HyperlightError instead of anyhow::Error
115109#[ macro_export]
116110macro_rules! log_then_return {
117111 ( $msg: literal $( , ) ?) => { {
@@ -140,7 +134,7 @@ macro_rules! log_then_return {
140134 } ;
141135}
142136
143- // same as log::debug!, but will additionally print to stdout if the print_debug feature is enabled
137+ /// Same as log::debug!, but will additionally print to stdout if the print_debug feature is enabled
144138#[ macro_export]
145139macro_rules! debug {
146140 ( $( $arg: tt) +) =>
0 commit comments