diff --git a/lib/clif-backend/src/lib.rs b/lib/clif-backend/src/lib.rs index eed22d39ea7..60f19a877ed 100644 --- a/lib/clif-backend/src/lib.rs +++ b/lib/clif-backend/src/lib.rs @@ -7,6 +7,9 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + mod cache; mod code; mod libcalls; diff --git a/lib/dev-utils/src/lib.rs b/lib/dev-utils/src/lib.rs index 76ae6804fc7..2a470bba40d 100644 --- a/lib/dev-utils/src/lib.rs +++ b/lib/dev-utils/src/lib.rs @@ -1,2 +1,5 @@ +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + pub mod file_descriptor; pub mod stdio; diff --git a/lib/emscripten/src/lib.rs b/lib/emscripten/src/lib.rs index c09f9b772c3..ba25b4be82a 100644 --- a/lib/emscripten/src/lib.rs +++ b/lib/emscripten/src/lib.rs @@ -7,6 +7,9 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + #[macro_use] extern crate wasmer_runtime_core; diff --git a/lib/kernel-loader/src/lib.rs b/lib/kernel-loader/src/lib.rs index 51ca6c7da54..37f51a424ce 100644 --- a/lib/kernel-loader/src/lib.rs +++ b/lib/kernel-loader/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + pub mod service; use service::{ImportInfo, LoadProfile, RunProfile, ServiceContext, TableEntryRequest}; diff --git a/lib/kernel-net/src/lib.rs b/lib/kernel-net/src/lib.rs index 4686867a7ce..cc6f918204b 100644 --- a/lib/kernel-net/src/lib.rs +++ b/lib/kernel-net/src/lib.rs @@ -1,5 +1,7 @@ #![cfg(all(target_arch = "wasm32", target_os = "wasi"))] #![feature(wasi_ext)] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] use std::cell::RefCell; use std::fs::File; diff --git a/lib/llvm-backend/src/lib.rs b/lib/llvm-backend/src/lib.rs index 480be9711c6..8194f797a45 100644 --- a/lib/llvm-backend/src/lib.rs +++ b/lib/llvm-backend/src/lib.rs @@ -8,6 +8,8 @@ )] #![cfg_attr(not(target_os = "windows"), deny(dead_code))] #![cfg_attr(nightly, feature(unwind_attributes))] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] mod backend; mod code; diff --git a/lib/middleware-common-tests/src/lib.rs b/lib/middleware-common-tests/src/lib.rs index 31b3e1065f9..0b6754c5f65 100644 --- a/lib/middleware-common-tests/src/lib.rs +++ b/lib/middleware-common-tests/src/lib.rs @@ -148,5 +148,4 @@ mod tests { // verify it used the correct number of points assert_eq!(get_points_used(&instance), 109); // Used points will be slightly more than `limit` because of the way we do gas checking. } - } diff --git a/lib/middleware-common/src/lib.rs b/lib/middleware-common/src/lib.rs index 929558f252e..c7900c83a73 100644 --- a/lib/middleware-common/src/lib.rs +++ b/lib/middleware-common/src/lib.rs @@ -7,5 +7,8 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + pub mod call_trace; pub mod metering; diff --git a/lib/runtime-abi/src/lib.rs b/lib/runtime-abi/src/lib.rs index 237e351b148..84923b43782 100644 --- a/lib/runtime-abi/src/lib.rs +++ b/lib/runtime-abi/src/lib.rs @@ -1,4 +1,8 @@ #![deny(dead_code, unused_imports, unused_variables, unused_unsafe, unreachable_patterns)] + +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + #[cfg(not(target_os = "windows"))] #[macro_use] extern crate failure; diff --git a/lib/runtime-c-api/src/lib.rs b/lib/runtime-c-api/src/lib.rs index 0fde6d33094..4dae18cd590 100644 --- a/lib/runtime-c-api/src/lib.rs +++ b/lib/runtime-c-api/src/lib.rs @@ -1,3 +1,6 @@ +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + //! # Wasmer Runtime C API //! //! Wasmer is a standalone JIT WebAssembly runtime, aiming to be fully diff --git a/lib/runtime-core/build.rs b/lib/runtime-core/build.rs index 35aafc83511..81884f0e18b 100644 --- a/lib/runtime-core/build.rs +++ b/lib/runtime-core/build.rs @@ -38,6 +38,5 @@ fn main() { .file("image-loading-macos-x86-64.s") .compile("image-loading"); } else { - } } diff --git a/lib/runtime-core/src/lib.rs b/lib/runtime-core/src/lib.rs index 2bc6c7693a3..fa4450693ee 100644 --- a/lib/runtime-core/src/lib.rs +++ b/lib/runtime-core/src/lib.rs @@ -8,6 +8,8 @@ unreachable_patterns )] #![cfg_attr(nightly, feature(unwind_attributes))] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] #[cfg(test)] #[macro_use] diff --git a/lib/runtime-core/src/memory/mod.rs b/lib/runtime-core/src/memory/mod.rs index a7510b818a3..75e9ea007dc 100644 --- a/lib/runtime-core/src/memory/mod.rs +++ b/lib/runtime-core/src/memory/mod.rs @@ -363,5 +363,4 @@ mod memory_tests { "Max number of pages is required for shared memory" ) } - } diff --git a/lib/runtime-core/src/table/mod.rs b/lib/runtime-core/src/table/mod.rs index 1c97b89f374..2e11507b1de 100644 --- a/lib/runtime-core/src/table/mod.rs +++ b/lib/runtime-core/src/table/mod.rs @@ -165,5 +165,4 @@ mod table_tests { .unwrap(); assert_eq!(table.size(), 10); } - } diff --git a/lib/runtime-core/src/types.rs b/lib/runtime-core/src/types.rs index ad00a1588c0..ab7c023a84b 100644 --- a/lib/runtime-core/src/types.rs +++ b/lib/runtime-core/src/types.rs @@ -590,5 +590,4 @@ mod tests { f64::from_native(f64::from_binary((yf64).to_native().to_binary())) ); } - } diff --git a/lib/runtime/src/cache.rs b/lib/runtime/src/cache.rs index 8fd5219a14b..fe39b512aea 100644 --- a/lib/runtime/src/cache.rs +++ b/lib/runtime/src/cache.rs @@ -173,5 +173,4 @@ mod tests { // verify it works assert_eq!(value, 43); } - } diff --git a/lib/runtime/src/lib.rs b/lib/runtime/src/lib.rs index 5b3ba852689..9495dcb346a 100644 --- a/lib/runtime/src/lib.rs +++ b/lib/runtime/src/lib.rs @@ -7,6 +7,9 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + //! Wasmer-runtime is a library that makes embedding WebAssembly //! in your application easy, efficient, and safe. //! diff --git a/lib/singlepass-backend/src/codegen_x64.rs b/lib/singlepass-backend/src/codegen_x64.rs index 7f966eaa5ab..e069dfeeb0a 100644 --- a/lib/singlepass-backend/src/codegen_x64.rs +++ b/lib/singlepass-backend/src/codegen_x64.rs @@ -1318,7 +1318,8 @@ impl X64FunctionCode { } m.state .stack_values - .push(MachineValue::CopyStackBPRelative(offset)); // TODO: Read value at this offset + .push(MachineValue::CopyStackBPRelative(offset)); + // TODO: Read value at this offset } _ => { m.state.stack_values.push(MachineValue::Undefined); diff --git a/lib/singlepass-backend/src/lib.rs b/lib/singlepass-backend/src/lib.rs index e749e5a22ff..ccea7502ee9 100644 --- a/lib/singlepass-backend/src/lib.rs +++ b/lib/singlepass-backend/src/lib.rs @@ -8,6 +8,8 @@ unreachable_patterns )] #![feature(proc_macro_hygiene)] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] #[cfg(not(any( all(target_os = "macos", target_arch = "x86_64"), diff --git a/lib/singlepass-backend/src/machine.rs b/lib/singlepass-backend/src/machine.rs index 1535ef8530a..a0793f37983 100644 --- a/lib/singlepass-backend/src/machine.rs +++ b/lib/singlepass-backend/src/machine.rs @@ -502,5 +502,4 @@ mod test { machine.release_locations_keep_state(&mut assembler, &locs); } - } diff --git a/lib/spectests/tests/spectest.rs b/lib/spectests/tests/spectest.rs index b85b9b0fe8c..9cd18d636a8 100644 --- a/lib/spectests/tests/spectest.rs +++ b/lib/spectests/tests/spectest.rs @@ -1265,5 +1265,4 @@ mod tests { self.to_bits() == 0x7FF8_0000_0000_0000 || self.to_bits() == 0xFFF8_0000_0000_0000 } } - } diff --git a/lib/wasi/src/lib.rs b/lib/wasi/src/lib.rs index ac9b11a86b9..2bdca703cc7 100644 --- a/lib/wasi/src/lib.rs +++ b/lib/wasi/src/lib.rs @@ -7,6 +7,9 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + #[cfg(target = "windows")] extern crate winapi; diff --git a/lib/win-exception-handler/src/lib.rs b/lib/win-exception-handler/src/lib.rs index cf5e8396fc8..459fbe9914a 100644 --- a/lib/win-exception-handler/src/lib.rs +++ b/lib/win-exception-handler/src/lib.rs @@ -7,6 +7,9 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + #[cfg(windows)] mod exception_handling; diff --git a/src/lib.rs b/src/lib.rs index 3d0b047ead6..f4d0e03bb31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,9 @@ unused_unsafe, unreachable_patterns )] +#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")] +#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")] + #[macro_use] extern crate wasmer_runtime_core; // extern crate wasmer_emscripten;